LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


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

Rep: Reputation: 38
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?

Thanks,

Harlin Serittt
 
Old 09-20-2005, 07:49 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Boot with a LiveCD. I assume it's under / now.
 
Old 09-20-2005, 08:47 AM   #3
TruckStuff
Member
 
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, 04:49 AM   #4
Lobais
Member
 
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.
Code:
[root@localhost ~]# fuser ~
/root:                3502c
[root@localhost ~]# pgrep -lu root |grep 3502
3502 bash
 
Old 12-19-2005, 04:53 AM   #5
Harlin
Member
 
Registered: Dec 2004
Location: Atlanta, GA U.S.
Distribution: I play with them all :-)
Posts: 316

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


Reply



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 12:29 PM
umount cd in use provkitir Linux - Newbie 3 01-29-2005 07:09 PM
Unable to umount partition sgfx Linux - Newbie 3 07-10-2004 10:42 AM
cannot umount... ??? spyghost Linux - Software 9 09-06-2003 09:35 AM
Unable to nfs umount:Device or resource busy nabil Linux - General 3 05-05-2002 07:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:17 PM.

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