2015-07-10 12:57:37賽爾.費雪

Ubuntu筆記 - 開機選單消失

Way 1
Code:
# Mount root partition:
sudo mount /dev/sdXY /mnt # /dev/sdXY is your root partition, e.g. /dev/sda1

# If you have a separate boot partition you'll need to mount it also:
sudo mount /dev/sdYY /mnt/boot

# Mount your virtual filesystems:
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done

# Chroot
sudo chroot /mnt
NOW you can do grub-install and update-grub and whatnot and it'll operate on your installed system rather than the LiveCD.


ref: http://ubuntuforums.org/showthread.php?t=2036730

Way 2

To add boot-repair to the repository

sudo add-apt-repository ppa:yannubuntu/boot-repair

To Update your repository

sudo apt-get update

To install boot-repair

sudo apt-get install -y boot-repair

Once Installation complete run boot-repair on terminal by typing the following command or select it by System->Aministration->Boot Repair.

boot-repair

NOTE: Update the Boot Repair if its newer version is available.



ref: http://www.howopensource.com/2012/05/reinstall-recover-grub-from-ubuntu-12-04-live-cd-usb/

上一篇:Ubuntu筆記 - Wine