将 grub 灌入分区
Aug 17, 2016
之前某人把整个硬盘格式化成了 ext4,也是很厉害呢.那么怎么装 grub 咧?
chattr -i /boot/grub/i386-pc/core.img
grub-install --target=i386-pc --force /dev/sda
chattr +i /boot/grub/i386-pc/core.img
这样就不会抛出 error: will not proceed with blocklists
错误了.
虽然并不推荐这么来就是了.
然后生成 grub.cfg
grub-mkconfig -o /boot/grub/grub.cfg
重启,祈祷可以启动吧.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.