Find the answer to your Linux question:
Results 1 to 6 of 6
I have dual-boot XP and Karmic. I want to practice restoring the grub, before any emergency occurs I plan to use the following thread: Grub/XP/Vista Bootloader - Ubuntu Forums I ...
  1. #1
    Just Joined!
    Join Date
    Dec 2009
    Location
    Highlands
    Posts
    37

    How to damage or remove the grub? :)

    I have dual-boot XP and Karmic.

    I want to practice restoring the grub, before any emergency occurs

    I plan to use the following thread:
    Grub/XP/Vista Bootloader - Ubuntu Forums

    I would be grateful if someone could tell me an easy way to damage the grub. For example, re-installing XP always damages the grub, but I'm sure there are quicker ways to do the same thing
    .

  2. #2
    Trusted Penguin elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    2,303
    If you are going to try something like this make sure you have a backup of everything you don't want to lose. It's better to have it and not need it than need it and not have it.

    Then boot your Windows XP CD (if you have one) in to recovery console and run the command

    Code:
    fixmbr
    if I remember rightly that will have the same effect on grub as installing XP
    If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)


    My new blog. It's probably not as good as I think it is.

  3. #3
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    There are a lot of ways to damage it.

    * Delete /boot/grub/menu.lst file.
    You won't be able to fix grub using any software. You create new menu.lst file manually.
    * Use SuperGRUB CD to re-install Windows Boot Loader.
    Re-install grub manually using commands through LiveCD of any Linux distro.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  4. #4
    Just Joined!
    Join Date
    Dec 2009
    Location
    Highlands
    Posts
    37
    Quote Originally Posted by devils casper View Post
    Delete /boot/grub/menu.lst file.
    I don't have a menu.lst file

    $ locate menu.lst
    /usr/share/doc/memtest86+/examples/grub-menu.lst
    .

  5. #5
    Trusted Penguin elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    2,303
    Quote Originally Posted by OldGrantonian View Post
    I don't have a menu.lst file

    $ locate menu.lst
    /usr/share/doc/memtest86+/examples/grub-menu.lst
    .
    Karmic uses Grub 2 which is very different to Grub. You will need to make sure that your chosen recovery technique takes that into account
    If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)


    My new blog. It's probably not as good as I think it is.

  6. #6
    Just Joined!
    Join Date
    Dec 2009
    Location
    Highlands
    Posts
    37
    Quote Originally Posted by elija View Post
    Karmic uses Grub 2 which is very different to Grub. You will need to make sure that your chosen recovery technique takes that into account
    The method that I propose to use (unless someone posts an objection) is here:
    Grub/XP/Vista Bootloader - Ubuntu Forums

    This link mentions both grub2 and older.
    .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...