Sponsored Content
Full Discussion: Eject CDROM?
Operating Systems AIX Eject CDROM? Post 302176010 by bakunin on Monday 17th of March 2008 06:22:23 AM
Old 03-17-2008
There is a command "eject", which will eject the CD-ROM from the drive. If you want to know which processes are using your drive use "fuser": "fuser -k /dev/cd0" should kill all processes which are still using the drive.

Still the most common reason for the drive not opening is a forgotten "umount", so you should first try a "umount /dev/cdrom" and only then resort to fuser.

I hope this helps.

bakunin
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Eject Tape

Hi, I'm using AIX and I'm looking for a command that can eject the tape. Any help is highly appreciated. Regards, BS (3 Replies)
Discussion started by: bbhavis
3 Replies

2. Shell Programming and Scripting

eject floppy messages

Anyone know if there is a way to keep the "/dev/floppy/... can now be ejected" messages from coming up on the screen? I'm using Solaris 8 and it pops a message up, which is fine, but it also writes text in the terminal session... that is what I'm trying to avoid. I have tried running in silent... (4 Replies)
Discussion started by: Serious_Lee
4 Replies

3. Solaris

cdrom will not eject

Hi I have placed a CD into the rom and now I can not eject it. when i type in eject cdrom i get the follwing error root@ssdb0009 # eject cdrom /vol/dev/rdsk/c0t6d0/dp_a0500_solaris_7_and_8_cd: Device busy Therefore i try and eject it with the -f option (eject -f cdrom) I still get the... (4 Replies)
Discussion started by: dennisca
4 Replies

4. Solaris

Tape eject using nsrjb

We have just got a Sun L8 tape library and I was trying to script a couple of things. One was to eject (export) a tape from the machine. nsrjb seems to have an enormous amount of options but this is one thing I have not been able to do. Anybody ever managed to do it? Cheers (1 Reply)
Discussion started by: Argus
1 Replies

5. Solaris

SF V210 CDROM drive auto eject!

Hi, When I insert a cd to CDROM drive in SF V210 Solaris 10 it took seconds then eject it auto! How can I solve this issue? Thanks Regards :) (8 Replies)
Discussion started by: HishamN
8 Replies

6. AIX

eject dvd/cd

does someone knows how to eject a dvd/cd device? thx (2 Replies)
Discussion started by: jcpetela
2 Replies

7. Filesystems, Disks and Memory

eject virtual tape

Hi i´m working with aix 6.1 and DL4100 (virtual tape library from EMC) and i makes backups (mksysb) into virtual drive (virtual standalone drive). I need eject de tape when backup is finished and I don't now what command use. Thanks for your help. The commands mt and tctl doesn't works.... (0 Replies)
Discussion started by: wolaf
0 Replies

8. Solaris

CDROM will not eject - says device busy

Hi, I've seen similar posts on this board about ejecting CDROMs but I've tried the solutions people suggested but still cannot eject the CD. It's stuck in a production box so I can't reboot it... bash-3.00# eject -f cdrom /vol/dev/dsk/c0t0d0/sol_10_106_sparc/s0: Device busy bash-3.00#... (14 Replies)
Discussion started by: jimmy54321
14 Replies

9. Solaris

How to eject boot cdrom after booting from it?

Hey everyone, I currently have a sparcstation 5, and am trying to run some scripts on it without booting off the hard drive. Currently I am using a Solaris 8 install cd to boot into single user mode. However, the scripts I have are on a different CD. What I would like to do is to use the... (6 Replies)
Discussion started by: idlechatter
6 Replies

10. Solaris

Trying to eject cdrom

The green cdrom light is blinking on our Sun Solaris server. I tried the eject command to eject cdrom: eject cdrom cdrom: No such file or directory bash-2.05# eject No default media available bash-2.05# eject cdrom0 cdrom0: No such file or directory The message log file shows: Oct 19... (6 Replies)
Discussion started by: agarcia19
6 Replies
EJECT(1)						    BSD General Commands Manual 						  EJECT(1)

NAME
eject -- eject a floppy disk, cdrom or tape SYNOPSIS
eject [-fv] [-l | -L | -U] [-t device-type] [-d] device eject -n DESCRIPTION
The eject program ejects a medium from the specified device. It can also load a cdrom in the drive if this operation is supported by the hardware. The device argument specifies a device either by its full path name (identified by a /dev/ prefix), or by one of the built-in nicknames. If the medium contains a file system that is currently mounted, eject will attempt to unmount the file system before ejecting. The following options are available: -d Deprecated. -f Force the eject operation without attempting to unmount any file systems first. -l Load media in the drive (only supported for the cdrom device type). -L Lock the media into the drive (but see BUGS below). -n List the built-in nicknames on standard output. -t device-type Specify the device type. The argument must be one of diskette, floppy, cdrom, disk, or tape. This option is necessary when ejecting a device for which no built-in knowledge is available. -U Unlock the media from the drive. -v Display some of the actions taken on standard output. BUGS
Most disk drivers automatically lock the media on the first open and unlock it on the last close, making 'eject -L' almost useless, since when it closes the device, it gets unlocked again. BSD
October 6, 2001 BSD
All times are GMT -4. The time now is 05:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy