Re: Unmounting a busy RO-Filesystem

From: Steven Dake (sdake@mvista.com)
Date: Mon Dec 16 2002 - 13:17:48 EST


Denis Vlasenko wrote:

>On 16 December 2002 23:06, Bourne wrote:
>
>
>>I have 3 partitions. /dev/hda3 for '/' , /dev/hda1 for /boot and
>>/dev/hda2 for swap.
>>
>>I boot & then i do a CTRL+ALT+SYSRQ+U. '/' and '/boot' are now
>>remounted ReadOnly.
>>
>>1) cd '/boot'
>>2) umount /boot ----> This gives me an error "Device Busy"
>>
>>
>
>How do you imagine unmounting a directory when you are in it? ;)
>
>
This is possible with a kernel patch called forced unmount. It will
blow away the mount point even if there are files open in it or not.
 The best part is it properly closes the superblock so the filesystem
doesn't have to be fsck'ed.

>
>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Dec 23 2002 - 22:00:14 EST