全部博文(930)
分类: LINUX
2008-12-01 23:13:03
快速恢复你的linux!!!
1.root密码忘记或丢失。(grub未加密情况下)
解决方法:开机进入启动菜单,按e键进入编辑 再按e进入编辑模式 在最后加入single后回车,接着按b键引导系统。键入password回车输入新密码即可修改以前root的密码。
2.grub被误删除,开机进入不了系统。如未安装完windows覆盖掉了grub引导扇区。进入不了系统。
解决方法:放入系统盘,重新引导系统按F2进入修复模式后,键入boot:linux rescue回车。选择englis / us /NO 不配置网络 注意提示!选择continue 键入
(1)-/bin/sh-2.05b#chroot /mnt/sysimage/
(2)sh-2.05b#grub
(3)grub>find /boot/grub/grub.conf 将显示(hd0,1)看情况
(4)root (hd0,1)
(5)setup (hd0,1)
(6)重启即可
3.grub 加密以及加密后如何修改root密码。
A:如果加密为明文。修改#vi /boot/grub/grub.conf 在default=0 与timeout=10之间加入一段为“password=123123” 123123为密码。加密后不可进入单用户了。也不可更改root密码。
B:加密为密文。以root身份执行#grub-md5-crypt将grub生成为md5的密文。编辑#vi /etc/grub.conf 位置为timeout=10
splashimage=(hd0,7)/boot/grub/splash.xpm.gz
password ——md5 $1$7uDL20$eSB.XRPG2A2Fv8AeH34nZ0
title Fedora Core (2.4.22-1.2061.nptl)
lock
lock的意思就是把Redhat Fedora锁住了。如果启动时会提示错误。这时就应该按P键,然后输入密码就行了。
使用password,lock命令实现几种加密方法如下:
1) 单纯对GRUB界面加密,而不对被引导的系统加密 在timeout一行下面加一行: password ——md5 PASSWORD
2) 对GRUB界面加密,同时对被引导的系统加密 在timeout一行下面加一行: password ——md5 PASSWORD 在title一行下面加一行: lock
3) 同时存在多个被引导系统,针对特定的系统实例分别加密(未对GRUB操作界面加密) 在title一行下面加一行: lock 在lock一行下面紧贴着再加一行: password ——md5 PASSWORD 注:lock不能单独使用.
修改密码同1所述。
/etc/grub.conf 与/boot/grub/grub.conf区别:前者是指向后者的链接。
chinaunix网友2009-11-03 16:22:49
i just want to say,the article you write is great,today is my first knights bootsvisit here,and i'll come again to read your new blog.in our website,we sell all kind of women ugg boots,like ugg classic boots and so on,the ugg classic cardy is so popular that you can view them and purchase.(回复 | 举报
chinaunix网友2009-11-03 16:22:38
i just want to say,the article you write is great,today is my first knights bootsvisit here,and i'll come again to read your new blog.in our website,we sell all kind of women ugg boots,like ugg classic boots and so on,the ugg classic cardy is so popular that you can view them and purchase.(回复 | 举报
chinaunix网友2009-11-03 16:22:36
i just want to say,the article you write is great,today is my first knights bootsvisit here,and i'll come again to read your new blog.in our website,we sell all kind of women ugg boots,like ugg classic boots and so on,the ugg classic cardy is so popular that you can view them and purchase.(回复 | 举报
chinaunix网友2009-11-03 16:22:17
The thick fleecy inner of our merino The thick fleecy inner of our merino [url=http://www.gouggs.com/products_all.html]free shipping UGG Bailey Button sheepskin [/url] ugg boots are constructed from millions of microscopic fibres which posses extremely remarkable qualities.Both summer and winter,it will keep our feet in comfortable 22 degree [url=http://www.gouggs.com/ugg-bailey-button-c-10.html]UGG Bailey Button constant temperature[/url] . Own it ,you will find it is different from other boot