Fix grub “no such partition” error in Ubuntu 12.04

This simple tutorial will show you how to fix grub error “Error: No such partition” after re-install Ubuntu 12.04.

1.Boot from you Ubuntu Live CD ,select Try Ubuntu

2.Open a terminal by pressing CTL+ALT+t

3.Run below command to re-install your grub.

sudo mount /dev/sda1 /mnt
sudo grub-install --root-directory=/mnt/ /dev/sda
sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo mount --bind /run /mnt/run
sudo chroot /mnt update-grub
sudo reboot

Note:

  • If your /boot /var /usr are on separate partitions ,also mount them with option –bind before update-grub
  • Replace sda1/sda with your sdXY/sdX (you can run “sudo fdisk -l” to list your partition information)

4.Done,you should fix your grub now.

2 thoughts on “Fix grub “no such partition” error in Ubuntu 12.04

Leave a Reply

Your email address will not be published. Required fields are marked *