LinuxQuestions.org
Review your favorite Linux distribution.
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 02-07-2013, 11:31 AM   #1
J.A.X
Member
 
Registered: Jan 2010
Distribution: Fedora 19
Posts: 83

Rep: Reputation: 3
umount reports device is busy


Hi all

I'm using Fedora 17, however I was unable to unmount a device.

PHP Code:
~ : umount /dev/hdc 
Reports the device is busy

so I try

PHP Code:
~ : umount -/dev/hdc 
And I get the same output.

How to make it unmount without questioning

Thanx in advane
 
Old 02-07-2013, 12:25 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
You need to supply the partition number as in '/dev/hdc1' and check which mount point it uses (just run 'mount') then 'umount /whatever/mountpoint'.

Last edited by unSpawn; 02-07-2013 at 12:27 PM.
 
Old 02-07-2013, 02:17 PM   #3
ted_chou12
Member
 
Registered: Aug 2010
Location: Zhongli, Taoyuan
Distribution: slackware, windows, debian (armv4l GNU/Linux)
Posts: 431
Blog Entries: 32

Rep: Reputation: 3
IF YOU STILL get the same message when umounting hdc1 do:
Code:
#umount  -l  /dev/hdc1
l stands for LAZY.
Ted
 
Old 02-07-2013, 02:36 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
...if you still get the "busy" message I'd use 'lsof +D/whatever/mountpoint' or '/sbin/fuser -v /whatever/mountpoint' instead to find out which process keeps files open on the file system.
 
Old 02-09-2013, 07:14 AM   #5
smbhandary
LQ Newbie
 
Registered: Jan 2013
Distribution: RHEL and AIX ( sort of )
Posts: 18

Rep: Reputation: Disabled
And dont forget to get off the mount point you wish to umount.

enter cd at the command prompt and hit enter to land in your home directory.
 
Old 02-09-2013, 09:25 AM   #6
mreff555
Member
 
Registered: Sep 2011
Location: Philly
Distribution: Gentoo
Posts: 473

Rep: Reputation: Disabled
If your present working directory is within your mount point you are using that resource. try 'cd /', then unmount.


btw have noticed recently from typing errors that umount /dev/sdb is sometimes sufficient to remove /dev/sdb1.

In this case there is only one partition so I'm not sure if it's unmounting everything or just defaulting to the only option. I never noticed it til about a year ago. is this new?
 
Old 02-09-2013, 10:22 PM   #7
kingbeowulf
Senior Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware
Posts: 1,264
Blog Entries: 11

Rep: Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744
I have noticed under KDE that if nepomuk, etc. service are running, or if KDE services are running under Xfce, for example, it can take 5-10 minutes before you can umount.
 
Old 02-11-2013, 08:52 AM   #8
mreff555
Member
 
Registered: Sep 2011
Location: Philly
Distribution: Gentoo
Posts: 473

Rep: Reputation: Disabled
ugh....

I really hate auto-mounting of ancillary drives. It's not a whole lot of work to do it yourself and it's so much nicer to have complete control over what is being used and what isn't.
 
  


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
Unable to umount, device is busy eesiva Linux - Newbie 2 05-30-2009 03:49 PM
Can't get umount to work - device is busy ivanlq Linux - Newbie 6 12-02-2006 12:07 AM
Cannot umount - device busy rust8y Linux - General 5 07-16-2006 08:41 PM
umount :device busy Pedroski Linux - Hardware 14 12-29-2004 03:37 PM
umount - device is busy - with what??? Moebius Linux - Software 16 12-08-2004 10:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:21 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