`
moqiang02
  • 浏览: 527665 次
  • 性别: Icon_minigender_1
  • 来自: 苏州
文章分类
社区版块
存档分类
最新评论

通过进入单用户模式解决linux中的rc.local修改后无法启动的问题

 
阅读更多
问题:本想将teamviewer这个软件随linux自启动,所以将其启动命令放在rc.local中,但是重启后发现linux启动不起来了,系统前面都是正常启动的,就是无法进入帐户登陆界面,无法输入root帐号密码,不能登陆到系统.
<wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"></span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">按了ctrl+c,ctrl+z,quit,exit都无效.</span><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="word-wrap:normal; word-break:normal; line-height:21px; color:rgb(50,62,50); font-family:simsun; font-size:14px"><strong>解决办法</strong></span><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">:通过单用户模式进入linux,修改系统配置。</span><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">在使用GRUB引导程序的时候如何进入单用户模式?</span><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">解决方法:</span><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">使用GRUB时,可以添加一个S(大写S)到内核命令行,可以进入单用户模式。 要做到这样,需要重新起动系统,当GRUB的屏幕出现时:</span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">1、开机时按字母e进入引导界面。</span><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><img src="http://img.blog.csdn.net/20140719122255048" alt=""></span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">2、使用方向键选择你希望引导的内核。</span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">3、选择以单词kernel起头的这行。</span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><img src="http://img.blog.csdn.net/20140719122304408" alt=""><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">4.按下e键以编辑这个命令行。</span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">5.在行末添加一个字母S</span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"></span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"></span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">(或者添加单词single)</span><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><img src="http://img.blog.csdn.net/20140719122313643" alt=""><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><span style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px">6.回车接受改动。</span><wbr style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"><br style="color:rgb(50,62,50); font-family:simsun; font-size:14px; line-height:21px"></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr>

7.按b键接受修改并且启动内核。


8.这样就会进入单用户模式,可以在bash下执行命令。然后就可以在bash下修改系统的配置了。



分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics