umount drives fail.

The place to post if you need help or advice

Moderators: ChrisThornett, LXF moderators

umount drives fail.

Postby AJB2K3 » Wed Jul 13, 2005 5:48 am

I have managed to mount my usb camera in mass storage mode copy files from it (using a terminal) but i just cant umount the device. All i get is the messg
Device busy how do i sort this?

I have come to the conclusion that as a noob i need a utility to mount/copy/umount usb drives.
AJB2K3
LXF regular
 
Posts: 175
Joined: Sat Jun 11, 2005 11:51 am

RE: umount drives fail.

Postby tuan168 » Wed Jul 13, 2005 8:18 am

hi
sometime all you need is to close apps which refer to usb drives, change to /home then umount /dev...../usb drive
Tuan
Freedom and liberty are seldom appreciated until they are lost.
Every obstacle that is overcome adds to ther freedom you can dnjoy.
Freedom to Linux World
User avatar
tuan168
 
Posts: 3
Joined: Thu Jun 30, 2005 10:54 am

RE: umount drives fail.

Postby Nigel » Wed Jul 13, 2005 8:47 am

What distro are you running ? I sometimes get this when I browse the LXF DVDs under SuSE 9.2. It seems like there's a KDE process that's indexing the disk (can't remember the process name, but killing it frees the dvd & lets me umount/eject it).
Hope this helps,

Nigel.
User avatar
Nigel
LXF regular
 
Posts: 1141
Joined: Fri Apr 08, 2005 8:03 pm
Location: Gloucestershire, UK

Postby sjl » Wed Jul 13, 2005 12:45 pm

If you right-click on the device icons in KDE, you can unmount them there.
If you can't see your device, then go into the Control Centre (From 'K' menu) and search for 'devices'. There, there will be a long list of check boxes which you can tick in order to get KDE to display the device on your desktop. Check your device, click OK, and you're done!
Hope this helps. :)
User avatar
sjl
 
Posts: 2
Joined: Sat May 07, 2005 6:46 pm
Location: Ashford, Middx

Postby AJB2K3 » Wed Jul 13, 2005 4:48 pm

im running kde on mandriva and that process could be the problem.
@tuan168 all known apps were closed except terminal.
AJB2K3
LXF regular
 
Posts: 175
Joined: Sat Jun 11, 2005 11:51 am

Postby towy71 » Wed Jul 13, 2005 4:55 pm

run either
umount -f
or
umount -l
as root
man umount
;-)
still looking for that door into summer
User avatar
towy71
Moderator
 
Posts: 4263
Joined: Wed Apr 06, 2005 2:11 pm
Location: wild West Wales

Postby graham » Wed Jul 13, 2005 5:05 pm

Sadly, this happens all too often. Mandriva should take care of this automatically, but it sometimes runs into problems. umount /mnt/removable is what you need to run from the command line to unmount the device. But, if another process is using it then this won't work.

You can check which processes are using the device using lsof as root:

lsof /mnt/removable

This will produce something like:
Code: Select all
COMMAND   PID   USER   FD   TYPE DEVICE    SIZE NODE NAME
kio_file 8302 graham    6r   REG    8,1 5018608 6042 /mnt/removable


PID is the column you need, as this is the process ID for whatever it is that's accessing your device. You can kill the process using:

kill -9 8302

Then you should be able to umount the device. Crude, but it should do the trick.
User avatar
graham
Site admin
 
Posts: 37
Joined: Tue Apr 12, 2005 9:31 am


Return to Help!

Who is online

Users browsing this forum: No registered users and 1 guest