Solaris box unable to boot due to corrupted /etc/vfstab file

The following procedure useful to get the the system to normal state by fixing the corrupted /etc/vfstab file in Solaris


1)Insert the CD/DVD.

2)boot the system from CD-ROM
ok> boot cdrom -s
Note: If the system is at LOM, issue the command 'break' to get in to ok prompt

3)Check for file system layout after booting from CD
# df -k
Filesystem            kbytes    used   avail capacity  Mounted on
/pci@1f,0/pci@1,1/ide@d/cdrom@0,0:b
                      512591  485732       0   100%    /
swap                  967336     656  966680     1%    /tmp
proc                       0       0       0     0%    /proc
mnttab                     0       0       0     0%    /etc/mnttab
/tmp/devices          967336     656  966680     1%    /devices
/tmp/dev              967336     656  966680     1%    /dev
/devices/pci@1f,0/pci@1,1/ide@d/sd@0,0:a
                     2480062 2480062       0   100%    /cdrom
/cdrom/Solaris_9/Tools/Boot/usr
                     2480062 2480062       0   100%    /usr
fd                         0       0       0     0%    /dev/fd

4)Go to the path /devices, from where we can find the physical devices
#cd /devices

5)ls -ld /dev/dsk/c1t0d0s0
lrwxrwxrwx   1 root     root          44 Jul  9 03:27 /dev/dsk/c1t0d0s0 -> ../../devices/pci@1f,0/pci@1/scsi@8/sd@0,0:a

6)mount it on /mnt
# mount /dev/dsk/c1t0d0s0 /mnt

7)edit vfstab and do the necessary changes.
#vi /mnt/etc/vfstab

Comments

Popular posts from this blog

Jenkins Dynmaic Parameter - List All Branches in a Git Repository

JMSWMQ2013: The security authentication was not valid that was supplied for QueueManager 'XYZ' with connection mode 'Client' and host name 'x.x.x.x(1415)'. Please check if the supplied username and password are correct on the QueueManager to which you are connecting.