Results 1 to 1 of 1

Thread: Grub rescue - not booting after a partition deletion

  1. #1
    Join Date
    Nov 2008
    Beans
    3

    Grub rescue - not booting after a partition deletion

    Hi all,
    this is a problem that happened to me after deleting a partition. Hoping to help someone with the same issue.

    * * * Scenario (various linux logical partitons):

    Ubuntu 12.04 on /dev/sda12.
    Fedora on /dev/sda10.
    kubuntu 12.04 on /dev/sda9.
    Swap on /dev/sda5
    Others on /dev/sda6..7.
    Extetended partion on /dev/sda4, wich "owns" /dev/sda5..12.
    Primry partitions on /dev/sda1..3

    All linux partitions have grub on partition boot sector (*NOT* in the MBR).

    In the MBR there is a multi-boot manager program to boot from the various installations.


    * * * Problem occurred:

    Deleted partition sda11 (Fedora). After sda11 deletion, old sda12 (Uduntu) becames sda11.
    When grub2 boots Ubuntu shows this error:

    no such partion
    grub rescue>


    * * * Solution:

    Fom Grub rescue prompt:

    Code:
    set                                    # to see "old" stored config
    set prefix=(hd0,msdos11)/boot/grub     # to correct partition to load (msdos11 -> sda11)
    set root=hd0,msdos11                   # to correct partition to load
    insmode normal                         # load "normal"
    normal                                 # start with usual boot screen
    From Ubuntu terminal (after booted normally):

    Code:
    sudo grub-install --force --recheck /dev/sda11          # to reinstall grub on /dev/sda11 boot sector with correct parameters
    sudo update-grub                                        # to update /boot/grub/grub.cfg

    * * * References:

    1. http://www.terabyteunlimited.com/kb/article.php?id=408
    2. http://superuser.com/questions/41987...on-name-change
    3. http://ward.vandewege.net/blog/2011/...scue-commands/



    Cheers.
    Last edited by SuperFabius; November 25th, 2012 at 01:18 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •