LOADIN in NT possible?

LOADIN in NT possible?

Post by Dr H. T. Leu » Tue, 17 Mar 1998 04:00:00



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?

 
 
 

LOADIN in NT possible?

Post by Peter A Fei » Wed, 18 Mar 1998 04:00:00



Quote:> 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?

Nope. Loadlin just overwrites the kernel into ram & probably forces a
context switch. NT's security, such as it is, will NOT allow such
low-level hardware access.

--
Peter Fein
1005 E. 60th St.
Chicago, IL 60637
773-834-6206

http://pfein.home.ml.org/

 
 
 

LOADIN in NT possible?

Post by Albert D. Cahal » Wed, 18 Mar 1998 04:00:00



Quote:> Does loadin runs under NT?

Not currently. If you'd like to make it work:

Get the native mode executable source from www.ntinternals.com.
This code can run before NT holds open files on the disks,
so you can rip NT out of memory. You can still read files though.

Modify it to load and start the Linux kernel depending on
the state of a flag. Maybe use the unique disk ID as a flag.

The kernel may need to mount the root filesystem over NFS,
but at least /usr can be on the NTFS partition.

If you want to be daring: use Richard Gooch's devfs patches to
handle /dev and enable NTFS write support for a local root fs.

 
 
 

LOADIN in NT possible?

Post by Thomas Ludwi » Wed, 18 Mar 1998 04:00:00




: > 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?

: Nope. Loadlin just overwrites the kernel into ram & probably forces a
: context switch. NT's security, such as it is, will NOT allow such
: low-level hardware access.

: --
: Peter Fein
: 1005 E. 60th St.
: Chicago, IL 60637
: 773-834-6206

: http://pfein.home.ml.org/

In my environment I use the NT-loader to boot either NT or DOS. With
DOS I use loadlin to select between 'really DOS' and Linux.

With NT the default is DOS, in DOS the default is Linux. ;-)
Works perfectly.

   Thomas

--
Prof. Dr.         http://wwwbode.informatik.tu-muenchen.de/~ludwig/

Technische Universit?t             Ludwig-Maximilians-Universit?t
Institut fr Informatik            Institut fr Informatik
Lehrstuhl fr Rechnertechnik       Kommunikationssysteme
   und Rechnerorganisation            und Systemprogrammierung
Postfach                        &  Oettingenstr. 67
D-80290 Mnchen                    D-80538 Mnchen
Tel.: +49 (89) 289-22042           Tel.: +49 (89) 2178-2149
Fax: +49 (89) 289-28232            Fax: +49 (89) 2178-2147
Office: Arcisstra?e 16, S2032      Office: Oettingenstra?e 67, 0.52

 
 
 

LOADIN in NT possible?

Post by Byron A Je » Wed, 18 Mar 1998 04:00:00


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!

 
 
 

LOADIN in NT possible?

Post by Paul Rensin » Wed, 18 Mar 1998 04:00:00


I would add one follow-up. I personally think that it is best to install LILO
to a floppy and copy the boot record from the floppy onto the NT hard
disk. Otherwise, Byron did exactly what I did.

BTW, I now have a multitude of NT machines running this way. By only putting
the absolutely necessary files on the local machine (using a UMSDOS for boot)
and mounting the entire /usr tree from a server, I can make a machine dual
boot using only about 13MB of disk space.

        Paul Rensing

 
 
 

LOADIN in NT possible?

Post by Albert D. Cahal » Wed, 18 Mar 1998 04:00:00



Quote:> 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)

No, the NT boot loader lives in the NT partition.
NT uses a standard master boot record and can tolerate LILO there.
Unlike Windows 95, NT 4.0 won't even overwrite an existing LILO MBR.

Quote:> 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.

If you have a FAT partition or NTFS drivers for Linux, you can eliminate
all that mess. Just put boot=/dos/bootsect.lnx in /etc/lilo.conf and
run lilo to install to that file.

- Show quoted text -

Quote:> 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.

 
 
 

LOADIN in NT possible?

Post by Roelf Diederick » Thu, 19 Mar 1998 04:00:00



Quote:>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

Best way, if your file system is still FAT under NT, is to use 'fips' to
shrink your NT partition a bit, and then load linux in the free space.

Do a search for 'fips' at your closest linux mirror site.

Quote:>loader). Does loadin runs under NT?

No. Loadlin simply loads up the linux kernel, starts it up,
and then the kernel tries to switch to protected mode and starts probing
your system for hardware.

Since NT has already taken over the whole machine, you'll simply get
something like a general protection fault, or if you're lucky, a nice
blue screen crash. :)

----------------------------------------------------------------------------
-

http://www.ttdesk.co.za/~roelf
"Flay me, hang me, play me the Barbie Song"
----------------------------------------------------------------------------
-

 
 
 

1. NT NT NT NT NT NT NT MT

Why is everyone comparing whatever operating system with NT?

**************************************************************************
*     / - -                           /-----/ /                          *
*    /____  /   / /----/ /----/      /       /     /----/ /---/ /----/   *
*        / / / / /----/ /----/      /       /---/ /----/ /   / /----/    *
*   ___ / /_/_/ /____  /____       /_____/ /   / /____  /   /  ____/     *

**************************************************************************
---
 t MR/2 t

2. Possible gotcha in gcc

3. Bootdisk fails after loadin initrd.img

4. Solaris 2.6 for x86 fails with device configuration.

5. loadin aic7xxx driver at boot: how?? help please

6. General-driver-question

7. Loadin

8. How do I make icons of often-used programs visible upon starting the X server

9. loadin & 2.2.1

10. hisax not loadin , desperatly seeking help :)

11. Linux & NT on 2 HDD's possible?

12. Booting Windows NT from LILO ... Possible?

13. NT and Linux? Possible?