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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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. |
| |||
| 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 |
| ||||
| 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). |