Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2004

    Default Adding windows to a linux/windows system

    As above

    I am looking to add XP to my current 2K/linux machine and i want to avoid getting the boot sector overwritten or at least i want to be able to boot into linux when i am finished,
    everytime i have done something of this sort in the past I have ended up having to reinstall linux, and i would like to avoid that

    Linux distro is Elive if that is anyhelp.
    Morgenmuffel - This word needs to be a part of the english language, in fact you should use it in everyday conversation

  2. #2
    Pedant and proud of it
    Join Date
    Dec 2004

    Default Re: Adding windows to a linux/windows system

    Ask Microsoft to fix their installation software so it will behave in a responsible way.

    Good luck.

    It's easy enough to preserve the Linux block and replace it afterwards, though you will have to manually add the Windows option to the boot manager.

    dd if=/dev/hda of=/root/bootsector.dat bs=512 count=1 will create a file which you can copy to a floppy (or leave on the hard disk). Then after the Windows installation, you will need to boot from a CD or something, preferably in single user mode, and use dd again: dd if=/dev/hda5/root/bootsector.dat of=/dev/hda bs=512 count=1. (if is Input "File" -- which can be a raw block or blocks -- of is Output "File". bs is BlockSize) dd is a very powerful tool. man dd )

    You do need to be very sure about where you are getting and putting things. /dev/hda is the legal name for the whole of hda ... and double and treble check the syntax. I think what I've given you is roughly correct, but it's a while since I have done this and "roughly correct" is not really good enough.

    I have an idea that both Grub and LILO have ways to save and restore the boot sector.

    It's easiest to have a copy of the saved block on a floppy, because it can be tricky to get files from down in the HD file system if you have booted from another device. Of course, make sure the file can be read before carrying on.

Similar Threads

  1. Replies: 7
    Last Post: 15-08-2006, 03:44 PM
  2. Windows 98SE crash after adding USB hub
    By Habb in forum PressF1
    Replies: 1
    Last Post: 22-10-2004, 09:36 AM
  3. Replies: 5
    Last Post: 15-08-2004, 10:17 PM
  4. Adding to a FAQ: Removing Windows Messenger
    By Chilling_Silently in forum PressF1
    Replies: 0
    Last Post: 09-03-2004, 05:09 PM
  5. Replies: 2
    Last Post: 20-01-2002, 07:30 PM

Posting Permissions

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