[Sussex] Unable to umount - device is busy

John Crowhurst info at johnscomputersupport.co.uk
Tue Feb 6 23:16:18 UTC 2007


On Tue, February 6, 2007 22:42, Fay Zee wrote:
> This old chestnut ;-)
>
> I've got a line in fstab for /dev/sda1:
> /dev/sda1       /media/kingston vfat    rw,user,noauto  0       0
>
> This does for all my different pen drives.
> However, I can never mount two USB pen drives in succession, because I
> can never unmount the first one.
> Even though I close the file manager and have nothing running in kde
> except the terminal window.

If you added another line in your fstab:
/dev/sdb1 /media/kingston2 vfat rw,user,noauto 0 0

Should allow you to mount a second flash drive. Note the second SCSI
device is sdb not sda2.

> I get this:
>
> # umount /dev/sda1
> umount: /media/kingston: device is busy
> umount: /media/kingston: device is busy
> # fuser /media/kingston/
> /media/kingston/:     1102
> # fuser -v -k /media/kingston/
>
>                      USER        PID ACCESS COMMAND
> /media/kingston/     root       1102 f....  famd
>                      root     kernel mount  /media/kingston
> No automatic removal. Please use  umount /media/kingston
> # umount /media/kingston/
> umount: /media/kingston: device is busy
> umount: /media/kingston: device is busy

fuser tells you that there is a process still accessing the device, famd
on pid 1102, kill it and then check fuser again.
kill 1102

-- 
John Crowhurst
John's Computer Support




More information about the Sussex mailing list