Operating System - HP-UX
1837107 Members
2211 Online
110112 Solutions
New Discussion

Re: How can I tell what disk & kernel am I booted off ?

 
SOLVED
Go to solution
S.Rider
Regular Advisor

How can I tell what disk & kernel am I booted off ?

I'm doing some testing with our new vPar'ed SuperDome, booting alternate paths and previous kernels. Everything comes up fine.
But, what command(s) can I enter to see what disk/kernel I'm actually running off ?
Ride Boldly Ride, but watch out for El Dorado's
5 REPLIES 5
Rodney Hills
Honored Contributor
Solution

Re: How can I tell what disk & kernel am I booted off ?

echo 'boot_string/s' | adb /stand/vmunix /dev/mem

Should show you which physical disk was used for booting.

HTH

-- Rod Hills
There be dragons...
Rick Garland
Honored Contributor

Re: How can I tell what disk & kernel am I booted off ?

The 'setboot' command (with no options) can tell you.

Many other options available with setboot. View the man for details.
Rodney Hills
Honored Contributor

Re: How can I tell what disk & kernel am I booted off ?

Rick,

Setboot only shows what value is in the EPROM of your host, not necessarily the boot device used for the last boot.

You can interrupt a boot process and boot from any device with a boot image (tape, CD, other disk...)

-- Rod Hills
There be dragons...
Rick Garland
Honored Contributor

Re: How can I tell what disk & kernel am I booted off ?

Rod:

You're right - thanks for correction.
S.Rider
Regular Advisor

Re: How can I tell what disk & kernel am I booted off ?

echo 'boot_string/s' | adb /stand/vmunix /dev/mem
works for me. Shows what disk I'm using.
And if I boot off /stand/vmunix.prev, the above command returns a "kernel and core release versions don't match". Untill I change the command to
echo 'boot_string/s' | adb /stand/vmunix.prev /dev/mem
So it's usefull for telling me both what disk and what kernel I am booted from.
Thanks.
Ride Boldly Ride, but watch out for El Dorado's