HowtoCreatingandBootingaNewKernelWithautoconfig
2006-03-05 11:32:33 来源:WEB开发网
Tobuildanewkernelafterreconfiguringthesystem,followthesesteps:
1.Becomethesuperuserbygivingthecommand:
su
2.Makeacopyofyourcurrentkernelwiththecommand:
cp/unix/unix.save
3.Givethecommand:
/etc/autoconfig-f
Thiscommandcreatesanewkernelandplacesitinthefile/unix.install.
4.Rebootyoursystemwiththecommand:
reboot
Caution:Whenyouissuetherebootcommand,thesystemoverwritesthecurrentkernel
(/unix)withthekernelyouhavejustcreated(/unix.install).Thisiswhyyoushouldalways
copythecurrentkerneltoasafeplacebeforerebooting.
RecoveringFromanUnbootableKernel
1.Ifthesystemfailstoreboot,trytorebootitagain.Ifitstillfails,interrupttheboot
PRocessanddirectthebootPROMtobootfromyouroldsavedkernel(unix.save).
2.PresstheResetbutton.YouseetheSystemMaintenanceMenu:
SystemMaintenanceMenu
1)StartSystem.
2)InstallSystemSoftware.
3)RunDiagnostics.
4)RecoverSystem.
5)EnterCommandMonitor.
3.ChooSEOption5toentertheCommandMonitor.Yousee:
CommandMonitor.Type"exit"toreturntothemenu.
>>
4.Nowatthe>>prompt,tellthePROMtobootyouroldsavedkernel.Thecommand
is:
bootunix.save
Thesystembootstheoldsavedkernel.
5.Oncethesystemisrunning,usethefollowingcommandtomoveyouroldsaved
kerneltothedefault/unixname.Thismethodalsokeepsacopyofyouroldsaved
kernelinunix.save:
cp/unix.save/unix
Thenyoucannormallybootthesystemwhileyouinvestigatetheproblemwiththenew
kernel.Trytofigureoutwhatwentwrong.Whatwaschangedthatstoppedthekernel
frombooting?Reviewthechangesthatyoumade.
?Didyouincrease/decreaseaparameterbyalargeamount?Ifso,makethechange
lessdrastic.
?Didyouchangemorethanoneparameter?Ifso,makeachangetoonlyone
parameteratatime.
Tags:HowtoCreatingandBootingaNewKernel Withautoconfig
编辑录入:爽爽 [复制链接] [打 印]更多精彩
赞助商链接