【方法】解决deepin 2015 官方方法efi安装无grub.cfg
Tofloor
poster avatar
idoz
deepin
2016-01-08 19:28
Author
本帖最后由 idoz 于 2016-1-8 11:32 编辑

1. 问题帖:   https://bbs.deepin.org/post/35682http://bbs.deepin.org/post/35682#


2. 帮助:
来自 @lieri
https://bbs.deepin.org/post/35682

3. 方法:
多系统安装,windows 下 不建议对ext4分区强行写入。于是
Step 0  准备grub.cfg 文件
  1. menuentry 'Deepin GNU/Linux' {
  2.         load_video
  3.         insmod gzio
  4.         if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  5.         insmod part_gpt
  6.         insmod ext2
  7.         set root='hd0,gpt5' 这个可以不正确,因为下边有按照uuid寻找的命令
  8.         if [ x$feature_platform_search_hint = xy ]; then

  9.         else
  10.           search --no-floppy --fs-uuid --set=root 3be7e356-239e-479d-9dbd-37a837bc4749
  11.         fi
  12.         linux        /boot/vmlinuz-4.2.0-1-amd64 root=UUID=3be7e356-239e-479d-9dbd-37a837bc4749 ro  splash silent quiet loglevel=3
  13.         initrd        /boot/initrd.img-4.2.0-1-amd64
  14. }
Copy the Code

Step1: 将用来启动的grub.cfg 放入 efi 分区
Step2: efi启动通过grub.efi 启动,然后使用configfile (hd0,gpt4)/efi/Deepin Linux 15/ grub.efi [这个命令是演示用的,具体操作的时候,使用Tab 可以方便的找到]
Step3:    然后就能够选择启动项,然后就进入了系统。 然后 打开终端(ctrl alt t) ,执行
  1. grub-mkconfig -o /boot/grub/grub.cfg
Copy the Code

参考:http://bbs.archlinuxcn.org/viewtopic.php?id=1037

以上, Step 0 ~ Step2 可以换成另一种方法:就是在grub > 直接写。将,menuentry 里面的东西直接写在grub .这也就意味着,写错一次,要重新写过。 如果cfg文件有小的失误,可以在选项上按e直接修改。
以上,完毕


Reply Favorite View the author
All Replies

No replies yet