LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-01-2006, 02:25 PM   #1
ivanlq
LQ Newbie
 
Registered: Oct 2005
Posts: 3

Rep: Reputation: 0
Can't get umount to work - device is busy


When trying to unmount (via umount) a file system, I get 2 infamous "device is busy" messages. I've used both the lsof and fuser commands but nothing gets returned that references the file system I'm trying to unmount.

I've even tried to force an unmount, but that didn't work either. What was even more weird was that (as a test) I created a file on that file system and had it open and then used the lsof / fuser command to see what response I would get. Basically the response from both commands was blank.

Short of removing the mount entry from /etc/fstab and rebooting, is there another method for determining what file/process is attached to the file system that would cause it to show up as device is busy? Is there another method for forcing an unmount?
 
Old 12-01-2006, 02:29 PM   #2
Renars
LQ Newbie
 
Registered: Aug 2006
Location: Bauska, Latvia
Distribution: Ubuntu, Fedora
Posts: 29

Rep: Reputation: 15
It doesn't want to unmount even if you're in the mounted fs's directory, but I'm sure you knew that already.
 
Old 12-01-2006, 03:09 PM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,877

Rep: Reputation: 350Reputation: 350Reputation: 350Reputation: 350
If you were viewing the filesystem in a filemanager such as Konquerer, or if you had a console open into that filesystem (as in cd to the filesystem), then the filesystem is busy. You will have to cd out of the filesystem, or close the file manager to release the filesystem for umount.
 
Old 12-01-2006, 03:46 PM   #4
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
What is the mount point for the device? You said you ran lsof. Hmm, that should show you if any programs are blocking it. Make sure you run lsof as root (or with sudo), and use fgrep, like this:
Code:
sudo lsof |fgrep '/the/mount/point'
If that doesn't show anything I'm stumped.
 
Old 12-01-2006, 05:29 PM   #5
ivanlq
LQ Newbie
 
Registered: Oct 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for the reply...however...I've tried the lsof | fgrep command and as far as I know there are no known consoles that are open to this filesystem. There must be a hung process or file somewhere that's attached to the filesystem. I've also used who extensively but that didn't reveal any login in sessions either.

Oh well...looks like a reboot on Monday.
 
Old 12-01-2006, 06:28 PM   #6
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
If a process is hung, it's files should still be listed in lsof. You're running it as root?
 
Old 12-02-2006, 01:07 AM   #7
ivanlq
LQ Newbie
 
Registered: Oct 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by matthewg42
If a process is hung, it's files should still be listed in lsof. You're running it as root?
Yes...I was running it as root.
 
  


Reply


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot umount - device busy rust8y Linux - General 5 07-16-2006 09:41 PM
umount :device busy Pedroski Linux - Hardware 14 12-29-2004 04:37 PM
umount - device is busy - with what??? Moebius Linux - Software 16 12-08-2004 11:32 AM
fam and umount says device is busy Brian1 Fedora 2 10-05-2004 08:33 PM
umount /var device busy winchester169 Linux - Networking 1 06-25-2004 08:53 PM


All times are GMT -5. The time now is 01:37 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration