Posted and Mailed.
-For some obscure reason, we want to install linux on a NT machine that's already
-well used and have quite a lot of files on it already. Don't really feel like
-backup and re-format and repartition and the whole lot ( I know it can be done
-and if I am willing to reinstall, I can make it dual boot with the windows NT
-loader). Does loadin runs under NT?
I think I'd better jump in here quickly before you go way around the bend
with some other suggestions posted.
The short answer is no. The not so short answer is that it's unnecessary
because NTLoader does the job.
Here how to do it.
1) Install Linux normally. Be sure to create a Linux boot floppy.
2) Install LILO carefully! Instead of installing in the Master Boot Record
(because that's where NTLoader lives) install in the root partition where
Linux is installed. Normally the LILO config file would have:
boot=/dev/hda
which would install LILO in the MBR of hda. Instead use:
boot=/dev/hda3
Where hda3 is the partition where the Linux root is installed.
3) After installing LILO get the boot sector from the partition and store
it in a file. Something like:
# dd if=/dev/hda3 of=bootsect.lnx bs=512 count=1
Will copy the boot sector into the file bootsect.lnx
4) Copy the boot sector file into the boot NT filesystem. The easiest way to
do this if NT is installed in an NTFS is to copy the file to a MSDOS floppy
in Linux then boot NT and read the file from the floppy.
5) Update the NTLoader config file (Boot.ini IIRC) to add Linux and the
bootsect.lnx file to the menu.
And Voila! You can choose Linux right off the NTLoader menu. You can even
set up the machine to boot Linux as a default.
There are several article on the subject posted to the newsgroups. Use DejaNews
(www.dejanews.com) to search on the subject.
Hope this helps,
BAJ
--
Another random extraction from the mental bit stream of...
Byron A. Jeff - PhD student operating in parallel - And Using Linux!