Page 4 of 5 FirstFirst ... 2345 LastLast
Results 31 to 40 of 41

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

  1. #31
    pxwpxw's Avatar
    pxwpxw is offline Chocolate Ubuntu Mocha Blend
    Join Date
    Apr 2006
    Beans
    Hidden!
    Distro
    Ubuntu 9.04 Jaunty Jackalope

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

    Quote Originally Posted by cyberdork33 View Post
    I think do it just using Macosx terminal, that way its easier to make and retrieve a usb MBR, you could say don't do it unless you have macosx, and emphasize that it needs refit to regen the MBR after the fakembr. Live CD would need more explaining about mounting usb or the hd root system, seems to be getting too hard.

    I can pm you with an outline if you like, or put it here (tomorrow).

  2. #32
    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 pxwpxw View Post
    I think do it just using Macosx terminal, that way its easier to make and retrieve a usb MBR, you could say don't do it unless you have macosx, and emphasize that it needs refit to regen the MBR after the fakembr. Live CD would need more explaining about mounting usb or the hd root system, seems to be getting too hard.

    I can pm you with an outline if you like, or put it here (tomorrow).
    I choose to do it from the Linux commandline for two major reasons:
    1. This is a Linux forum, and I like to emphasize using Linux to accomplish the task. (and yes I know that dd is a UNIX tool).
    2. As far as I can tell, Linux happily writes over the MBR with dd even with mounted partitions on the disk unlike OSX sometimes.


    I think I will just show how to install refit in Ubuntu and sync immediately instead of relying n the reboot too.

  3. #33
    pxwpxw's Avatar
    pxwpxw is offline Chocolate Ubuntu Mocha Blend
    Join Date
    Apr 2006
    Beans
    Hidden!
    Distro
    Ubuntu 9.04 Jaunty Jackalope

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

    Quote Originally Posted by cyberdork33 View Post
    I choose to do it from the Linux commandline for two major reasons:
    1. This is a Linux forum, and I like to emphasize using Linux to accomplish the task. (and yes I know that dd is a UNIX tool).
    Yes, agreed
    2. As far as I can tell, Linux happily writes over the MBR with dd even with mounted partitions on the disk unlike OSX sometimes.
    Yes, I forgot macosx has problems that way.
    I think I will just show how to install refit in Ubuntu and sync immediately instead of relying n the reboot too.
    I think yes, fairly safe to assume the fakembr will work.

  4. #34
    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 pxwpxw View Post
    I think yes, fairly safe to assume the fakembr will work.
    Ok, I mention both as a way to sync partitions now.

  5. #35
    pxwpxw's Avatar
    pxwpxw is offline Chocolate Ubuntu Mocha Blend
    Join Date
    Apr 2006
    Beans
    Hidden!
    Distro
    Ubuntu 9.04 Jaunty Jackalope

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

    I just looked at the #1 post again.

    It seems to have drifted away from the main stated purpose - to remove the duplicate tux by deleting the grub bootcode in the first 446 bytes of the MBR.
    I think this probably is why most people use it.

    As in the previous version, this only requires -

    from Ubuntu live cd
    Code:
    $ sudo dd if=/dev/zero of=/dev/sda bs=446 count=1
    $ sudo apt-get install refit
    $ sudo gptsync /dev/sda
    gptsync will report 'no need to sync' if all was well before the operation, because the partition table is untouched.

    The backup mbr is always desirable.

    The fake mbr was for a a separate issue of accidental damage to mbr, entirely unnecssary for removing tux which is the topic of the thread, unless something goes wrong.

  6. #36
    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 pxwpxw View Post
    I just looked at the #1 post again.

    It seems to have drifted away from the main stated purpose - to remove the duplicate tux by deleting the grub bootcode in the first 446 bytes of the MBR.
    I think this probably is why most people use it.
    Well, I did make it more generic than that on purpose (see the thread title).

    Quote Originally Posted by pxwpxw View Post
    As in the previous version, this only requires -

    from Ubuntu live cd
    Code:
    $ sudo dd if=/dev/zero of=/dev/sda bs=446 count=1
    $ sudo apt-get install refit
    $ sudo gptsync /dev/sda
    gptsync will report 'no need to sync' if all was well before the operation, because the partition table is untouched.
    Understood, but I think that one had the same problem as doing the whole MBR (it removed that MBR header or whatever it is that allows the disk to be bootable... Maybe a dummy mbr that is only 446 bytes long?

    Quote Originally Posted by pxwpxw View Post
    The fake mbr was for a a separate issue of accidental damage to mbr, entirely unnecssary for removing tux which is the topic of the thread, unless something goes wrong.
    Yes, I think the issue was that people following this (as well as the grub install issue that seems to cause it sometimes) were the ones with the damaged MBR.

    Maybe another thread is in order.

  7. #37
    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
    You'll still have to sync the partition tables with rEFIt and possibly reinstall grub.
    Probably reinstall. I updated MBR, no go. I´ll probably drop Ubuntu, got quite friendly with OSX..
    Haakon

  8. #38
    Join Date
    Dec 2007
    Beans
    2

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

    Cyberdork, Want to personally thank you on this one. You are DA' MAN!!! I have your home page book marked btw.

    I dorked my primary disk MBR up and ended up with a phantom Windows boot option... took me a while to realise that GPT/MBR kind of live together on an intel mac... I used dd and it cleaned the MBR. THANK YOU!

  9. #39
    Join Date
    Feb 2008
    Beans
    4

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

    downright silly...

    could someone please post the original MBR-content of an MacBookAir 3,2?

    thanks

  10. #40
    Join Date
    Jan 2009
    Beans
    26

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

    This absolutely worked for me, better than any instructions to try and fix my gpt/mbr when I solely had Mac OS on here, so thanks!

    The only thing I found was that, instead of

    Code:
    sudo gptsync
    I actually needed to type

    Code:
    sudo gptsync /dev/sda
    However this was using the Oneiric Beta so maybe there's been some changes with the program or something.

    Many thanks!

Page 4 of 5 FirstFirst ... 2345 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
  •