LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-31-2003, 11:19 AM   #1
anamika123
Member
 
Registered: Jun 2002
Location: India
Posts: 39

Rep: Reputation: 15
Device is busy


I am trying to umount the cdrom, but its showing the device is busy. I wanted to know, that how one can determine which device is being used by which process, and how one can free the device.

Other question that I have is that my cdrom do not get automounted, and so I have to mount it first and then umount for ejecting which is very irritating. /etc/fstab have this entry

none /mnt/cdrom supermount dev=/dev/hdc,fs=auto,ro,--,iocharset=iso8859-1,codepage=850,um
ask=0 0 0

Please help

Thanks
Anamika
 
Old 08-31-2003, 11:40 AM   #2
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 48
you have to leave the device that you're trying to unmount (e.g., if you're in /mnt/cdrom/folder, try going to any directory on your hard drive, then unmount. cd <enter> usually works as a shortcut).

i saw something i didn't like about that supermount thing, but i forget what it was. probably you don't need it, but do some research first if you decide to get rid of it.

>edit: oops, auto fstab seems not to work.

Last edited by synaptical; 08-31-2003 at 12:51 PM.
 
Old 08-31-2003, 11:40 AM   #3
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918

Rep: Reputation: 103Reputation: 103
Just a couple of ideas...
1. Make sure you are not in the CD directory before unmounting. (You probably know this).
2. Supermount is sometimes more trouble than it is worth and needs to be removed. (Notice the "sometimes" there.) Are you using Mandrake?
 
Old 08-31-2003, 11:41 AM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
In most cases with a cdrom like this that you've mounted yourself, there is a open terminal that is accessing or viewing the device. What directory were you in when your trying to close the device?
 
Old 08-31-2003, 12:11 PM   #5
anamika123
Member
 
Registered: Jun 2002
Location: India
Posts: 39

Original Poster
Rep: Reputation: 15
device is busy

thanks a lot. I am now able to unmount. I forgot to see the directory, I rebooted my machine, but probably you people are right .

Other question is that can I get the status of the process and the devices being held by them.

I am using the mandrake distribution. So, I guess I should replace the supermount by automount in fstab. thanks a lot

Anamika
 
Old 08-31-2003, 12:28 PM   #6
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918

Rep: Reputation: 103Reputation: 103
Here is a link if you need it.
Good Luck.
 
Old 09-19-2004, 11:58 AM   #7
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

to free any process using a devie run

fsuer -k /mnt/cdrom

then unmount

regards
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Device or Resource Busy ..by what xrado Linux - General 1 04-23-2005 06:05 AM
/: Device busy? ginda Linux - Newbie 4 02-02-2005 04:29 PM
umount :device busy Pedroski Linux - Hardware 14 12-29-2004 03:37 PM
Device is Busy...??? GrumpyGnome Linux - Software 2 07-01-2004 11:43 AM
Device is busy juanb Linux - General 5 11-05-2003 07:31 AM

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

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