3

How to mount the CD-ROM on Solaris 10 without knowing the CD-ROM device name?

3 Answers 3

5

You do want to mount a CD read-only with:

mount -F hsfs -o ro /dev/sr0 /cdrom 

I have never used any solaris machines with multiple CDs myself, but I assume you can use /dev/sr1 etc. for the other drives.

2
  • This is easier than providing the specific CD-ROM device name. Commented Jun 11, 2013 at 13:24
  • Except for it doesn't work if you do a minimal Solaris 9 install. Commented Aug 22, 2017 at 14:22
4
  1. Find the CD-ROM device name using the iostat command.

    # iostat -En c0d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 Model: VBOX HARDDISK Revision: Serial No: VB8abc1378-4a46 Size: 17.18GB <17179803648 bytes> Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 Illegal Request: 0 c1t0d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 Vendor: VBOX Product: CD-ROM Revision: 1.0 Serial No: Size: 2.25GB <2254110720 bytes> Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 Illegal Request: 8 Predictive Failure Analysis: 0 

    The CD-ROM device name is c1t0d0.

  2. Mount the CD-ROM

    # mount -r -F hsfs /dev/dsk/c1t0d0s0 /cdrom 
0

If the cdrom is not automatically mounted then you don't have the volfs service up

svcs -a|grep volfs online Jun_05 svc:/system/filesystem/volfs:default 

Doing

svcadm enable volfs 

Will renable the daemon and mount automatically the cdroms under /cdrom/cdrom# where # will be a number.

Otherwise you can do as Adam Siemion mentioned in is answer, use iostat and then mount the cd manually.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.