1830080 Members
1937 Online
109998 Solutions
New Discussion

CD-Rom

 
SOLVED
Go to solution
Andrew Crowe_2
Advisor

CD-Rom

Can anybody please tell me how to eject a CD from a drive in HP-UX. Usually use Sun and it is easy but I need to eject this CDrom in ahurry and can't get it out.
I mounted the CD-ROm on a file system called /cdrom this morning as I havn't used the CDRom before.

Any help would be great. I know this is probably easy but i've never done it before and have monkeyed about quite a bit but cannot work it ouy.

Thanks
9 REPLIES 9
John Poff
Honored Contributor
Solution

Re: CD-Rom

Hi,

HP won't let go of the CD until it is unmounted. Did you use the 'mount' command to mount it or did you use 'pfs_mount'?

JP
Ian Dennison_1
Honored Contributor

Re: CD-Rom

You should be able to perform a 'umount /cdrom' where /cdrom is the mount point. Once this is done, you need to press the button on the Drive to get it out.

if it doesn't work, use the manual eject located on the front of the cdrom by pushign a sharp object into it.

Share and Enjoy! Ian
Building a dumber user
Donny Jekels
Respected Contributor

Re: CD-Rom

Hey sometimes, HP makes you scream, this is one of those.

some of the CD-Rom/DVD drive are behind a closed door, and eject will not work for those boxes. hp wants you to go to the box and press the button

if you have difficulty unmounting your cdrom.

do a "fuser -u /cdrom" where cdrom is your cd's mount point.

this will show you who has the cd locked down.
kill their process, and unmount.


umount /cdrom

then take a brake from your lovely 21" monitor and go for a walk!!!

live free or die
Donny

"Vision, is the art of seeing the invisible"
Andrew Crowe_2
Advisor

Re: CD-Rom

Thanks chaps,

I have managed it now , I just thought I would be able to do it without unmounting it.

I know its an easy one but it's one of those things that when you haven't actually doen it before in HP it can get frustrating.

Anyway, thanks for the speedy replies
Donny Jekels
Respected Contributor

Re: CD-Rom

Andrew,

Hey sometimes, HP makes you scream, this is one of those.

some of the CD-Rom/DVD drives are behind a closed door, and eject will not work for those boxes. hp wants you to go to the box and press the button. yeap man press that button!!

if you have difficulty unmounting your cdrom.

do a "fuser -u /cdrom" where cdrom is your cd's mount point.

this will show you who has the cd locked down.
kill their process, and unmount.


umount /cdrom

then take a brake from your lovely 21" monitor and go for a walk!!!

live free or die
Donny

"Vision, is the art of seeing the invisible"
Massimo Bianchi
Honored Contributor

Re: CD-Rom

Hi,
last (but i hope not least),
read this link:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x6a9344f56197d711abdc0090277a778c,00.html


in the last post there is a C program that should do the work.

HTH,
Massimo
Fragon
Trusted Contributor

Re: CD-Rom

Hi,
A simplest way, re-mount the CD-ROM then umount it.
If it doesn't work, then "fuser -ku /cdrom" is needed!
And, make sure you are not in /cdrom when you use "umount"!
I think there is no way to eject the CD from command line! After umount it ,you must press the "Eject" botton ...

:p
-ux
Caesar_3
Esteemed Contributor

Re: CD-Rom

Hello!

As in the past i check you need to do umount
and then you can eject the cdrom by press
the button on the drive.

HP not suport the option of eject in software
like solaris and linux.

You can find on the forum my question that
will help you with a part of the issue.

My issue was "eject cdrom"

Caesar
Bill Hassell
Honored Contributor

Re: CD-Rom

Just a note on why umount is required. The CDROM contains a mounted filesystem and there are very important conditions that require resolution before yanking out a filesystem from a running kernel. Suppose you cd into the middle of the CDROM. If the disk is removed, what should the operating system do? Crash your shell? Change it to your $HOME directory. What about processes that have files open on the CDROM?

The simple answer is let them crash but you could end up with some incomplete tasks or corrupt configuration files. So like any filesystem, all processes must be terminated in a sane manner (read: don't use kill -9 or fuser -k) and shells should exit out of the filesystem before removal. HP-UX treats all filesystems the same way so even a readonly filesystem requires root intervention before removing it from service.


Bill Hassell, sysadmin