随笔分类 -  RH-Boot

inittab
摘要:runlevel的设置 runleve级别设置 runlevel级别调整 1.Runlevel 查询当前runlevel 2.Init x 切换至x level c 。不同runlevel级别下对应 services,需要配合使用chkconfig命名 d.注意对/etc/inittab这个配置文件各个环节的理解 chkconfig –list chkconfig –... 阅读全文

posted @ 2009-07-12 11:10 晓风残梦 阅读(160) 评论(0) 推荐(0)

Grub 重装
摘要:grub重装 一 .grub-install /dev/sda 1.将重装grub的一些必要文件拷贝至/dev/sda下的/boot/grub目录下 2.如果要要改变拷贝的路径,需要用-root-directory=参数 注意:此命令必须要在rescue下,chroot至/mnt/sysimage下执行,执行完毕,exit至 光盘根目录下,下面root和setup需要在光盘根目录的grub she... 阅读全文

posted @ 2009-07-12 11:08 晓风残梦 阅读(626) 评论(0) 推荐(0)

boot分区损坏
摘要:环境:   /boot分区完全被破坏,且MBR也被破坏。(rm -rf /boot;fdisk /mbr) 1、修复Grub:   a、光盘启动,进入rescue模式。keywords:linux rescue.   b、进入真实系统环境。keywords: chroot /mnt/sysimage   c、安装grub到/boot分区下,本操作会将grub文件夹安装到boot分区下,包括sta... 阅读全文

posted @ 2009-07-12 10:42 晓风残梦 阅读(1504) 评论(0) 推荐(0)

导航