USB unmount problem

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

USB unmount problem

Postby babarsaed » Thu Feb 15, 2007 8:03 pm

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:

Postby lambda » Thu Feb 15, 2007 8:24 pm

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

Postby babarsaed » Thu Feb 15, 2007 11:59 pm

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:

Postby lambda » Fri Feb 16, 2007 3:17 am

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:

Postby Shahryar » Fri Feb 16, 2007 12:51 pm

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:

Postby LinuxFreaK » Sat Feb 17, 2007 10:53 am

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

Postby babarsaed » Sat Feb 17, 2007 6:15 pm

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.


Return to “General”

Who is online

Users browsing this forum: Google [Bot] and 1 guest