1837524 Members
3574 Online
110117 Solutions
New Discussion

checking boot string

 
SOLVED
Go to solution
Michael Dalanek
Advisor

checking boot string


whats the command to see what my boot string is ?
5 REPLIES 5
Stefan Farrelly
Honored Contributor
Solution

Re: checking boot string


First do an; lvlnboot -v command to see your book disks.

Then for each disk which is listed as a boot disk you can do;

lifcp /dev/dsk/cxxxxx:AUTO $(tty)

This will display the boot string, eg. hpux
Im from Palmerston North, New Zealand, but somehow ended up in London...
Santosh Nair_1
Honored Contributor

Re: checking boot string

Once you have determined your boot disk using the lvlnboot -v command, you can do a lifcp /dev/dsk/c?t?d?:AUTO /tmp. This will copy the boot string to a file in /tmp named AUTO. It should read something like:
hpux (;0)/stand/vmunix

-Santosh
Life is what's happening while you're busy making other plans
Michael Dalanek
Advisor

Re: checking boot string


Thanks for the speedy replies. Now I can see my boot string how do I change it ? I want to add the -lq option.
Stefan Farrelly
Honored Contributor

Re: checking boot string


You change it with the mkboot command;

mkboot -a "hpux -lq" /dev/dsk/cxxxxxxx

Then use lifcp to reread it to ensure its been changed. Dont forget to do it on any book disk and the mirror disk if you have one.
Im from Palmerston North, New Zealand, but somehow ended up in London...
James R. Ferguson
Acclaimed Contributor

Re: checking boot string

Hi Michael:

In addition to everything already offered, if you want to find out what disk and/or kernel you actually booted from do this:

# echo 'boot_string/S'|adb /stand/vmunix /dev/mem

You will see something like:

boot_string:
boot_string: disc(10/0.6.0;0)/stand/vmunix

...which can be quickly related to the disk device file by examining the output of 'lvlnboot -v'.

This is quite useful when you have mirrored boot disks and want to verify that you can/did, in fact, bot from the mirror.

Regards!

...JRF...