In Solaris 8, when I boot to single user mode, mount a device and then reboot or init 0, the system unmount it automatically. However, in Solaris 10 it does not seem to do the same. Here is what I did:
{0} ok boot -s
# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c1t0d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
/pci@0/pci@0/pci@2/scsi@0/sd@0,0
1. c1t1d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
/pci@0/pci@0/pci@2/scsi@0/sd@1,0
# mount /dev/dsk/c1t0d0s0 /mnt
# cd /mnt
# ls
# reboot
Creating boot_archive for /mnt
updating /mnt/platform/sun4v/boot_archive
syncing file systems... done
rebooting...
Resetting...
Sun Netra T5220, No Keyboard
Copyright 2008 Sun Microsystems, Inc. All rights reserved.
OpenBoot 4.30.0, 4096 MB memory available, Serial #81044804.
Ethernet address 0:14:4f:d4:a5:44, Host ID: 84d4a544.
Boot device: /pci@0/pci@0/pci@2/scsi@0/disk@0,0:a File and args:
ERROR: Last Trap: Fast Data Access MMU Miss
{0} ok
I am stuck in the ok prompt and cannot boot anymore, not even to single user mode. You can notice from above that the system "Creating boot_archive for /mnt" instead of un-mounting it. Can anybody help fixing this problem?
I get the ok prompt back... did not solve the problem!
{0} ok reset-all
Sun Netra T5220, No Keyboard
Copyright 2008 Sun Microsystems, Inc. All rights reserved.
OpenBoot 4.30.0, 4096 MB memory available, Serial #81044804.
Ethernet address 0:14:4f:d4:a5:44, Host ID: 84d4a544.
Good questions! Yes, they were mirrored initially. I did detach disk1 and went to single user mode; did not update vfstab. I used slice 0 to boot from.
Slice 0 of disk 0. I tried booting from slice 0 of disk 1 but I think I need to edit /etc/vfstab first. I guess I will just restore what I can and go from there. Thanks for the help!
I actually found it via google from some site but I don't remember which one. But I have used it several times and I always got it to work. But I use an older Solaris 10 (update 4) and I don't this boot archive jive. So no guarantees.