c0t3d0 -> c1t3d0
1) Boot off the CD-ROM in single user mode.
Enter 'boot cdrom -s' at the OpenBoot PROM ok prompt. This will boot into single user mode. A shell will follow shortly after this.
2) Mount the hard disk's /root and /usr.
# TERM=sun
# export TERM
# mount /dev/dsk/c?t?d?s0 /a (mounts root filesystem to '/a') '?' varies on systems. Look in /dev/dsk to help determine which device to use. Once the hard disk's root filesystem is mounted, determine the slice number of the '/usr' filesystem.
Example:
# more /a/etc/vfstab | grep /usr
#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr ufs 1 yes -
/dev/dsk/c0t3d0s6 /dev/rdsk/c0t3d0s6 /usr ufs 1 no -
^ ^
| |
This is the number needed
Mount the hard disk's /usr filesystem under /a/usr.
# mount /dev/dsk/c?t?d?s* /a/usr (where * is the number found above) (where ? are the numbers used for root), if you don't have a "/usr" filesystem mount only the root filesystem.
3 Rebuild /devices and /dev.
# cd /a
# _INIT_RECONFIG=1
# export _INIT_RECONFIG
# /usr/sbin/chroot /a /etc/init.d/drvconfig
Configuring the /devices directory
# /usr/sbin/chroot /a /etc/init.d/devlinks
Configuring the /dev directory
Configuring the /dev directory (compatibility devices)
4) Modify /etc/vfstab (and /etc/bootrc if necessary.)
a) Determine the new boot path:
# ls -l /dev/dsk/c?t?d?s0 (This is the hard drive's root slice as described in Step 2.)
b) Update vfstab:
Look in /a/dev/dsk/*. It is very likely that the controller numbers have changed. It is even possible that the entries in here are different than the entries in /dev/dsk/*. Be sure to update the /a/etc/vfstab according to these new devices. (in your case you already that will be c1t3d0s?)
# vi /a/etc/vfstab ( Make any target address changes and save )
5) Unmount the hard disk.
# cd /
# umount /a/usr
# umount /a
6) Attempt to reboot off the hard disk.
# halt
# show boot-device ( Show current boot device )
# devalias ( List all device aliases )
# setenv boot-device disk ( Change boot device to device alias )
# reset ( Reboot from boot-device )
Hope it helps,
Carlos Almeida,