1833313 Members
3187 Online
110051 Solutions
New Discussion

Re: Kernel Question

 
SOLVED
Go to solution
Larry Scheetz
Advisor

Kernel Question

I loaded patches and system and it wouldn't boot. I then interacted and booted from /stand/vmunix.prev I renamed the bad one to /stand/vmunix.bad

Question is I am now running off of /stand/vmunix.prev and want this to be the default boot kernel. Can I just rename it from vmunix.prev to vmunix on a live system and then on next reboot it will be fine?

Thanks
Larry
A Happy heart makes the face cheerful
8 REPLIES 8
harry d brown jr
Honored Contributor
Solution

Re: Kernel Question

Larry,

do a cp /stand/vmunix.prev /stand/vmunix, providing you have the space available in /stand.

live free or die
harry
Live Free or Die
Luc Bussieres_1
Trusted Contributor

Re: Kernel Question

Larry,

If this is an 11.0 system you have more things to do to move back the old kernel. Since you have the system file and the dlkm directory that is used also.

# mv dlkm dlkm.bad
# mv dlkm.vmunix.prev dlkm
# mv system system.bad
# mv system.prev system
# mv vmunix vmunix.bad
# mv vmunix.prev vmunix

Luc
James R. Ferguson
Acclaimed Contributor

Re: Kernel Question

Hi Larry:

Yes, copy /stand/vmunix.prev as /stand/vmunix. I'd also restore /stand/system.prev as /stand/system for consistency.

Regards!

...JRF...
RAC_1
Honored Contributor

Re: Kernel Question

cp /stand/vmunix.prev /stand/vmunix

(if you have enough space)
There is no substitute to HARDWORK
Larry Scheetz
Advisor

Re: Kernel Question

Thank you for all the quick good replies. One last one. Is there a command line option to tell what kernel you are running on? Thanks
A Happy heart makes the face cheerful
Ravi_8
Honored Contributor

Re: Kernel Question

Hi,

There is no any command to tell which kernel you are running. Basically it is hp-ux kernel
never give up
Luc Bussieres_1
Trusted Contributor

Re: Kernel Question

Larry,

Here is the command line you need,
# echo 'boot_string/S' | adb /stand/vmunix /dev/mem

The output should look like:

boot_string:
boot_string: disc(56/52.5.0;0)/stand/vmunix.prev


Luc
AUJ
Advisor

Re: Kernel Question

Larry,

Yes! In the command prompt, type.

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

Rgds,
AUJ