elby


« Second Day | Main | last.fm xmms xmms-sc... »
Wednesday Mar 21, 2007

mount SATA drive x86

Solaris Problem: I want to mount my SATA drive

1.  Find device location using
iostat -En

bash-3.00# iostat -En
c0d0             Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Model: HITACHI HDS7225 Revision:  Serial No: VDB41BT4C5APUC  Size: 250.05GB <250054705152 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0


 Here we can see that c0d0 is the device location, the key is to finding the slice to mount, so c0 = controller d0= drive s# = slice

2.  Try to mount manually (start at slice 2)
bash-3.00# mount /dev/dsk/c0d0s2 /mnt <== not working for me (usually means the whole disk)
bash-3.00# mount /dev/dsk/c0d0s0 /mnt <== not working for me  (must mean newfs was on diff slice)
bash-3.00# mount /dev/dsk/c0d0s7 /mnt <== WORKING


3.  Have Solaris mount drive upon starting (umount /mnt if already mounted) edit /etc/vfstab and add the following line

/dev/dsk/c0d0s7 - /export/home ufs - yes ro

Comments:

Did you consider using /usr/sbin/fstyp ? Rather than brute-force to figure out what mounts, you could have checked to see if a filesystem on was on a slice before attempting to mount it.

Posted by Patrick on September 29, 2007 at 02:45 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed

Today's Page Hits: 66