linux中root用户怎么无密码进入,无密码情况下如何进入Linux的单用户root模式?

当Linux超级用户密码遗忘或系统配置错误导致无法启动时,可以使用单用户模式进行修复。本文介绍了在FedoraCore3环境下,通过GRUB引导进入Linux单用户模式的三种方法,涉及Intel P4硬件、LVM分区和GRUB配置文件详解。
摘要由CSDN通过智能技术生成

作为一个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/sdadefault=1timeout=1000splashimage=(hd0,2)/grub/splash。xpm。gzhiddenmenutitle Fedora Core (2。6。9-1。667)root (hd0,2)kernel /vmlinuz-2。

6。9-1。667 ro root=/dev/VolGroup00/LogVol00 rhgb quietinitrd /initrd-2。6。9-1。667。imgtitle windows 2000 advrootnoverify (hd0,0)chainloader +1。

全部

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值