Distributions
› Ubuntu
› Fedora
› CentOS
中文资源站
› 网易开源镜像站
sensui7
V2EX  ›  Linux

请教 双系统引导的问题

  •  
  •   sensui7 · Jun 29, 2016 · 4818 views
    This topic created in 3784 days ago, the information mentioned may be changed or developed.
    考虑啦一下, 我还是安装的双系统, 现在的问题是, 开机先进 bcd , 选择 linux 之后, 又进入啦 grub , 在选择才能进系统,

    如何把 grub 转移到 mbr , 直接用 grub 引导所有系统呢
    Supplement 1  ·  Jun 29, 2016

    按照5楼给出的指南,so easy

    1. 用live cd启动系统
    2. 打开终端
    3. mkdir /x   (建立一个文件夹
    4. mount /dev/sda3 /x  (挂在linux系统分区到x目录,自己调整
    5. grub-install --root-directory=/x   /dev/sda  (注意是硬盘, 不是分区
    

    然后还看到啦这句话:

    ... You could read the grub manpage all day and not learn anything about this distinction.

    Supplement 2  ·  Jun 29, 2016
    挂载到 /x 是 grub 所在目录, 由于我只分了两个区, 所以。。。
    那个 --root-directory 是告诉 grub 去哪里找 grub 目录, ubuntu 系统它找的是
    /x/boot/grub

    所以如果 boot 单独分出来了, 可能要挂载 boot 所在分区, 我猜的
    11 replies  •  2016-06-29 23:01:24 +08:00
    jarlyyn
    jarlyyn
    Jun 29, 2016
    1
    安装的时候不是可以选么?

    不同的发行盘也可以再安装一下的吧
    Neveroldmilk
    Neveroldmilk
    Jun 29, 2016
    2
    你没有吧 grub 安装到 mbr 吧?
    dltsgl
    dltsgl
    Jun 29, 2016
    3
    大概率是 grub 装错位置了
    imcxy
    imcxy
    Jun 29, 2016
    4
    考虑啦一下,从安装到放弃。
    gotounix
    gotounix
    Jun 29, 2016❤️1
    5
    装系统装到 Grub 的时候,会提示是把 Grub 安装到硬盘还是 MBR 。
    你也可以重装 Grub 到 MBR 。
    https://www.av8n.com/computer/htm/grub-reinstall.htm
    x1155665
    x1155665
    Jun 29, 2016
    6
    以前用 boot-repair 解决过,不过是 unbuntu 的
    sensui7
    sensui7
    OP
    Jun 29, 2016
    7
    @gotounix 感谢, 很详细

    这个输入法的 L 总是把啦排在第一个, 整个人都变得不好啦。
    Amayadream
    Amayadream
    Jun 29, 2016❤️1
    8
    linux 从安装到放弃.
    sablib
    sablib
    Jun 29, 2016
    9
    os-prober
    grub-mkconfig
    programgou
    programgou
    Jun 29, 2016❤️1
    10
    grub 要先找到 boot ,把 boot 引导起来,然后把权利交个 boot , boot 找到系统分区和其他分区(/etc/fstab),最后把系统引导起来。 [如果 boot 单独分出来了, 可能要挂载 boot 所在分区] ,你是对的。
    jsteward
    jsteward
    Jun 29, 2016
    11
    直接把 grub 装在 sda 上就好了,会覆盖掉 WBM 的。希望双系统可以用 os-prober 或者自己写个 chainloader 的启动项。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1448 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 11:29 · PVG 19:29 · LAX 03:29 · JFK 06:29
    ♥ Do have faith in what you're doing.