Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 09-20-2005, 08:33 AM   #1
Registered: Dec 2004
Location: Atlanta, GA U.S.
Distribution: I play with them all :-)
Posts: 316

Rep: Reputation: 30
Unable to umount

I have /var mounted from a separate partition. I was wanting to run fsck on it but tried to umount it first. I kept getting /dev/hda5 busy messages -- this was after I went into single user mode (init 1). Any clues as to how I can umount it cleanly?


Harlin Serittt
Old 09-20-2005, 08:49 AM   #2
Bruce Hill
HCL Maintainer
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Fedora, Gentoo, Ubuntu (all servers at work are openSUSE)
Posts: 6,931

Rep: Reputation: 128Reputation: 128
Boot with a LiveCD. I assume it's under / now.
Old 09-20-2005, 09:47 AM   #3
Registered: Apr 2002
Posts: 498

Rep: Reputation: 30
You would probably have to shutdown all logging facilities and anything that looks for PID files. /var/log is where most systems log everything and lots of daemons look for PID files in /var/lock/subsys and the like. As long as those things are active, you won't be able to unmount /var.

Like Chinaman said: your best bet is to boot off of a LiveCD.
Old 12-19-2005, 05:49 AM   #4
Registered: Jan 2004
Location: Denmark
Distribution: Fedora Core 6
Posts: 224

Rep: Reputation: 30
You can use the fuser program to see which prosesses are using a device/folder/file.
[root@localhost ~]# fuser ~
/root:                3502c
[root@localhost ~]# pgrep -lu root |grep 3502
3502 bash
Old 12-19-2005, 05:53 AM   #5
Registered: Dec 2004
Location: Atlanta, GA U.S.
Distribution: I play with them all :-)
Posts: 316

Original Poster
Rep: Reputation: 30
Have been using Linux intensively for about 5 years now and have never heard of 'fuser' til this morning . Thanks for putting this here! :-)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
USB stick - unable to umount Artik Debian 1 05-18-2005 01:29 PM
umount cd in use provkitir Linux - Newbie 3 01-29-2005 08:09 PM
Unable to umount partition sgfx Linux - Newbie 3 07-10-2004 11:42 AM
cannot umount... ??? spyghost Linux - Software 9 09-06-2003 10:35 AM
Unable to nfs umount:Device or resource busy nabil Linux - General 3 05-05-2002 08:52 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:04 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration