2015年6月2日 星期二

GRUB 問題 出現 "Minimal BASH-like line editing...", grub>

step 1. boot live CD

step 2. find where is your hard disk for filesystem
   sudo fdisk -l
step 3. mount harddisk
   sudo mount /dev/sdxx /mnt   ( sdaxx depend on where is your hard disk)
   sudo mount --bind /dev /mnt/dev
   sudo mount --bind /sys /mnt/sys
   sudo mount --bind /proc /mnt/proc

step 4. change to target filesystem
   sudo chroot  /mnt

step 5. reinstall grub
   grub-install  /dev/sdx
   update-grub

step 6. leave chroot
   exit

step 7. umount 
   sudo umount /mnt/proc
   sudo umount /mnt/dev
   sudo umount /mnt/sys
   sudo umount /mnt

step 8. reboot system

追蹤者