Linux中国  设为主页
 收藏本站
 
当前位置: > 首页 ->Linux技术 ->Linux程序设计 ->HowtoCreatingandBootingaNewKernelWithautoconfig
  相关分类: 
入门与提高
系统管理
网络应用
嵌入式系统
内核研究
服务器相关
发行版专区
Linux程序设计
Linux安全
BSD相关
桌面应用
  站内搜索: 
热门文章排行
热门文章排行 Linux系统下C语言编程 基础知识介绍 (05-01)
快速编辑Shell命令行(06-04)
Linux系统环境下的Socket编程详细解(04-19)
Awk 实例(一) (04-22)
基于libmad 的简单MP3流媒体播放器的(04-22)
精采文章排行
精采文章排行 快速编辑Shell命令行(06-04)
从2.4到2.6内核发展中的改进(06-04)
两个很详细的shell实例(06-04)
内核设计篇(06-04)
shell技巧(06-04)
 

HowtoCreatingandBootingaNewKernelWithautoconfig

作者:Webmaster   来源:Linuxdby.com   点击:   日期:2007-06-04 [收藏] [投稿]

  IE是否经常中毒?推荐您

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.



 如果您对本文有任何疑问或者建议,请到讨论区发表您的意见: >> 论坛入口 <<



上一篇:利用ip_conntrack表实现封ip的shell脚本,并有简单的web发布   下一篇:批量添加用户
文章评论】 【收藏本文】 【推荐好友】 【打印本文】 【我要投稿】 【论坛讨论
   相关文章: ·快速编辑Shell命令行·从2.4到2.6内核发展中的改进·两个很详细的shell实例·内核设计篇·shell技巧·批量添加用户·HowtoCreatingandBootingaNewKernelWitha·利用ip_conntrack表实现封ip的shell脚本,·30分钟搞定BASH脚本编程!·Shell初学者的入门知识
   文章评论:(1条)   
 请留名: 匿名评论   点击查看所有评论 论坛讨论
 

 声明:刊登此文章是为了传递更多信息,文章内容仅供参考,转载请注明出处。