Linux辅导:无密码情况下进入Linux的单用户root模式
来源:优易学  2011-2-27 15:46:07   【优易学:中国教育考试门户网】   资料下载   IT书店

  作为一个Linux系统管理员,你可能会把Linux 超级用户密码遗忘了,把/etc/inittab或/etc/rc.d/rc.sysinit之类文件误编辑,导致系统不能正常启动的恼人错误?

  而为了解决以上问题,你就需要进到linux根文件系统处于可读写状态的单用户模式下。

  下面介绍在GRUB引导下进入Linux单用户模式的三种方式:

  1.硬件环境:

  intel P4 / 1G RAM / sata 80G

  2.软件环境:

  (1)Fedora Core 3(以下简称为FC3)和Windows2000 advance server双系统

  (2)LVM管理Linux分区

  (3)/boot/grub/grub.conf文件内容:

  

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,2)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/sda
default=1
timeout=1000
splashimage=(hd0,2)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.9-1.667)
root (hd0,2)
kernel /vmlinuz-2.6.9-1.667 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.9-1.667.img
title windows 2000 adv
rootnoverify (hd0,0)
chainloader +1

[1] [2] [3] 下一页

责任编辑:虫虫

文章搜索:
 相关文章
热点资讯
热门课程培训