tempad
ReadyGo!技术成就梦想 >>Shell教程 >> HowtoCreatingandBootingaNewKernelWithautoconfig

HowtoCreatingandBootingaNewKernelWithautoconfig

ReadyGo!技术成就梦想 网络搜索 efish 2008-2-24 2:50:22

IwillpostsometechtipaboutIrix,hopeitwillbeusefultoeveryone.

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.

责任编辑: efish 参与评论 查找更多:
相关文章
批量添加用户 批量添加用户
shell技巧 shell技巧
两个很详细的shell实例 两个很详细的shell实例
从2.4到2.6内核发展中的改进 从2.4到2.6内核发展中的改进
快速编辑Shell命令行 快速编辑Shell命令行
如何在.cshrc中判断是否在loginshell中? 如何在.cshrc中判断是否在loginshell中?
在Bourneshellscript里要怎么找出最后一个参数? 在Bourneshellscript里要怎么找出最后一个参数?
如何让setuid的shellscript可以使用? 如何让setuid的shellscript可以使用?
shell要如何分类呢? shell要如何分类呢?
Shell介绍 Shell介绍
2秒记住本站域名

玩过泡泡龙吗?Readygo?Go! 再加上.Com.Cn的后缀,那就是大名小顶的ReadyGo.com.cn

分类导航
ReadyGo!技术成就梦想