Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

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


    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
    Join Date
    May 2004
    arch linux
    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?

  3. #3
    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. $spacer_open
  5. #4
    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:
    title Windows
    rootnoverify (hd0,0)
    chainloader +1
    5. Run "grub", and type the following commands:
    root (hd0,1)
    setup (hd0)

Posting Permissions

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