BBS水木清华站∶精华区

 
 
                    Linux + NT OS Loader mini-HOWTO 
 
                  : Bernd Reichert reichert@dial.eunet.ch 
 
                    : C.W.Huang cwhuang@phys.ntu.edu.tw 
 
             v1.11, 2 September 1997 : 11-12 November 1997 
 
 
 
                                   Abstract 
 
      Windows NT boot loader  Linux 
 
 
                                   CONTENTS 
 
 
 
1.  ..................................................................... 1 
 
2. NT OS Loader ? ....................................................... 1 
 
3.  Windows NT  Linux  .................................................. 1 
   3.1  Windows NT ...................................................... 1 
   3.2  ................................................................. 1 
   3.3  Linux ........................................................... 1 
   3.4 Lilo ............................................................. 2 
 
4. Bootpart ............................................................. 2 
 
5. Linux  ............................................................... 2 
 
6. Windows NT  .......................................................... 3 
 
7.  ..................................................................... 3 
 
8.  ..................................................................... 3 
 
9.  ..................................................................... 4 
   9.1  ................................................................. 4 
   9.2  ................................................................. 4 
   9.3  ................................................................. 4 
   9.4 :  NT Loader  FreeBSD ............................................ 4 
 
 
                                       i 
 
 
 
1.  _ 
 
 Windows NT boot loader  Linux   Win 
dows NT 4.0 Workstation  Linux 2.0 
 
 
2.  NT OS Loader ? 
 
NT OS loader 
 Windows NT 
 
 
 
3.  _Windows NT _Linux _ 
 
3.1  _Windows NT 
 
 Windows NT NTFS  Windows NT 
 Linux  NTFS 
NTFS  Alpha  http://www.informatik.hu- 
berlin.de/~loewis/ntfs   FAT 
 DOS 
 
3.2  _ 
 
 mini-howto  NT "" Linux 
  Linux  fdisk. 
 
3.3  _Linux 
 
 LinuxFdisk  NTFS 
HPFS   Linux  Linux 
 
 HPFS : 
 
 
 
 
Linux + NT OS Loader mini-HOWTO                                         1 
 
 
 
 
 
Linux + NT OS Loader mini-HOWTO                                         2 
 
 
 
3.4  Lilo 
 
 Lilo  Linux 
(MBR) Windows NT 
 /etc/lilo.conf  root  boot 
IDE  Linux  /etc/lilo.conf  boot 
 
 
     boot=/dev/hda2 
 
 Linux 
/etc/lilo.conf  boot : 
 
     boot=/dev/hdb1 
 
 lilo 
 
 Windows NT 
 
 
4.  Bootpart 
 
 G. Vollant  NT  bootpasr  Bootpart 
 http://ourworld.compuserve.com/homepages/gvollant/bootpart.htm. 
 
 
 
 
5.  Linux _ 
 
 Linux  NT 
 
 Linux   /dev/hda2  Linux 
 dd : 
 
     # dd if=/dev/hda2 of=/bootsect.lnx bs=512 count=1 
 
 bootsect.lnx  512 
 
 bootsect.lnx  DOS 
NTFS 
 
 
 
     # mcopy /bootsect.lnx a: 
 
 
 
     # mount -t msdos /dev/fd0 /mnt 
     # copy /bootsect.lnx /mnt 
     # umount /mnt 
 
 
 
 
 
 
 
 
 
 
 
Linux + NT OS Loader mini-HOWTO                                         3 
 
 
 
6.  Windows NT _ 
 
 C:\bootsect.lnx.  (: copy a:boot 
sect.lnx c:\, ) 
 
 Linux  lilo.conf,  Windows NT  c:\boot.ini. 
 
 
     C:\attrib -s -r c:\boot.ini 
 
 boot.ini  notepad, : 
 
     [boot loader] 
     timeout=30 
     default=multi(0)disk(0)rdisk(0)partition(1)\WINNT 
     [operating systems] 
     multi(0)disk(0)rdisk(0)partition(1)\WINNT="Windows NT Workstation ... 
     multi(0)disk(0)rdisk(0)partition(1)\WINNT="Windows NT Workstation ... 
     C:\BOOTSECT.LNX="Linux" 
 
 boot.ini : 
 
     C:\attrib +s +r c:\boot.ini 
 
 Windows NT : 
 
       OS Loader V4.00 
 
       : 
 
       Windows NT Workstation Version 4.0 
       Windows NT Workstation Version 4.0 [VGA mode] 
       Linux 
 
 
        Enter 
 
 Linux 
 
       LILO loading zImage .... 
 
 
7.  _ 
 
 Linux  bootsect.lnx 
C:\BOOTSECT.LNX  lilo 
 
 
 
8.  _ 
 
  /dev/hdb1 
Linux  /etc/lilo.conf : 
 
 
 
 
 
 
 
 
 
Linux + NT OS Loader mini-HOWTO                                         4 
 
 
 
     root=/dev/hdb1 
     boot=/dev/fd0 
 
 lilo.   /dev/hdb1  Linux 
 NT OS loader   01 01 01 
01 root   BIOS 
 
 Linux  NT OS 
loader : 
 
     # dd if=/dev/fd0 of=/bootsect.lnx bs=512 count=1 
 
 Windows NT 
 
 
9.  _ 
 
9.1  _ 
 
    The Linux+WindowsNT mini-HOWTO 
 
    The FAQ for FreeBSD 2.X 
 
9.2  _ 
 
     Xiaoming Yi <z3c20@ttacs.ttu.edu> 
 
 
     Frank Dennler <Frank.Dennler@zkb.ch> 
 
9.3  _ 
 
 
 
9.4  : _NT Loader _FreeBSD 
 
 Windows NT 4.0  Linux  FreeBSD 
2.2 NT Loader  FreeBSD  FreeBSD 
 /dev/sda2,  FreeBSD  /dev/sd0s2.   /dev/sda2 
 boot sector : 
 
     # dd if=/dev/sda2 of=/bootsect.bsd bs=512 count=1 
 
 C:\  boot.ini 
 
     C:\BOOTSECT.BSD="FreeBSD" 
 
 FreeBSD! 
 
lilo  FreeBSD 
 Linux  /etc/lilo.conf : 
 
 
 
 
 
 
 
 
 
 
 
Linux + NT OS Loader mini-HOWTO                                         5 
 
 
 
     boot = /dev/fd0 
     install = /boot/boot.b 
     vga = normal 
 
     other = /dev/sda2 
           label = FreeBSD 
           table = /dev/sda 
           loader = /dev/os2_d.b 
 
 lilo -v: 
 
     # dd if=/dev/fd0 of=/bootsect.bsd bs=512 count=1 
 
 C:\  NT Loader 
FreeBSD: 
 
       LILO loading FreeBSD 
       >> FreeBSD BOOT @ 0x10000: 639/65536 k of memory 
       Usage: [[0:][fd](0,a)]/kernel][-abcCdhrsv] 
       Use 1:sd(0,a)/kernel to boot sd0 if it is BIOS drive 1 
       Use ? for file list or press Enter for defaults 
       Boot: 
 
!! 
 
 
Linux + NT OS Loader mini-HOWTO                                         6 
 

BBS水木清华站∶精华区