vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I'm unable to unmount an ext2 partition, umount pretending that the device is busy. However fuser does not see anything accessing the partition. I can use the -l (lazy) option to force the unmount but at the next (shutdown, reboot) the partition is once more in a bad state and a long fsck is triggered. Is there something to do ? |
| |||
| On 2004-09-01, Jean-Paul Le Fevre <lefevre@hep.saclay.cea.fr> wrote: > Is there something to do ? If your system says that the partition is busy but fuser doesn't say anything, maybe you have a shell opened on it. You could remove the partition from /etc/fstab to prevent it to be auto-mounted and check what is using that partition. Davide -- It is better to kiss an avocado than to get in a fight with an aardvark |
| |||
| Davide Bianchi wrote: > On 2004-09-01, Jean-Paul Le Fevre <lefevre@hep.saclay.cea.fr> wrote: > >>Is there something to do ? > > > If your system says that the partition is busy but fuser doesn't > say anything, maybe you have a shell opened on it. No there is no shell. You could remove the partition from /etc/fstab to prevent it to be auto-mounted > and check what is using that partition. The automounter is stopped. Most of the process have been killed but my partition seems to be busy. I guess that the message is wrong. |
| |||
| Jean-Paul Le Fevre wrote: > Davide Bianchi wrote: > >> On 2004-09-01, Jean-Paul Le Fevre <lefevre@hep.saclay.cea.fr> wrote: >> >>> Is there something to do ? What is the output of "mount" and the exact "umount" command line that fails to unmount? For example: [root@heron /]# mount /dev/hda3 on / type ext3 (rw) none on /proc type proc (rw) usbdevfs on /proc/bus/usb type usbdevfs (rw) none on /dev/pts type devpts (rw,gid=5,mode=620) none on /dev/shm type tmpfs (rw) /dev/hda1 on /windows/C type vfat (rw,noexec,nosuid,nodev,gid=100,umask=0002,mod e=660) [root@heron /]# umount /dev/hda3 umount: /: device is busy [root@heron /]# |
| |||
| > I'm unable to unmount an ext2 partition, umount pretending that > the device is busy. However fuser does not see anything accessing > the partition. Try lsof <device file or mount point> . -- To reply by email, change "deadspam.com" to "alumni.utexas.net" |
| |||
| Jean-Paul Le Fevre wrote: > mount > /dev/hda2 on / type ext2 (rw) > /dev/hda6 on /ker type ext2 (rw) > > umount /ker > umount: /ker: device is busy > umount: /ker: device is busy > > Note that the message is issued twice by umount. Some process is using this filesystem /ker. You must just find which one and terminate it. What gives "grep "ker" /etc/fstab" ? What is /dev/hda6 ? or say, what gives "df" (to report filesystems space and usage)? You have this trouble of unmounting even right after a fresh reboot ? Sometimes it is a bit hard to find which process is using a certain filesystem. This same trouble happenned to me on RH9 using nautilus. |
| |||
| Jean-Paul Le Fevre wrote: > mount > /dev/hda2 on / type ext2 (rw) > /dev/hda6 on /ker type ext2 (rw) > > umount /ker > umount: /ker: device is busy > umount: /ker: device is busy > Just guessing, /ker is exported via nfs? Eric |
| |||
| Andrew Schulman wrote: >>I'm unable to unmount an ext2 partition, umount pretending that >>the device is busy. However fuser does not see anything accessing >>the partition. > > > Try lsof <device file or mount point> . > Unfortunately lsof does not mention anything related to my partition. I've changed the partition type from ext2 to ext3 but it stays busy. At boot time instead of the fsck I've a journal operation. I've killed most of the process, unloaded kernel modules, restarted the box in single user mode, stopped the network but my partition still pretends to be busy. -- __________________________________________________ _________________ Jean-Paul Le Fèvre * Mail : LeFevre@fonteny.org |
| ||||
| Jean-Paul Le Fevre wrote: > Andrew Schulman wrote: > >>> I'm unable to unmount an ext2 partition, umount pretending that >>> the device is busy. However fuser does not see anything accessing >>> the partition. >> >> >> >> Try lsof <device file or mount point> . >> > > Unfortunately lsof does not mention anything related to my partition. > > I've changed the partition type from ext2 to ext3 but it stays busy. > At boot time instead of the fsck I've a journal operation. > > I've killed most of the process, unloaded kernel modules, restarted > the box in single user mode, stopped the network but my partition still > pretends to be busy. > As another poster suggested, what happens if you comment out the line concerning this "/ker" from /etc/fstab? What does this "ker" contains? Kernel stuff ?? |