Kali Linux GRUB2引导修复
2016-10-27
觉得kali的grub主题看着不舒服,我就总要给grub换个主题,因为GRUB2有这个功能嘛。昨天,更新了电脑,发现我的主题不见了,变成了一个好丑的界面,就在那儿改啊改,发现没有用,一气之下,把GRUB卸载了,连同跟GRUB相关的几个文件夹一起move to trash了,想着重装之后重新生成。可是并没能生成,这下GG了,配置文件又没有备份,配置好的电脑,又不想重装系统,只得想办法咯
话不多说,直奔主题
必要条件:
/etc/default/grub(以下是默认的)
# If you change this file, run 'update-grub' afterwards to update # /boot/grub/grub.cfg. # For full documentation of the options in this file, see: # info -f grub -n 'Simple configuration' GRUB_DEFAULT=0 GRUB_TIMEOUT=5 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT="quiet" GRUB_CMDLINE_LINUX="initrd=/install/initrd.gz" # Uncomment to enable BadRAM filtering, modify to suit your needs # This works with Linux (no patch required) and with any kernel tha