LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Can't unmount my drives?!?! (https://www.linuxquestions.org/questions/linux-hardware-18/cant-unmount-my-drives-366937/)

raid517 09-25-2005 02:08 PM

Can't unmount my drives?!?!
 
Hi for some reason that I cannot figure out, I cannot unmount devices as an ordinary user - or even as root any more. I can mount them no problem, but I just cannot unmount them. If I try I get an error message saying:

Code:

sudo umount /dev/hda1
umount: /mnt/hda1: device is busy
umount: /mnt/hda1: device is busy

But the same is true if I try to unmount any of my devices.

Here is myfstab file.

Code:

/dev/hda3  /  reiser4  defaults  0  1
/dev/hda7  /home  reiser4  defaults,auto  0  2
/dev/hda6  /boot  ext3  defaults,auto  0  2
proc  /proc  proc  defaults  0  0
/dev/fd0 /mnt/floppy subfs fs=floppyfss,iocharset=iso8859-1,users,sync,umask=000
usbfs  /proc/bus/usb  usbfs  devmode=0666  0  0
tmpfs  /dev/shm  tmpfs defaults  0  0
/dev/hdc /cdrom subfs fs=cdfss,iocharset=iso8859-1,users,ro,exec,umask=0000 0 0
/dev/hdd /dvd  subfs fs=cdfss,iocharset=iso8859-1,users,ro,exec,umask=0000 0 0
/dev/hda5 none swap defaults 0 0
/dev/sda1 /mnt/ntfs_1 ntfs noauto,users,ro,exec,umask=0000 0 0
/dev/hda1 /mnt/hda1 vfat auto,uid=1000,gid=1000,exec,umask=000,shortname=mixed,quiet 0 0
/dev/hdb1 /mnt/hdb1 vfat auto,uid=1000,gid=1000,exec,umask=000,shortname=mixed,quiet 0 0
none /sys sysfs defaults 0 0

Has anyone got any idea what is going on?

It was working fine a few days ago. I have probably installed some updates since then, but beyond this I haven't changed my fstab at all.

GJ

slackhack 09-25-2005 02:26 PM

try umount /mnt/hda1 -l (lowercase letter "L")

Code:

-l    Lazy  unmount.  Detach the filesystem from the filesystem hierarchy
      now, and cleanup all references to the filesystem as soon as it  is
      not busy anymore.  (Requires kernel 2.4.11 or later.)


teckk 09-25-2005 07:31 PM

/dev/hda1 /mnt/hda1

sudo umount /mnt/hda1

Try unmounting the mounting point and not the device. let us know if that works. Also try to su to root then umount. sudo won't do somethings.

dracolich 09-26-2005 07:54 AM

Also make sure that no processes or apps are currently using the drive.

Killerkop 06-27-2006 12:30 PM

I am running Red Hat 9, in a lab environment in school, and I've encountered this problem trying to umount the floppy at times, as well as a usb device.

For the usb, I checked the processes and killed them -9 baby, and it worked like a charm then. However, that didn't work for my floppy. But I read this and got the Lazy Umount command, and it worked fine.

Just FYI, I'd thought I'd let you guys know that it worked for my problem, and thanks.

slackhack 06-27-2006 05:52 PM

wow, that's really bringing a thread back from the dead. :p but glad to know it worked for you. i'll also take this opportunity to change a small typo in my original post. :D


All times are GMT -5. The time now is 09:18 AM.