  | | | Umounting a file system in Init 1 | Umounting a file system in Init 1 2006-12-04 - By Rick Stevens
Back On Sat, 2006-12-02 at 19:43 -0800, Mobolaji.Osinuga@(protected) wrote: > Hello, > > I brought down my test system to single user mode using init 1. I have 2 > partitions on this system, /(/dev/sda1) and /var (/dev/sda6). > I'm trying to umount the /var file system but it's reporting device busy. > Umounting forcefully doesn't help either. > > Can someone give me a killer command to umount this partition, while still > maintaining the serenity of my system? Or is this a forbidden process so > that I can start with rescue disk instead?
The odds are that the system logger is still running and holding /var/log/messages open. First, try running (as the root user):
service syslog stop
Then try unmounting /var. If you still can't unmount it, you can find out what progtrams have files open on it by doing by running this command as the root user:
lsof | grep /var
Find the process(es) that are still holding something on /var open and shut them down. You can shut them down rudely by doing (as root):
kill -9 procid
Replace "procid" with the process ID you got from the 'lsof' command for the process in question.
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- - Rick Stevens, Senior Systems Engineer rstevens@(protected) - - VitalStream, Inc. http://www.vitalstream.com - - - - C program run. C program crash. C programmer quit. - -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ Redhat-install-list mailing list Redhat-install-list@(protected) https://www.redhat.com/mailman/listinfo/redhat-install-list To Unsubscribe Go To ABOVE URL or send a message to: redhat-install-list-request@(protected) Subject: unsubscribe
|
|
 |