Manually Mount a local or remote CDROM in Sun Solaris

by ¯/¯ / /\/

I recently went to try and install Oracle 10g on a Solaris 10 server, and for some reason it wouldn’t recognize the DVD when I put it in the drive. Solaris and UNIX machines in general I think and usually good for this sort of thing. You put a CD in the drive, it detects it, and puts an icon on your desktop for the new CD or at least mounts it to something like /cdrom or /media/cdrom for you.

However, this machine on this particular day, wasn’t playing ball. So I had to figure out how to do it manually.

Here’s what I did.

1) Logon to the Sun Server and switch user to root

host$ su –

2) Indentify Device Name for CDROM

The device name for the CDROM is normally /dev/dsk/c0t6d0s2. However, you can find this as follows:

host# ls -al /dev/sr* |awk ‘{print “/” $11}’

This returns the device name for the CDROM. In my case, /dev/dsk/c0t6d0s2

3) Mount CDROM

Assuming the mount point “/cdrom” already exists, mount the CDROM as follows:

host# mount -F hsfs -o ro /dev/dsk/c0t6d0s2 /cdrom

where /dev/dsk/c0t6d0s2 is the device name for the CDROM and /cdrom is the mount point

Thanks to Manually Mount local/remote CDROM in Sun Solaris for this information.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s