Mount

From Hackepedia
Jump to navigationJump to search

Manually mount and unmount a cd with Solaris 10 on an Ultra 10

Chances are you have a harddrive and a cd-rom, and for some reason vold isn't mounting your cd-rom.

$ ls /dev/dsk
c0t0d0s0  c0t0d0s2  c0t0d0s4  c0t0d0s6  c0t2d0s0  c0t2d0s2  c0t2d0s4  c0t2d0s6
c0t0d0s1  c0t0d0s3  c0t0d0s5  c0t0d0s7  c0t2d0s1  c0t2d0s3  c0t2d0s5  c0t2d0s7

and you should see both disks, each with 7 slices. In my case the difference is c0t0d0 and c0t2d0.

$ mount | awk '{print $3}' | grep c0
/dev/dsk/c0t0d0s0
/dev/dsk/c0t0d0s7

this shows me that my harddrive is c0t0d0, so now I can mount the cdrom. If /cdrom/cdrom0 doesn't exist:

# mkdir /cdrom/cdrom0

(if /cdrom doesn't exist, mkdir it first).

# mount -F hsfs /dev/dsk/c0t2d0s0 /cdrom/cdrom0

and now I have it mounted, I can

# cd /cdrom/cdrom0 

to see the cd contents. When you're done:

# umount /cdrom/cdrom0
umount: /cdrom/cdrom0 busy

Just remember now when you're done that you have to

# cd /

You can not be sitting in /cdrom/cdrom0, or have any application using that directory when you want to

# umount /cdrom/cdrom0
#