Short tip: Mount optical media under Solaris

I'm not administrating Solaris systems very often - it is even more rare that I need to mount optical media on Solaris. This is just a short reminder so that I don't need to use a search engine everytime.

First of all the CD / DVD drive is determined by the iostat command. Afterwards the drive is mounted using the first device slice.

 1# iostat -En
 2c8t0d0           Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
 3Vendor: VMware   Product: Virtual disk     Revision: 1.0  Serial No:
 4Size: 21,47GB <21474836480 bytes>
 5Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
 6Illegal Request: 4 Predictive Failure Analysis: 0
 7c7t0d0           Soft Errors: 0 Hard Errors: 5 Transport Errors: 0
 8Vendor: NECVMWar Product: VMware IDE CDR10 Revision: 1.00 Serial No:
 9Size: 0,35GB <349175808 bytes>
10Media Error: 0 Device Not Ready: 5 No Device: 0 Recoverable: 0
11Illegal Request: 1 Predictive Failure Analysis: 0
12
13# mount /dev/c7t0d0s0 /mnt

Depending on the media type is might be necessary to select the file system (e.g. -o hfs).

Translations: