The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
using signals instead of busy wait jut26 High Level Programming 5 03-04-2009 10:06 AM
Cannot umount - device busy keelba HP-UX 2 04-11-2008 03:16 PM
how to calculate busy hour shary Shell Programming and Scripting 14 01-29-2008 06:04 AM
how can i check if port is busy or if someone is using it ? umen IP Networking 1 01-28-2006 03:37 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-27-2004
nikk nikk is offline
Registered User
  
 

Join Date: Oct 2001
Posts: 61
CD Drive is busy

one problem which seems simple but i've faced many times is when i've used cd & want to eject, however i'm not in /dev/cdrom/... in any of my Xterms but it gives the message that the the CD drive is busy.
the only thing i could do is /etc/init.d/volmgt stop & eject the CD manually but it doesn't seem reasonable,Pls. give me any comments you know.

Thanks,
--Nikk
  #2 (permalink)  
Old 07-27-2004
norsk hedensk norsk hedensk is offline Forum Advisor  
Registered User
  
 

Join Date: Jul 2002
Location: new york
Posts: 1,025
you have to unmount the drive first.

try: umount /dev/cdrom

then eject.
  #3 (permalink)  
Old 07-27-2004
Tux Tux is offline
Registered User
  
 

Join Date: May 2003
Location: UK, Up North
Posts: 113
If you do lsof /mnt/cdrom
it will tell you which processes are using the cdrom. If you are using a GUI you may find that File Managers seem to hang on to your drive for an inordinate amount of time.
If you are ruthless, like myself, you can just kill them.
  #4 (permalink)  
Old 08-04-2004
kduffin's Avatar
kduffin kduffin is offline Forum Advisor  
UN1X
  
 

Join Date: Nov 2003
Location: Maryland
Posts: 449
'lsof' is an ideal command; however on may systems it is a value added program and doesn't come with the base OS. You can utilize 'fuser' as well to hunt down who has your device locked.

Cheers,

Keith
  #5 (permalink)  
Old 08-17-2004
locustfurnace locustfurnace is offline Forum Advisor  
Registered User
  
 

Join Date: Aug 2004
Posts: 232
Another command you can use when a 'device busy' is presented is the lazy umount.

umount -l /dev/scd0

and add another command

umount -l /dev/scd0 && eject /dev/scd0
  #6 (permalink)  
Old 08-27-2004
networkfre@k networkfre@k is offline
Registered User
  
 

Join Date: Aug 2004
Location: standing in a Sun 25k, Vienna
Posts: 78
I had the same Problem on Solaris. I had an share on the CD-ROM in my NFS Server, and I just uncommended the line in /etc/dfs/dfstab and the problem was gone. Maybe thats the problem if you share your drive..
  #7 (permalink)  
Old 08-29-2004
icevic icevic is offline
Registered User
  
 

Join Date: Aug 2004
Location: Windosr, Ontario, Canada
Posts: 13
fuser works as well on the device file, like
fuser /dev/cotodo
depending on your unix flavour
It will give you the process locking your device.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:47 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0