Mon Mar 17, 2003 11:54 pm
I've posted this on a previous thread, so here it goes:
For using NTLDR to load linux, follow these steps:
- Install your distro (Mandrake or whatever), and when it prompts you about the boot-scheme, order it to install LILO/GRUB/whatever on the boot sector of the root partition (NOT in hard disk's boot sector).
- Then, open up a console and mount your Windows partition in some directory (I'll assume /mnt for that), and do the following (I'll presume your Linux partition is /dev/hdc1):
Code:
dd if=/dev/hdc1 of=/mnt/bootsect.lnx bs=512 count=1
This will copy 1 block (the "count" parameter) of 512 bytes (the "b"), from the device /dev/hdc1 (the "if"->"input file") into the file /mnt/bootsect.lnx (the "of"->"output file").
The net result will be that it will copy the first 512 bytes of your Linux partition (which contain the bootsector that you told it to stick there in the installation) and dump it into a file.
- Then open up your boot.ini in the Windows partition and add a line after the [operating systems] tag:
c:\bootsect.lnx="My 3l33t Linux distro".
Next time you boot, voila... You get a new item in your boot menu to boot into Linux.
Hope this helps out. For further info, re-post.