Results 1 to 6 of 6

Thread: [SOLVED] Help, GRUB reinstall, Partition help needed

  1. #1
    Join Date
    Oct 2008
    Beans
    10

    Exclamation [SOLVED] Help, GRUB reinstall, Partition help needed

    I have a pc with a dual boot config, First I had Vista then I installed Ubuntu 8.10 everything was fine until I deleted an extra partition. I restarted only to find that Grub was corrupted..... Anyway I found this site: http://www.techrecipes.net/linux/rec...-grub-mbr.html

    On there it tells me what to do exactly, but I have a problem, the instructions talk as if the user has 1 partition, I have 6;

    /dev/sda1
    /dev/sda2
    /dev/sda3
    /dev/sda5
    /dev/sda6 - ubuntu installation
    /dev/sda7

    I did what it said and mounted 'sda6'. Everything was fine until it said:

    ''Assuming Linux is installed in the first partition of the first harddisk, run the following actions would restore the MBR. If the the installation is done at some other partition or harddisk, change the (hd0,0) and (hd0) accordingly.''

    Now I don't know what my sda6 is and I don't want to guess. So here I am running off the live CD, can anyone help me with the info that I've provided?

    Help would be appreciated!!

    Thanks

  2. #2
    Join Date
    Mar 2008
    Beans
    4,714
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Help, GRUB reinstall, Partition help needed

    To reinstall GRUB, try Catlett's instructions:
    http://ubuntuforums.org/showpost.php...95&postcount=1

    This might also help:
    Code:
    Linux device name           GRUB name
    /dev/sda     		    (hd0)
    /dev/sda1                   (hd0,0)
    /dev/sda2		    (hd0,1)
    ...
    /dev/sda6		    (hd0,5)
    
    /dev/sdb		    (hd1)
    /dev/sdb1		    (hd1,0)

  3. #3
    Join Date
    Mar 2008
    Location
    California, USA
    Beans
    8,111

    Re: Help, GRUB reinstall, Partition help needed

    How about doing the following from your Live CD:
    Code:
    sudo grub
    grub> root (hd0,5)
    grub> setup (hd0)
    grub> quit
    Please post the output of the above commands, reboot, and let me know what happens.

  4. #4
    Join Date
    Nov 2007
    Beans
    395
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Help, GRUB reinstall, Partition help needed

    Posting the out put of
    Code:
    sudo fdisk -l
    will help determine the correct values for (hd0,0) and (hd0).

    You listed partitions 1,2 ,3, 5, 6, & 7. I assume you deleted 4, BUT did you empty the partition and leave it blank? or did you resize #3 or #5 to take up the space? These answers will affect the partition order and numbering.
    -- Coreigh

    "Only those who attempt the absurd will achieve the impossible"
    ... Einstein or Escher, you pick ...

  5. #5
    Join Date
    Oct 2008
    Beans
    10

    Re: Help, GRUB reinstall, Partition help needed

    Thanks to all, It worked (Well it says sucessful) So thanks.

    Those other instructions are too advanced (And basically rubish)

    Thanks soo much again.

    I'll post back after reboot!!

    Fingers crossed!!

    Thanks

  6. #6
    Join Date
    Oct 2008
    Beans
    10

    Smile Re: Help, GRUB reinstall, Partition help needed

    It works, Just like it did.

    Phew - All my data is still there

    Thanks for the last time!

Tags for this Thread

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
  •