在取消 grub 菜单显示的折腾中(目标:不显示 grub 菜单),我执行了:
代码: 全选
sudo grub-mkconfig
怎么破。
UEFI 模式下可能不管用了。ipposis 写了:取消grub菜单应该是这样子的吧?如果我没理解错的话?
把timeout=10设置成timeout=0不就可以了么,瞬间就闪过去了
試試sudo grub-mkconfig
我试了这个:poloshiao 写了:試試
sudo grub-mkconfig -o /boot/grub/grub.cfg
代码: 全选
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
sudo grub-mkconfig -o /boot/grub/grub.cfg
這兩個 grub.cfg 名稱相同 但是 內容完全不同grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
这个问题怎么解决?After migration to Fedora 20 with UEFI (instead of BIOS), making GRUB changes was totally ignored. The problem was with definition of output generated GRUB config file. UEFI system reads settings from new location and that is described in second step.
1. 如果可以登入桌面有没有办法让我的/boot/efi/EFI/fedora/grub.cfg恢复原状?
咋确定?確定 已經掛載 efi system partition 到 /boot/efi
df /boot/efi咋确定?
确定了:df /boot/efi
看看是不是 efi system partition
通常是 /dev/sda1
这是否能说明我执行:*:~$ df /boot/efi
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 98304 21610 76694 22% /boot/efi
*:~$ df /boot
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda5 95990540 32362768 58728600 36% /
代码: 全选
sudo update-grub
sudo update-initramfs -u -k all
就那么几行,但我确实挺憷的,业余哒!/boot/efi/EFI/fedora/grub.cfg
表示 /boot 沒有單獨掛載在一個獨立的分割區df /boot
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda5 95990540 32362768 58728600 36% /
1. 可以修改後貼上來 幫你看看是不是手工编写这个文件