Re: mount -o remount,ro cause error "device is busy"

From: Andreas Dilger (adilger@clusterfs.com)
Date: Wed Mar 06 2002 - 03:15:19 EST


On Mar 05, 2002 23:49 -0800, Mike Fedyk wrote:
> On Wed, Mar 06, 2002 at 04:40:10PM +0900, Michael Cheung wrote:
> > I have upgraded my kernel to version 2.4.
> > And i have tested 2.4.16 and 2.4.18. Both of these
> > two version have the same problem when system reboot.
> > "/: device is busy";
> > in shutdown script:
> > umount -a
> > mount -n -o ro,remount /
> > these two line result error: device is busy.
> >
>
> We need more info about your config. Do you have any patches in this
> kernel? What modules have been loaded? Highmem? x86? drive controller?
> drive? ram size? lspci output, etc...

Please don't send that. It clearly appears to be a user problem.
Order of operations, as I read in the original email:
1) "/" and "/usr" are busy
2) shut down to single user mode
3) "/" still busy
4) "/usr" can be unmounted
5) didn't check that root can be remounted after umounting "/usr"

Clearly, some program is keeping "/usr" busy (which is keeping "/" busy)
before the change to single user mode. Just a bit of "lsof" needed to
find such things.

Cheers, Andreas

--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://www-mddsp.enel.ucalgary.ca/People/adilger/

- 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 : Thu Mar 07 2002 - 21:00:53 EST