The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Complete ubuntu removal

    Discussion in 'Linux Compatibility and Software' started by orion95, Jun 24, 2007.

  1. orion95

    orion95 Notebook Consultant

    Reputations:
    11
    Messages:
    105
    Likes Received:
    0
    Trophy Points:
    30
    I had installed ubuntu 6.06 and then decided to uninstall it and restore vista since I couldn't setup the system to dual boot with vista and ubuntu and ubuntu wiped off vista such that only ubuntu showed up on the startup. Now I wanted to remove ubuntu so using the live cd I removed all the partitions and reset the partitions to NTFS and using the recovery disk installed vista again, but even now during startup it doesn't load vista but instead shows some "grub loader 1.5, error 22!" Please help on getting vista back!!!
     
  2. lemur

    lemur Emperor of Lemurs

    Reputations:
    524
    Messages:
    1,024
    Likes Received:
    0
    Trophy Points:
    55
    You probably need to use fixmbr to fix this. Do a search for "fixmbr" in the forums, you'll find there more information than I can give you off the top of my head.
     
  3. lemur

    lemur Emperor of Lemurs

    Reputations:
    524
    Messages:
    1,024
    Likes Received:
    0
    Trophy Points:
    55
    By the way, Ubuntu will not remove Vista unless you ask it to remove it.
     
  4. Paul

    Paul Mom! Hot Pockets! NBR Reviewer

    Reputations:
    759
    Messages:
    2,637
    Likes Received:
    0
    Trophy Points:
    55
    Agreed.

    Anyway, to fix your situation, you will need to boot from a Windows installation disk (I'm not sure if your recovery CDs will work for this). Then you'll have to go to the recovery console, and as lemur stated, issue a "fixmbr" command.
     
  5. Allen614

    Allen614 Newbie

    Reputations:
    0
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    5
    Get a CD copy of Helix or Knoppix and run it. In a root terminal run

    "dd if=/dev/hda of=/dev/zero bs=512 count=1" (Without the quotes.)

    The /dev/hda will be /dev/sda if you have a SATA harddrive.
     
  6. jeffsmythe

    jeffsmythe Notebook Geek

    Reputations:
    97
    Messages:
    98
    Likes Received:
    0
    Trophy Points:
    15

    Ummm, could you explain what this is meant to accomplsh?

    The command as written will write the MBR (the first 512 bytes) of the HHD to /dev/zero, which in effect does nothing.

    On the other hand, if you swap if= and of=, then you are overwriting your MBR with '\0' character AND the partition table, which may be what you're after, but it still doesn't fix the problem as far as I can see.

    If you did
    # dd if=/dev/zero of=/dev/hda bs=446 count=1
    then you would wipe only the MBR, which would then need to be restored somehow.

    Care to enlighten me on this one?
     
  7. lemur

    lemur Emperor of Lemurs

    Reputations:
    524
    Messages:
    1,024
    Likes Received:
    0
    Trophy Points:
    55
    Good catch, jeff.... when I saw that post I thought "WTF?" but I did not read it closely enough to note the utter nonsense of the command.
     
  8. Bog

    Bog Losing it...

    Reputations:
    4,018
    Messages:
    6,046
    Likes Received:
    7
    Trophy Points:
    206
    Using the Vista CD, you should be able to start up the Recovery console; choose your Windows directory (an option for multiple Windows operating systems on the same system) and in the command line type "fixmbr". It will rewrite the master boot record for you. Typing exit will restart the computer.