Find the answer to your Linux question:
Results 1 to 4 of 4
Hello Since CloneZilla doesn't include the MBR when saving a partition into a file, I need to take care of this myself. With a working XP in /sda1, I'd like ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Nov 2007
    Posts
    127

    Question [SOLVED] Installing Grub from scratch to boot Windows?


    Hello

    Since CloneZilla doesn't include the MBR when saving a partition into a file, I need to take care of this myself.

    With a working XP in /sda1, I'd like to...
    1. Boot with a Linux live CD
    2. replace the Windows MBR with Grub, ie. without any Linux already installed
    3. save Grub's configuration files into /sda2 (which is ext2fs-formatted)
    4. add XP to Grub

    Has someone done this and could explain what the steps are?

    Thank you.

  2. #2
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    I'm not sure how easily this task would be to achieve, but wouldn't the Windows bootloader be better suited to boot Windows if you are not going to be dual booting?
    oz

  3. #3
    Linux Newbie
    Join Date
    Nov 2007
    Posts
    127
    Yes, but I also need to test Linux sometimes, so I'd like to find an easy and OS-agnostic way to boot the PC after restoring a CloneZilla image.

    I guess Grub is a better option than the Windows boot loader.

  4. #4
    Linux Newbie
    Join Date
    Nov 2007
    Posts
    127
    For those interested in doing the same thing:

    1. Boot with a live CD
    2. Mount /sda2 where the partition images are located
    3. Copy the CD's /boot/grub/ into /sda2
    4. Edit /sda2/boot/grub/menu.lst to include this section to boot Windows:
    Code:
    title Windows
    rootnoverify (hd0,0)
    makeactive
    chainloader +1
    5. Run "grub", and type the following commands:
    Code:
    grub
    root (hd0,1)
    setup (hd0)
    Reboot.

Posting Permissions

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