Page 3 of 26 FirstFirst 1234513 ... LastLast
Results 21 to 30 of 255

Thread: HOWTO: Restore GRUB (if your MBR is messed up)

  1. #21
    Join Date
    Sep 2005
    Beans
    239

    Re: HOWTO: Restore GRUB (if your MBR is messed up)

    how do u mount your appropriate partitions if u can't get past the manual partition screen?(install cd) u just press enter and it doesnt go away.

  2. #22
    Join Date
    Oct 2004
    Location
    37.8N 97.2W
    Beans
    2,191
    Distro
    Dapper Drake Testing/

    Re: HOWTO: Restore GRUB (if your MBR is messed up)

    Quote Originally Posted by rj686
    how do u mount your appropriate partitions if u can't get past the manual partition screen?(install cd) u just press enter and it doesnt go away.
    You set the mount points by highlighting partitions in the selection list.
    Press the enter key and then edit the mount point.

    Do this for each partition.
    Then select "Finish partitioning...."

    It will ask for confirmation.
    Everybody can be great because everybody can serve.
    You only need a heart of grace. A soul generated by love.

    - Martin Luther King, Jr.

    Help A Child Today

  3. #23
    Join Date
    Jul 2005
    Beans
    70

    Re: HOWTO: Restore GRUB (if your MBR is messed up)

    Aaargh!! Thank you guys!! Very very very much!! You saved my virtual life!

    I lost my Grub / MBR and YOU restored it!

    After searching too much time on the web, I fell on this topic. I read it completely and applied a mix of your solutions.

    Here's the steps I followed to restore GRUB / my initial MBR:

    1. Boot with any live CD (I've done it with Ubuntu Live DVD)
    2. Get a root shell -> Applications / System Tools / Root Terminal
    3. Make a folder -> mkdir /mnt/ubuntu
    4. Check the Ubuntu partition -> fdisk -l (Mine is /dev/hda4)
    5. Mount the root partition of Ubuntu -> mount -t ext3 /dev/hda4 /mnt/ubuntu (replace /dev/hda4 by your Ubuntu partition determined at the step 4)
    6. Chroot the mounted partition -> chroot /mnt/ubuntu
    7. Restore Grub / the initial MBR -> grub-install /dev/hda
    8. Exit the shell
    9. Reboot

    That did the trick for me.

    Thank you very much again to all of you! ( :bigsmack: )
    Last edited by ghostintheshell; September 23rd, 2005 at 03:16 AM.
    -- sorry for my crappy english

  4. #24
    Join Date
    Sep 2005
    Beans
    73

    Re: HOWTO: Restore GRUB (if your MBR is messed up)

    When i give fdisk -l nothing hapens
    When i give grub-install /dev/sda it says that there is not exista such partition


    And the other method
    1 boot with live cd
    2 give grub ok
    3 root (hd0,3) and partition not found

    what to do ?

  5. #25
    Join Date
    Jun 2005
    Location
    UE
    Beans
    5

    Arrow Re: HOWTO: Restore GRUB (if your MBR is messed up)

    UP,

    Anybody correct me if I'm wrong,
    SATA hard drive where to install grub (MBR) might be (sd0) right ?

  6. #26
    Join Date
    Oct 2005
    Beans
    2
    Distro
    Gutsy Gibbon Testing

    Re: HOWTO: Restore GRUB (if your MBR is messed up)

    Well...I run 2 SATA drives with Winblows on one and Ubuntu as my primary drive. I believe your SATA drive would be referred to by GRUB as /dev/sda for primary and /dev/sdb for slave. If you want the primary partition on your primary SATA drive then it would be /dev/sda1. The (hd0,0) naming convention still holds true as well but I digress.

  7. #27
    Join Date
    May 2005
    Location
    St.Catharines, Ontario
    Beans
    351
    Distro
    Ubuntu Development Release

    Re: HOWTO: Restore GRUB (if your MBR is messed up)

    I was having problems with my Wife's computer, which is the exact same setup as mine.

    Both are an Asus Motherboard but hers is newer.

    The problem she was experiencing was the Grub would lock for about 1 minute at stage 1.5.

    I did what the dude said in the first post and tried the Install CD.

    When I got to partitioning I changed Primary #1 (Breezy is on primary #2 but I don't think that matters).
    Primary #1 was mounted as /media/hda1 so I changed it to /
    Then I continued and then tried to reisntall grub.
    The computer locked up.

    I rebooted it and this is WEIRD. It no longer gets stuck in GRUB Stage 1.5.

    HAPPY HAPPY !!!!
    But at the same time

    None of the grub reinstalled. It was stuck at 0%.

    I don't care about reasons. It works. That is all that matters.


  8. #28

    Re: HOWTO: Restore GRUB (if your MBR is messed up)

    this thread is great and i am hoping it will help me when i get home...but i just gonna post what i have done to my PC here as i am a noob and really done something great

    OK, i have Windows XP x64 on the SATA 1 (200Gb) and after using Ubuntu 5.04 at work i decided to try 5.10 at home...

    so i purchased a cheap 80gb SATA and put it in as SATA 2...so far so good...

    I installed 64 bit version of 5.10 on to the sata 2 (sdb) drive and all went on ok, grub then wanted to install mbr to hd0,0 and i let it...

    once i rebooted i got no selection or grub, windows just booted up...

    so i then tried the install again and this time at the grub stage i specified to install the mbr at /dev/sda and then rebooted...this time my screen just scrolled throuhg saying grub grub grub grub (you get the idea)

    so i got the ultimate boot cd off the net and used something named cag or gag...that worked for booting the windows drive but not linux

    so is there any way i can sort grub out?

    i dont mind reinstalling the ubuntu system as i have not even got it to boot yet, so i still need to do the finishing install on that...

    any help will be much appreciated...

  9. #29

    Re: HOWTO: Restore GRUB (if your MBR is messed up)

    ok thought i would update this but i am still having problems if anyone would care to help me out

    i also have 2 IDE drives on a PCI ide card in removable drive bays...if i take those out and install ubunut, grub works fine but once i put those back on grub reports

    error 17

    any help?

  10. #30
    Join Date
    Nov 2005
    Beans
    37

    Re: HOWTO: Restore GRUB (if your MBR is messed up)

    After being struck by Ubuntu Breezy Install CD GRUB Error 21 this newbie will proceed more warily. Had to rebuild Windows XP from scratch on HP notebook with factory recovery disks that only took me two weary days incl. all the downloading of three years' computing on this machine. But hey, I'm not ready to give up!

    Well now I've clobbered GRUB and MBR on Windows C: drive the original Ubuntu Breezy root and swap partitions I set up on external Firewire Seagate hard drive by Guided Partitioning are probably all that's left intact.

    These two Linux partitions were formatted on external SCSI1 (sda) drive by Breezy install partitioner as:
    #1 of SCSI1 (0,0,0) (sda) ext3 - I understand this is root, so sda0
    #9 of SCSI1 (0,0,0) (sda) swap - logical drive in extended partition, so sda9

    Does this mean I can now boot with Ubuntu 5.10 LiveCD and follow the steps below, merely substituting my root partition of Ubuntu as /dev/sda0 in Step 5 (this is the active, primary partition on the external Seagate), and I'll then be back to a dual boot that works for Windows and Breezy off C (hda)? Or not?

    Or does someone know a Breezy cheatcode like Knoppix 4.0.2's LiveCD lets you type at first boot prompt
    knoppix offhd=/dev/sdaX if you've dumped Knoppix LiveCD earlier on drive X?

    Thanks to ghostintheshell for this post, the closest I found - I think - to what I'm seeking.

    Quote Originally Posted by ghostintheshell
    Aaargh!! Thank you guys!! Very very very much!! You saved my virtual life!

    I lost my Grub / MBR and YOU restored it!

    After searching too much time on the web, I fell on this topic. I read it completely and applied a mix of your solutions.

    Here's the steps I followed to restore GRUB / my initial MBR:

    1. Boot with any live CD (I've done it with Ubuntu Live DVD)
    2. Get a root shell -> Applications / System Tools / Root Terminal
    3. Make a folder -> mkdir /mnt/ubuntu
    4. Check the Ubuntu partition -> fdisk -l (Mine is /dev/hda4)
    5. Mount the root partition of Ubuntu -> mount -t ext3 /dev/hda4 /mnt/ubuntu (replace /dev/hda4 by your Ubuntu partition determined at the step 4)
    6. Chroot the mounted partition -> chroot /mnt/ubuntu
    7. Restore Grub / the initial MBR -> grub-install /dev/hda
    8. Exit the shell
    9. Reboot

    That did the trick for me.

    Thank you very much again to all of you! ( :bigsmack: )

Page 3 of 26 FirstFirst 1234513 ... LastLast

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
  •