Examples of Using Solaris Boot Command
Examples of Using Solaris Boot Command
The solaris boot command when used with various optional parameters will change
the booting behavior.
Syntax
The common syntax of boot command is solaris SPARC system is :
ok> boot
Example 2 :
The -a option will ask for configuration information such as where to find the system
file, where to mount root, and even override the name of the kernel itself. This is very
useful in case of a corrupt /etc/system file or any other such file that may be used in
booting process. Simply enter /dev/null when asked for /etc/system. The default
responses are mentioned in square brackets []. Press enter to select the default
options.
ok> boot -a
ok> boot -v
ok> boot -x
ok> boot -r
Example 7 :
The -f argument causes Autoclient systems to flush and reinitialize the client system’s
local cache and read all files over the network from the client’s file server. This flag is
ignored for all non-Autoclient systems.
ok> boot -f
Example 8 :
The -D argument specifies the default file. In general without this option the system will
choose a dynamic default file.
Example 9 :
The argument -w forces root file system to be mounted as read-write while booting.
But this option is not implemented. The ufs root filesystem is mounted read-only to
avoid problems during fsck. After fsck runs, it is remounted as read-write.
ok> boot -w
ok> boot -L
Rebooting with command: boot -L
Boot device: /pci@1f,700000/scsi@2/disk@0,0:a File and args: -L
1. zfsroot
2. zfsroot-with-patch
Select environment to boot: [ 1 - 2 ]: 1
To boot the selected entry, invoke: boot [ root-device ] -Z
rootpool/ROOT/zfsroot
Example 12 :
With the -Z argument, you can directly specify the bootable zfs dataset to boot from.
Network Booting
The SPARC systems can be booted from network either by using RARP/bootparams
or DHCP.
Troubleshooting
Now various boot arguments discussed above can be used together to troubleshoot a
booting issue. The most commonly used combination of arguments are :