Unix Technical Forum

Reading and ejecting CD-ROMs - why is it such a pain???

This is a discussion on Reading and ejecting CD-ROMs - why is it such a pain??? within the Sun Solaris Administration forums, part of the Solaris Operating System category; --> I don't know if it is just me (although I don't think so), but whenever a CD is in ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > Sun Solaris Administration

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-12-2008, 06:00 AM
Dr. David Kirkby
 
Posts: n/a
Default Reading and ejecting CD-ROMs - why is it such a pain???

I don't know if it is just me (although I don't think so), but
whenever a CD is in my Sun Ultra 80 (Solaris 9, release 4, latest vold
patch 112966-02), it is so often a pain to eject. On occasions I think
I've rebooted and on more than one occasion I've resorted to sticking
a thin piece of metal in the whole on the CD-ROM (Plextor PX-W1210S,
PlexWriter 12/10/32S) to physically force the CD out .

Today there was a Solaris 9 CD in the drive, which I assume I'd put
their to view its contents, since I had not recently installed
Solaris. The CD was not mounted - df showed nothing.

sparrow /export/home/davek % eject cdrom
cdrom: No such file or directory

Try pusing the eject button, but it refuses to eject. Vold was
running, so I stop that. To my relief the eject button worked and the
CD ejected !! This is a good day.

But on numerous occasions it is even more of a pain.

It's often difficult to mount a CD too. Sometime I put a CD in the
drive and it appears to df that it's mounted within 30 s or so. On
other times, I spend 10 minutes trying to run vold, stopping vold,
trying to mount it with

# mount -F hsfs -o ro /dev/dsk/c0t6d0s0 /cdrom

I can usually get it to be viewable, but often the drive stops/starts
and seems to have a problem with it.

Is there some secret to using CD's under Solaris, that I'm not aware
of??

Is there a way that will always eject a CD without resorting to
mechanically forcing the CD out?

I'm only glad I rarely put CDs in the drive, since this drives me
round the bend.

Dr. David Kirkby.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-12-2008, 06:00 AM
CJT
 
Posts: n/a
Default Re: Reading and ejecting CD-ROMs - why is it such a pain???

Dr. David Kirkby wrote:

> I don't know if it is just me (although I don't think so), but
> whenever a CD is in my Sun Ultra 80 (Solaris 9, release 4, latest vold
> patch 112966-02), it is so often a pain to eject. On occasions I think
> I've rebooted and on more than one occasion I've resorted to sticking
> a thin piece of metal in the whole on the CD-ROM (Plextor PX-W1210S,
> PlexWriter 12/10/32S) to physically force the CD out .
>
> Today there was a Solaris 9 CD in the drive, which I assume I'd put
> their to view its contents, since I had not recently installed
> Solaris. The CD was not mounted - df showed nothing.
>
> sparrow /export/home/davek % eject cdrom
> cdrom: No such file or directory
>
> Try pusing the eject button, but it refuses to eject. Vold was
> running, so I stop that. To my relief the eject button worked and the
> CD ejected !! This is a good day.
>
> But on numerous occasions it is even more of a pain.
>
> It's often difficult to mount a CD too. Sometime I put a CD in the
> drive and it appears to df that it's mounted within 30 s or so. On
> other times, I spend 10 minutes trying to run vold, stopping vold,
> trying to mount it with
>
> # mount -F hsfs -o ro /dev/dsk/c0t6d0s0 /cdrom
>
> I can usually get it to be viewable, but often the drive stops/starts
> and seems to have a problem with it.
>
> Is there some secret to using CD's under Solaris, that I'm not aware
> of??
>
> Is there a way that will always eject a CD without resorting to
> mechanically forcing the CD out?
>
> I'm only glad I rarely put CDs in the drive, since this drives me
> round the bend.
>
> Dr. David Kirkby.


