Use this boot option when you need to specify an alternate kernel or /etc/system file.
To specify an alternate /etc/system file when booting a SPARC based system interactively by using the boot -a command, you must perform the following steps before the system is booted.
1. Make backup copies of the /etc/system and boot/solaris/filelist.ramdisk files.
# cp /etc/system /etc/system.bak # cp /boot/solaris/filelist.ramdisk /boot/solaris/filelist.ramdisk.orig |
2. Add the etc/system.bak file name to the /boot/solaris/filelist.ramdisk file
# echo "etc/system.bak" >> /boot/solaris/filelist.ramdisk |
3. Update the boot archive.
# bootadm update-archive -v |
Boot the system interactively.
ok boot -a |
Answer the following system prompts:
When prompted, enter the name of the kernel to use for booting.
Press enter to use the default kernel file name. Otherwise, provide the name of an alternate kernel, press Enter.
When prompted, provide an alternate path for the modules directories.
Press enter to use the default module directories. Otherwise, provide the alternate paths to module directories, press Enter.
When prompted, provide the name of an alternate system file.
Type /dev/null if your /etc/system file has been damaged.
When prompted, enter the root filesystem type.
Press enter to select UFS for local disk booting, which is the default, or enter NFS for network booting.
When prompted, enter the physical name of root device.
Provide an alternate device name or press return to use the default.
If you are not prompted to answer these questions, verify that you typed the boot -a command correctly.
In this example, the default choices (shown in square brackets []) are accepted. For instructions and an example of booting an alternate file system by using the boot -a command, see SPARC: How to Boot a System Interactively.
ok boot -a Resetting ... Sun Ultra 2 UPA/SBus (2 X UltraSPARC-II 296MHz), No Keyboard OpenBoot 3.25, 512 MB memory installed, Serial #10342381. Ethernet address 8:0:20:9d:cf:ed, Host ID: 809dcfed. Rebooting with command: boot -a Boot device: /sbus@1f,0/SUNW,fas@e,8800000/sd@a,0:a File and args: -a Boot device: /sbus@1f,0/SUNW,fas@e,8800000/sd@a,0:a File and args: -a Name of system file [/etc/system]: SunOS Release 5.11 Version zwicky:nbsclean-build:12/04/2007 64-bit Copyright 1983-2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Retire store [/etc/devices/retire_store] (/dev/null to bypass): root filesystem type [ufs]: Enter physical name of root device [/sbus@1f,0/SUNW,fas@e,8800000/sd@a,0:a]: WARNING: consconfig: cannot find driver for screen device /SUNW,ffb@1e,0 Hostname: dancehallgirl NIS domain name is boulder.Central.Sun.COM /dev/rdsk/c0t10d0s7 is clean Reading ZFS config: done. dancehallgirl login: |