how to recreate boot partition in ubuntu Print

  • 0

If you have a working system, you can just skip part 1 to 5.

  1. Boot up a Ubuntu live-cd macthing the version you are using.

  2. Mount your normal system partition. X is the drive letter. Y is the partition number:
    sudo mount /dev/sdXY /mnt

  3. Only if you have a separate boot partition (where sdYY is the /boot partition designation):
    sudo mount /dev/sdYY /mnt/boot

  4. Mount the critical virtual filesystems.
    for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done

  5. Chroot into your normal system device:
    sudo chroot /mnt

  6. Reinstall GRUB 2 (substitute the correct device with sda, sdb, etc. Do not specify a partition number):
    grub-install --recheck /dev/sdX

  7. Install ubuntu kernel (Internet is required)
    apt-get install --reinstall linux-image-$(uname -r)

  8. Recreate the GRUB 2 menu file (grub.cfg)
    update-grub

  9. Exit chroot:
    CTRL-D on keyboard
    sudo reboot


Was this answer helpful?

« Back