Visit Our UNIX and Linux User Community

CD Drive is busy

Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users CD Drive is busy
# 1  
Old 07-27-2004
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.

# 2  
Old 07-27-2004
you have to unmount the drive first.

try: umount /dev/cdrom

then eject. Smilie
# 3  
Old 07-27-2004
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  
Old 08-04-2004
'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.


# 5  
Old 08-17-2004
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  
Old 08-27-2004
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  
Old 08-29-2004
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.

Previous Thread | Next Thread
Test Your Knowledge in Computers #284
Difficulty: Easy
AIX (Advanced Interactive eXecutive) is a series of proprietary Unix operating systems developed and sold by Digital Equipment Corporation (DEC) for several of its computer platforms.
True or False?

5 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Need help to move .csv file from UNIX path to windows shared drive or c:\ drive

Hi Guys, Can any one help me on this. I need help to move .csv/.xls file from unix path to windows shared drive or c:\ drive? Regards, LKR (1 Reply)
Discussion started by: lakshmanraok117
1 Replies

2. Hardware

How to Clone a Drive with 512 byte Sectors to a Drive with 4096 bytes/sector (AF)?

I have a 320 GB drive which dual boots Windows and Debian: Disk /dev/sda: 320.1 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal):... (0 Replies)
Discussion started by: phillipsoasis
0 Replies

3. UNIX for Advanced & Expert Users

Filesystem mystery: disks are not busy on one machine, very busy on a similar box

Hi, We have a filesystem mystery on our hands. Given: 2 machines, A and Aa. Machine Aa is the problem machine. Machine A is running Ubuntu, kernel #1 SMP Wed Feb 20 08:46:16 CST 2008 x86_64 GNU/Linux. Machine Aa is running RHEL5.3, kernel 2.6.18-128.el5 #1 SMP Wed Dec 17 11:41:38... (2 Replies)
Discussion started by: mschwage
2 Replies

4. SCO

mounting USB floppy drive /Flash drive in OSR 6.0

Can anybody help me out to mount USB flash /floppy drive in sco openserver 6.0 . (5 Replies)
Discussion started by: sureshdrajan
5 Replies

5. UNIX for Dummies Questions & Answers

Map Drive From Windows To Apache Shared Drive?

Anyone know how I can map a windows drive to an apache shared drive? In my httpd.conf file, I have: Alias /merc_rpts/ "/u/merc_rpts/" <Directory "/u/merc_rpts"> Options Indexes </Directory> I'm able to bring up a browser and see the contents of this folder. In... (0 Replies)
Discussion started by: gseyforth
0 Replies

Featured Tech Videos