I haven't had such problems. The key is to make sure it's not in
use (e.g. the file manager doesn't have it open), and I then generally
just type "eject" and out it pops.

man eject
might be of interest

--
After being targeted with gigabytes of trash by the "SWEN" worm, I have
concluded we must conceal our e-mail address. Our true address is the
mirror image of what you see before the "@" symbol. It's a shame such
steps are necessary. ...Charlie
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-12-2008, 06:01 AM
Huge
 
Posts: n/a
Default Re: Reading and ejecting CD-ROMs - why is it such a pain???

Get rid of vold. It's more trouble than it's worth.

--
"The road to Paradise is through Intercourse."
[email me at huge [at] huge [dot] org [dot] uk]


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-12-2008, 06:01 AM
Juergen Keil
 
Posts: n/a
Default Re: Reading and ejecting CD-ROMs - why is it such a pain???

see_my_signature_for_my_real_address@hotmail.com (Dr. David Kirkby) writes:

> I don't know if it is just me (although I don't think so), but
> whenever a CD is in my Sun Ultra 80 (Solaris 9, release 4, latest vold
> patch 112966-02), it is so often a pain to eject. On occasions I think
> I've rebooted and on more than one occasion I've resorted to sticking
> a thin piece of metal in the whole on the CD-ROM (Plextor PX-W1210S,
> PlexWriter 12/10/32S) to physically force the CD out .
>
> Today there was a Solaris 9 CD in the drive, which I assume I'd put
> their to view its contents, since I had not recently installed
> Solaris. The CD was not mounted - df showed nothing.
>
> sparrow /export/home/davek % eject cdrom
> cdrom: No such file or directory


"cdrom" is not a valid nicname for the cdrom device. eject -n lists
the valid nicnames. I'm using "eject cdrom0", and according to the
list printed by eject -n you can also use "cd", "cd0", "sr" or "sr0".

> Try pusing the eject button, but it refuses to eject.


This is the expected behaviour when some process or the kernel has
opened the cdrom device. The eject button is enabled, as soon as all
references to the cdrom device driver are closed. Otherwise the media
is "locked" in the drive.

> Vold was
> running, so I stop that. To my relief the eject button worked and the
> CD ejected !! This is a good day.


So, apparently it was vold that referenced the cdrom device and
blocked the eject button.

The root problem with your hw seems to be: why was vold / rmmount
unable to detect the filesystem format used on the Solaris 9 CD and/or
why was vold / rmmount unable o mount the CD.

Did "vold" at least create a /vol/... device for the S9 CD?

% eject -n
fd -> floppy0
fd0 -> floppy0
fd1 -> floppy1
diskette -> floppy0
diskette0 -> floppy0
diskette1 -> floppy1
rdiskette -> floppy0
rdiskette0 -> floppy0
rdiskette1 -> floppy1
cd -> cdrom0
cd0 -> cdrom0
cd1 -> cdrom1
sr -> cdrom0
sr0 -> cdrom0
/dev/sr0 -> cdrom0
/dev/rsr0 -> cdrom0
cdrom0 -> /vol/dev/rdsk/c0t6d0/sol_9_sparc
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

% ls -l /vol/dev/rdsk/c0t6d0/sol_9_sparc
total 0
crwxrwxrwx 1 nobody nobody 91, 2 Nov 10 18:06 s0
crwxrwxrwx 1 nobody nobody 91, 3 Nov 10 18:06 s1
crwxrwxrwx 1 nobody nobody 91, 4 Nov 10 18:06 s2
crwxrwxrwx 1 nobody nobody 91, 5 Nov 10 18:06 s3
crwxrwxrwx 1 nobody nobody 91, 6 Nov 10 18:06 s4
crwxrwxrwx 1 nobody nobody 91, 7 Nov 10 18:06 s5

% fstyp /vol/dev/rdsk/c0t6d0/sol_9_sparc/s0
hsfs


(AFAIK, the last step [fstyp] isn't always 100% accurate, because
fstyp uses the /usr/lib/fs/*/fstyp programs to identify filesystem
formats, while rmmount uses the /usr/lib/fs/*/ident_*.so.1 shared
libraries).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:24 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com