怎样将Grub安装到某个分区而不是整块磁盘上?
Tofloor
poster avatar
chenzhiwei
deepin
2018-10-10 02:07
Author
本帖最后由 chenzhiwei 于 2018-10-10 23:02 编辑

昨天安装大杯具了,在 Deepin 安装时没有看到安装 Grub 位置的选项,
然后就把我的机器的bootloader给弄坏了,折腾了好久才把东西给还原了。

谁给我说说怎样在安装Deepin的时候选择将Grub2安装到Deepin系统所在的分区?

补充一张图片,里面没有自定义bootloader的地方,我测试了15.6和15.7两个版本,都不行。



更新:问题算是解决了,我是按照默认方式安装,然后进入系统再执行 sudo grub-install /dev/sdaX 的。
Reply Favorite View the author
All Replies
avatar
chenzhiwei
deepin
2018-10-10 03:12
#1
https://bbs.deepin.org/user/101846   15.7 不提供自定义bootloader安装位置了吗?
Reply View the author
avatar
zwq133
deepin
2018-10-10 03:16
#2
分一个boot分区 或者和windows共享efi分区
Reply View the author
avatar
chenzhiwei
deepin
2018-10-10 03:31
#3
https://bbs.deepin.org/user/33342 不想分那么多分区,将/安装到/dev/sdaX上就可以了,然后bootloader也安装到这个上面。如果实在没办法我就安装15.6,然后升级到15.7了。
Reply View the author
avatar
chenzhiwei
deepin
2018-10-10 03:44
#4
如果不支持手动选择bootloader安装位置的话,那么这个文档需要修改一下了:https://github.com/linuxdeepin/deepin-installer-reborn/blob/maintain/co/15.7/docs/partition.md#%E9%AB%98%E7%BA%A7%E5%88%86%E5%8C%BA
Reply View the author
avatar
chenzhiwei
deepin
2018-10-10 20:27
#5
@haruyukilxz 抱歉打扰了,我看到这个项目基本就你在提交改动,能给说说是我哪个地方弄错了吗?或者有没有其他办法来指定bootloader的分区呢?
Reply View the author
avatar
chenzhiwei
deepin
2018-10-10 23:18
#6
@aida  能回答一下这个问题吗?现在到底还能不能自定义bootloader的安装位置了?
Reply View the author
avatar
aida
deepin
2018-10-10 23:52
#7
https://bbs.deepin.org/post/158622  这个帖子能不能帮到你?
Reply View the author
avatar
dance707
deepin
2018-10-11 00:22
#8
Advanced mode


Reply View the author
avatar
chenzhiwei
deepin
2018-10-11 00:25
#9
比较奇怪了,我的安装为何不显示呢?能给说说原因吗?
Reply View the author
avatar
wtz
deepin
2018-10-11 00:28
#10
BIOS引导模式下,Grub没法装到分区,只能装到磁盘上。
至少Ext4和NTFS不支持。
Reply View the author
avatar
chenzhiwei
deepin
2018-10-11 00:33
#11
能给说一下怎样才能安装到分区吗?我的 Ubuntu 用的就是 ext4 ,是可以安装到分区。

我甚至可以不安装 grub,因为我已经有 refind 和 Uubntu 的 Grub了,有办法不安装Grub吗?我看你们文档里有写可以配置一下不安装 Grub的,不确定文档里指的是生成ISO镜像时的配置还是安装时哪个地方可以配置。

> DI_BOOTLOADER, 引导器位置, 可以为空. 如果为空, 就不会安装grub. 如果是 EFI 引导模式, 这个选项的值应该是 EFI 分区的路径
Reply View the author
avatar
aida
deepin
2018-10-11 00:47
#12
https://bbs.deepin.org/post/169643
比较奇怪了,我的安装为何不显示呢?能给说说原因吗?

正常情况下,安装模式有高级安装模式呀,你下的是15.7版本的ISO吗?
Reply View the author
avatar
chenzhiwei
deepin
2018-10-11 00:57
#13
15.7和15.6都试了,在高级模式下都没有自定义bootloader位置的选项。
Reply View the author
avatar
chenzhiwei
deepin
2018-10-11 01:06
#14
看到代码里有这几行,为何 EFI 模式下不显示呢?按钮本身就很隐蔽,基本很少有人会改动。

  1. 186   // Show bootloader button only if EFI mode is off.
  2. 187   if (!delegate_->isMBRPreferred()) {
  3. 188     bootloader_tip_button_->hide();
  4. 189     bootloader_button_->hide();
  5. 190   } else {
  6. 191     bottom_layout->addWidget(bootloader_tip_button_);
  7. 192     bottom_layout->addWidget(bootloader_button_);
  8. 193   }
Copy the Code


@aida 小哥哥能否问一下你们的程序员老师,看看有没有什么办法可以选择安装位置,或者修改ISO本身也可以,只要告诉我方法。

多谢!
Reply View the author