Web Server forum
Back To The Forum Home!Search!Private Messaging System

This is Interesting: Free IT Magazines Now Free shipping to California  
Web Server Talk Web Server Talk > Unix and Linux reviews > Sun Solaris support > Sun Solaris Administration > Reading and ejecting CD-ROMs - why is it such a pain???




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Reading and ejecting CD-ROMs - why is it such a pain???  
Dr. David Kirkby


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 08:30 PM

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.





[ Post a follow-up to this message ]



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


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 08:30 PM

Dr. David Kirkby wrote:
quote:
> 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




[ Post a follow-up to this message ]



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


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 08:30 PM

Dr. David Kirkby wrote:
quote:
> 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




[ Post a follow-up to this message ]



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


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 08:31 PM

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]







[ Post a follow-up to this message ]



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


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 08:31 PM

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]







[ Post a follow-up to this message ]



    Re: Reading and ejecting CD-ROMs - why is it such a pain???  
Juergen Keil


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 08:31 PM

see_my_signature_for_my_real_addr
ess@hotmail.com (Dr. David Kirkby) writes:
quote:
> 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".
quote:
> 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.
quote:
> 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).




[ Post a follow-up to this message ]



    Re: Reading and ejecting CD-ROMs - why is it such a pain???  
Juergen Keil


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 08:31 PM

see_my_signature_for_my_real_addr
ess@hotmail.com (Dr. David Kirkby) writes:
quote:
> 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".
quote:
> 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.
quote:
> 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).




[ Post a follow-up to this message ]



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


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 08:52 PM

Dr. David Kirkby wrote:
quote:
> 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




[ Post a follow-up to this message ]



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


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 08:52 PM

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]







[ Post a follow-up to this message ]



    Re: Reading and ejecting CD-ROMs - why is it such a pain???  
Juergen Keil


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 08:52 PM

see_my_signature_for_my_real_addr
ess@hotmail.com (Dr. David Kirkby) writes:
quote:
> 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".
quote:
> 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.
quote:
> 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).




[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:32 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register