update grub from live-cd

三不五時會用到 不過就是會忘記阿!

mount /dev/sda1 /mnt
cd /mnt/arch # or where you are preparing the chroot dir
mount -t proc proc proc/
mount -t sysfs sys sys/
mount -o bind /dev dev/
sudo chroot /mnt
sudo update-grub

資料來源 http://askubuntu.com/questions/145241/how-do-i-run-update-grub-from-a-livecd

Comments