Thursday, June 9, 2011

How to mount CDROM in Linux, Solaris & HP-UX?

For Linux:


mkdir /cdrom
mount -t iso9660 -o ro /dev/cdrom /cdrom


For Solaris:


mkdir -p /cdrom
mount -F hsfs -o ro /dev/dsk/c0t6d0s2 /cdrom


In Solaris, most of the time, CDROM is on target 6.

For HP-UX:


# Below is to find CDROM's path/device name
ioscan -fnC disk
mkdir /cdrom
mount -F cdfs -o rr /dev/dsk/c0t2d0 /cdrom


Note: Some people prefer to use "/mnt" in Solaris/Linux and some other prefer "/media" in Linux. It all depends on preference. :)

5 comments:

Anonymous said...

i saw your blog randomly. Good collection. you have any experience with vmware.? i am using solaris installed into vmware. i am a newbie and need some guidance to work with vmware solaris. would be nice if you could assist

Unix Geek said...

@Anonymous: Solaris on VMWare is no different than Solaris on standalone/physical box. Let me know if you have any specific question and I will try to answer if possible. :)

Muthu said...

That anonymous is me :) well before comming to vmware.today i got a question from user. how to find global zone name from local zone. we have a file created which has global zone name . but only in few servers we have it. arp -a | grep SP but that we should set some naming convention to find the output from arp -a. any other way to find out.? it would be nice if you have some mail id for this blog or some contact so i can mail you my doubts.. i have ask my doubts each and everytime in comments :) if you are in facebook or something also that would be fine.. well at last its your call..

Anonymous said...

Vikas i asked you regarding how to find the global zone from local zone other that using arp -a | grep SP .. Please help me..

Unix Geek said...

@Muthu: In Solaris zones, unfortunately there is no direct way to find out one local zone's parent zone (i.e. Global zone). However, from global zone you can find out what all zone are running under.

"arp -a | grep SP" is the only way to find that out but that also has limitation. AFAIK, there should be DNS in place for this command's output to work.

For Oracle/Sun Solaris related questions, I would suggest you to join sunmanagers mail list. You will get much faster reponse there.

Cheers.