Sunday, June 13, 2010

Refresh CD/DVD on Solaris

So it comes that sometimes is dificult to handle CDs/DVDs on solaris via console, so here are the steps to refresh the contents

$ iostat -En
c0t0d0 Soft Errors: 9 Hard Errors: 0 Transport Errors: 0
Vendor: TOSHIBA Product: DVD-ROM SD-C2612 Revision: 1011 Serial No:
Size: 2.14GB <2144518144 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0

2. make sure that vold is not running.
# pgrep vold && pkill vold
If you attempt to mount the CD/DVD manually with vold running, you may receive the following error:
mount: /dev/dsk/c0t0d0s2 is already mounted, /cdrom is busy,
or allowable number of mount points exceeded

3. Create the mount point. In this example, the mount point will be /cdrom.
# [ ! -d /cdrom ] && mkdir /cdrom

4. Mount the CD/DVD.
# mount -F hsfs -o ro /dev/dsk/c0t0d0s2 /cdrom
If you do not specify the appropriate file system type, you may receive the following error:
mount: /dev/dsk/c0t0d0s2 is not this fstype.
If you do not mount the media read-only, you may receive the following message:
mount: /dev/dsk/c0t0d0s2 write-protected
Back to brandonhutchinson.com.

Taken from brandonhutchinson.com



Note: also you can restart vold and run volcheck


# svcadm refresh volfs
# svcadm disable volfs
# svcadm enable volfs
# volcheck

Check your CD/DVD


-Posted from my iPad

2 comments:

Anonymous said...

I would like to exchange links with your site eduardoarburola.blogspot.com
Is this possible?

eduardo arburola said...

Sure, what's your site?