USB unmount problem

General discussion about PLUC and Linux in Pakistan.
Post Reply
babarsaed
Lance Naik
Posts: 15
Joined: Sun Feb 11, 2007 5:05 pm
Location: Faisalabad
Contact:

USB unmount problem

Post by babarsaed »

Salam O Alaikum

how are you all !Brothers

im facing problem when i use my usb device,after mounting whenever i execute following command to unmount my usb, it give following message

#umount /mnt/usb

device busy

what i have to do.plz help

Regards.

Allah hafiz
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post by lambda »

try lsof /mnt/usb, or something like that. make sure you don't have a shell process (or something else) that has done "cd /mnt/usb". make sure your nautilus or other desktop apps don't have that directory open.
babarsaed
Lance Naik
Posts: 15
Joined: Sun Feb 11, 2007 5:05 pm
Location: Faisalabad
Contact:

usb umount problem

Post by babarsaed »

Aslam o Alaikum

dear lambda

i tried lsof /mnt/usb but it is not solving problem.
i have to restart my linux box each time when i have to unplug my usb.no desktop applicaion was running.

plz help me

regards

Allah hafiz
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post by lambda »

try eject /dev/sdc (or whatever).

i can't help you. you have to examine your system and see what's accessing the drive. there is no single simple small list of processes that could block your system from unmounting it -- it can be anything.
Shahryar
Naik
Posts: 81
Joined: Sat Nov 08, 2003 2:49 pm
Location: Lahore
Contact:

Post by Shahryar »

You must close any application that is accessing the /mnt/usb directory. For example if you have a file manager window showing this directory's contents then umount command will not work until you close the window.
--
S.S.
--
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Post by LinuxFreaK »

Dear babarsaed,
Salam,

Try following command it will show you what is going on.

# fuser -v /mnt/usb

Best Regards.
Farrukh Ahmed
babarsaed
Lance Naik
Posts: 15
Joined: Sun Feb 11, 2007 5:05 pm
Location: Faisalabad
Contact:

USB unmount problem

Post by babarsaed »

Deat Farrukh Bhai

Aslam o Alaikum

thanks alot. my usb unmount problem have been solved. thanks for helping actualy a file created automatically in usb with the name of .trash root. due to that file it was not being unmount. i delete this file and now with #umount /mnt/usb i can unmount my usb device.


thanks alot farrukh bhai


Regards!

Allah Hafiz.
Post Reply