Your Ad Here

IBM AIX/UNIX system storage administration ksh/perl scripting

Friday, September 11, 2009

Automatically mount a CDROM using volume manager on Solaris 10

1) Insert a CD-ROM into the CD-ROM player

2) Type the mount command without options to verify that the device was mounted. Note the mount point that was used

3) Eject the CD-ROM as follows :

# eject cdrom

4) Use the pgrep command to look for the volume manager process. The volume manager process is vold.

# pgrep -l vold

5) Turn off the volume manager by typing the following command :

# /etc/init.d/volmgt stop

6) Look for volume management process using pgrep command as follows :

# pgrep -l vold

7) Insert the CD into the CD-ROM player.

8) Restart the volume manager daemon by issuing the following command :

# /etc/init.d/volmgt start

9) To get the list of mounted file systems issue the mount command without any options