1832224 Members
2405 Online
110041 Solutions
New Discussion

corrupt kernel

 
SOLVED
Go to solution
lawrenzo
Trusted Contributor

corrupt kernel

Hello,

I have been working on a crash and burn system and whilst tuning I managed to corrupt the kernel. I did .......

reboot system
interupt boot
bo pri ipl
interact with isl

ISL> hpux /stand/vmunix.prev

once the system came up....

# cp /stand/vmunix.prev /stand/vmunix

is there anything else I need to do?

Thanks
hello
3 REPLIES 3
Naveej.K.A
Honored Contributor

Re: corrupt kernel

Hi,

That (copying the kernel) is more than enough!!

Have a nice time crashing and burning systems ;)

Naveej
practice makes a man perfect!!!
Sudeesh
Respected Contributor

Re: corrupt kernel

Hi,
In addition I will do a copy of /stand/system.prev to /stand/system.



Sudeesh
The most predictable thing in life is its unpredictability
Joseph Loo
Honored Contributor
Solution

Re: corrupt kernel

hi,

to create a new kernel:

. Execute the "system_prep" script to extract a current copy of your system file into /stand/build/system:
cd /stand/build
/usr/lbin/sysadm/system_prep -v -s system

. Build the kernel:
mk_kernel -s system
The mk_kernel command creates /stand/build/vmunix_test.

. Move the old system file and kernel so if anything goes wrong, you still have a bootable kernel:
mv /stand/system /stand/system.prev
mv /stand/vmunix /stand/vmunix.prev

. Move the new system file and new kernel into place, ready to be used when you reboot the system:
mv /stand/build/system /stand/system
mv /stand/build/vmunix_test /stand/vmunix

. Prepare for rebooting by invoking the kmupdate command. This sets a flag that tells the system to use the new kernel when it restarts:
/usr/sbin/kmupdate

. Reboot the system using the shutdown(1M) command

regards.
what you do not see does not mean you should not believe