Solaris CD-ROMs
From Genunix
Admittedly CD/DVD-ROM's can seem archaic in Solaris. Here are some hints to help dull the pain.
Contents |
Finding a CD/DVD-ROM
On most systems equipted with a LOM you'll actually have 2 CD/DVD-ROM's, one is virtual (the LOM provides both a virtual floppy and cdrom) and the other is physical. The Virtual typically is listed first so actions to /dev/cdrom will point there in most cases, not the real physical drive. This is the cause of much frustration.
You can find the drive by using iostat -En:
[atlantis:/] root# iostat -En c1t0d0 Soft Errors: 4 Hard Errors: 2 Transport Errors: 0 Vendor: AMI Product: Virtual CDROM Revision: 1.00 Serial No: Size: 0.00GB <0 bytes> Media Error: 0 Device Not Ready: 0 No Device: 2 Recoverable: 0 Illegal Request: 4 Predictive Failure Analysis: 0 c2t0d0 Soft Errors: 2 Hard Errors: 1 Transport Errors: 12 Vendor: AMI Product: Virtual Floppy Revision: 1.00 Serial No: Size: 0.00GB <0 bytes> Media Error: 0 Device Not Ready: 0 No Device: 1 Recoverable: 0 Illegal Request: 2 Predictive Failure Analysis: 0 c3t0d0 Soft Errors: 2 Hard Errors: 0 Transport Errors: 0 Vendor: MATSHITA Product: CD-RW CW-8124 Revision: DZ13 Serial No: Size: 0.00GB <0 bytes> Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 Illegal Request: 2 Predictive Failure Analysis: 0 ...
Above you can see that c1t0d0 is the virtual CDROM, c2t0d0 is the virtual floppy, and c3t0d0 is the real CDROM. You can access this device with the path: /dev/dsk/c3t0d0s0
Ejecting a CD/DVD-ROM
The eject command with no arguments may or may not point to the real CDROM. If there is any doubt, supply the real device path as an argument:
[atlantis:/] root# eject /dev/dsk/c3t0d0s2
Mounting a CD/DVD-ROM
Two things can seem very funky about mounting read-only removable media on Solaris: first, you must mount it as read-only specifically (its not automatic like on Linux), and secondly you must specify the "hsfs" filesystem rather than the more common "iso9660".
[atlantis:/] root# mount -F hsfs -o ro /dev/dsk/c3t0d0s2 /a
Attribution
This content was donated by Joyent.
