V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
yinznet
V2EX  ›  问与答

linux无法引导启动,怎么破?

  •  
  •   yinznet · 2013-07-20 19:48:48 +08:00 · 2920 次点击
    这是一个创建于 3939 天前的主题,其中的信息可能已经有所发展或是发生改变。
    centos的启动分区由hd0,6变为hd0.4,导致无法引导成功,有什么办法可以修复吗?
    8 条回复    1970-01-01 08:00:00 +08:00
    ilikit
        1
    ilikit  
       2013-07-20 20:59:20 +08:00   ❤️ 1
    如果是Grub,可以在引导时修改引导分区的编号:在出现Grub选择界面的时候按E还是按C来着,这个不太记得了,楼主可以进到Grub的时候看看。
    yinznet
        2
    yinznet  
    OP
       2013-07-20 21:07:25 +08:00
    按E,进去之后就不知道怎么改了。。。
    zhttty
        3
    zhttty  
       2013-07-20 21:12:14 +08:00   ❤️ 1
    第一行:root(0,6)
    第二行:root=xxx 写对路径
    yinznet
        4
    yinznet  
    OP
       2013-07-20 21:48:33 +08:00
    这个好像只能临时改动进入linux,怎么永久改动?
    ilikit
        5
    ilikit  
       2013-07-20 22:33:18 +08:00   ❤️ 1
    @yinznet 进系统后去修改/boot/grub/menu.lst
    yinznet
        6
    yinznet  
    OP
       2013-07-21 00:47:48 +08:00
    已经ok了,谢谢大家!
    ted05
        7
    ted05  
       2013-07-21 09:05:16 +08:00
    @ilikit 貌似现在都用/boot/grub/grub.cfg了。
    ilikit
        8
    ilikit  
       2013-07-21 09:53:07 +08:00
    @ted05 不好意思,已经有好久没有用过Centos,可能新的版本里是这个文件吧。
    进到/boot/grub 里看看有哪个就改哪个就行了。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2097 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 01:45 · PVG 09:45 · LAX 18:45 · JFK 21:45
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.