Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 41

Thread: HOW TO: Backup and clear MBR (uninstall GRUB)

  1. #11
    Join Date
    Aug 2005
    Location
    Huntsville, AL, USA
    Beans
    7,526
    Distro
    Ubuntu

    Re: HOW TO: Backup and clear MBR (uninstall GRUB)

    I would guess that holding ALT on bootup is giving you the install in the MBR... One of the tux icons should now.... at least one...

    PS, at the grub menu, you can use the grub console to load Ubuntu... I know this is not a solution, but it might garner more info.

    Code:
    grub> root (hd0,2)
    grub> kernel /boot/vmlinuz-2.6.24-19-generic
    grub> initrd /boot/initrd.img-2.6.24-19-generic
    grub> boot

  2. #12
    Join Date
    Dec 2007
    Location
    Belgum - Antwerp
    Beans
    180
    Distro
    Ubuntu

    Re: HOW TO: Backup and clear MBR (uninstall GRUB)

    Hi guys.

    Cyber. My mac is not doing it good at all. I was tired of all that .. (no any bootable Tux icon). So i tough, ill just reinstall OSX, and everything is going to be ok. But, huh, no. I still get elilo Tux in rEFIt. Now i dont even care aboutbooting linux up yet. But how do i get this elilo off my mac.

    Hopely someone can give some advice.

    HF
    Nikolai
    The truth will set you free!

  3. #13
    Join Date
    Jun 2007
    Location
    SP, Brazil
    Beans
    Hidden!

    Re: HOW TO: Backup and clear MBR (uninstall GRUB)

    I am giving up Hardy just tired to reinstall it.

    Burned an Intrepid iso and will start another ammusement. Who knows if Intel driver gets better and iSight doesn't freeze !

  4. #14
    Join Date
    Aug 2005
    Location
    Huntsville, AL, USA
    Beans
    7,526
    Distro
    Ubuntu

    Re: HOW TO: Backup and clear MBR (uninstall GRUB)

    Quote Originally Posted by Nikolai D. View Post
    Hi guys.

    Cyber. My mac is not doing it good at all. I was tired of all that .. (no any bootable Tux icon). So i tough, ill just reinstall OSX, and everything is going to be ok. But, huh, no. I still get elilo Tux in rEFIt. Now i dont even care aboutbooting linux up yet. But how do i get this elilo off my mac.
    elilo is likely a efi executable that was copied somewhere. Since I do not know much about it, I can't really tell you where to go... How did you install it? maybe you can search for a file ending in .efi to find it?

    Quote Originally Posted by mabovo View Post
    Burned an Intrepid iso and will start another ammusement. Who knows if Intel driver gets better and iSight doesn't freeze !
    You seem to be the only one having a problem with the iSight freezing.

  5. #15
    Join Date
    Jun 2007
    Location
    SP, Brazil
    Beans
    Hidden!

    Re: HOW TO: Backup and clear MBR (uninstall GRUB)

    Quote Originally Posted by cyberdork33 View Post
    elilo is likely a efi executable that was copied

    You seem to be the only one having a problem with the iSight freezing.
    My iSight driver complained about so many kernels updates. Should be better go straight to 2.6.26.

  6. #16
    Join Date
    Dec 2007
    Location
    Belgum - Antwerp
    Beans
    180
    Distro
    Ubuntu

    Re: HOW TO: Backup and clear MBR (uninstall GRUB)

    Hellow World =]

    Cyber, When i was installing Debian GRUB failed as usual. So i tryed elilo. And after that i cant get that unbootable efi tux outta here, also cant get toehr tux to boot. However before just a matual grub install did it. =]

    I started another thread with auestion if OSX stays installable if i delete 200mb fat (efi?) partition.

    Enjoy.
    Nikolai
    The truth will set you free!

  7. #17
    Join Date
    Aug 2005
    Location
    Huntsville, AL, USA
    Beans
    7,526
    Distro
    Ubuntu

    Re: HOW TO: Backup and clear MBR (uninstall GRUB)

    Quote Originally Posted by Nikolai D. View Post
    I started another thread with auestion if OSX stays installable if i delete 200mb fat (efi?) partition.
    I replied there:
    http://ubuntuforums.org/showthread.php?t=879595

  8. #18
    Join Date
    Dec 2007
    Location
    Belgum - Antwerp
    Beans
    180
    Distro
    Ubuntu

    Re: HOW TO: Backup and clear MBR (uninstall GRUB)

    Hi all.

    Cyber, im asking myself whats the difference between those two methodes.

    Here:http://ubuntuforums.org/showthread.php?t=224351
    Ive found explanation on how to reinstall grub via livecd.

    And it's:
    sudo grub
    find /boot/grub/stage1
    (hd0,2) in my case
    root (hd0,2)
    setup (hd0)
    quit
    And it worked for my Ubuntu.

    But you told meonce to do:
    sudo grub
    find /boot/grub/stage1
    (hd0,2) in my case
    root (hd0,2)
    setup (hd0,2) <- see difference here
    quit

    Ok i understand that its pointing exactly to root partition. But how comes the first methode worked for me then. Cuz for me second methode looks more right.
    Why am i asking is because i just 'bootcamped' my hd. And installed Debian agane. But chose to not install grub. So nowi have to install grub manually. And its second methode as i understand, but i keep asking myself how does the other worked for me then.

    Okay.
    Have a nice day.
    Nikolai
    The truth will set you free!

  9. #19
    Join Date
    Aug 2005
    Location
    Huntsville, AL, USA
    Beans
    7,526
    Distro
    Ubuntu

    Re: HOW TO: Backup and clear MBR (uninstall GRUB)

    Quote Originally Posted by Nikolai D. View Post
    Ok i understand that its pointing exactly to root partition. But how comes the first methode worked for me then. Cuz for me second methode looks more right.
    Why am i asking is because i just 'bootcamped' my hd. And installed Debian agane. But chose to not install grub. So nowi have to install grub manually. And its second methode as i understand, but i keep asking myself how does the other worked for me then.
    I am not sure why installing to the root partition was not working for you, but if it works the other way then do it. The only time that installing to the MBR is an issue is when windows gets involved because it's bootloader will take over the MBR.

    The 'root' command tells grub where the grub files are (stage2, menu.lst).
    The 'setup' command actually copies the stage1 bootcode into the header of the partition your specify (hd0,2), or the MBR if you just point to the disk (hd0).

    For some reason refit was not seeing the bootcode you installed to the root partition. Maybe elilo / another install of grub was confusing it.

  10. #20
    Join Date
    Oct 2005
    Beans
    31
    Distro
    Dapper Drake Testing/

    Re: HOW TO: Backup and clear MBR (uninstall GRUB)

    Quote Originally Posted by cyberdork33 View Post
    Try at your own risk.

    If you happen to be one of several people that somehow end up with two different icons in rEFIt that boot GRUB for Ubuntu, then this will show you how to remove one of them.

    Background
    The issue is that the Ubuntu installer by default installs GRUB to the MBR of the Hard Drive. This is OK for most PCs as this will make it easiest to dual-boot with Windows. On Macs, however, We usually use rEFIt or Hold the Option Key at startup to select which partition to boot from, and having GRUB in the MBR means that you have to use both rEFIt and GRUB to get to windows (for a triple-boot), so most guides tend to install GRUB to the Ubuntu partition and that is OK, but with the advent of a installer bug. The MBR becomes corrupted and many users unknowingly reinstall GRUB to the Ubuntu partition after it has already been installed to the MBR, and thus you get two instances of GRUB to boot.

    WARNING: The following commands can easily wipe out your entire hard drive if you are not very careful (make a typo). Please make sure you have everything backed up before proceeding.

    Now, the Good Stuff

    Before you do any of the following, make a backup of the entire MBR:

    Code:
    sudo dd if=/dev/sda of=/home/username/mbr_backup bs=512 count=1
    Now complete the appropriate step below to clear the portion of the MBR you need.

    In order to Clear out the MBR except the partition table (Literally, write zeros over the current MBR contents):
    Code:
    sudo dd if=/dev/zero of=/dev/sda bs=446 count=1
    To clear the complete MBR, including the partition table (On a Mac, the partition table can be recovered by syncing your partition tables with rEFIt):
    Code:
    sudo dd if=/dev/zero of=/dev/sda bs=512 count=1
    If you have issues after clearing a portion of the MBR. These commands show you how to restore it.
    To restore only the Bootsector (not including the partition table):
    Code:
    sudo dd if=/home/username/mbr_backup of=/dev/sda bs=446 count=1
    To restore the entire MBR:
    Code:
    sudo dd if=/home/username/mbr_backup of=/dev/sda bs=512 count=1
    I've ended up with not being able to read /dev/sda after clearing the MBR. I've tried running from Ubuntu LiveCD. Is there a way to restore my MBR, or do I have to reinstall OSX and Ubuntu?
    Haakon

Page 2 of 5 FirstFirst 1234 ... LastLast

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
  •