\documentclass[letterpaper]{article}
\nonstopmode
\akai
\usepackage{linuxdoc-sgml}
\usepackage{qwertz}
\usepackage{url}
\usepackage[latin1]{inputenc}
\usepackage{t1enc}
\usepackage[english]{babel}
\usepackage{epsfig}
\usepackage{null}
\def\addbibtoc{
\addcontentsline{toc}{section}{\numberline{\mbox{}}\relax\bibname}
}%end-preamble
\setcounter{page}{1}
\title{Linux + NT OS Loader mini-HOWTO ¤¤Ä¶ª©}
\author{§@ªÌ: Bernd Reichert {\ttfamily \onlynameurl{reichert@dial.eunet.ch}}\\ 
Ä¶ªÌ: \onlynameurl{C.W.Huang} {\ttfamily \onlynameurl{cwhuang@phys.ntu.edu.tw}}}
\date{v1.11, 2 September 1997
Â½Ä¶¤é´Á: 11-12 November 1997}
\abstract{¥»¤å¥ó´y­z¤F¨Ï¥Î Windows NT boot loader ¨Ó±Ò°Ê Linux ªº¤èªk¡D}


\begin{document}
\maketitle
\tableofcontents

\section{ºK­n}

¥»¤å¥ó´y­z¤F¨Ï¥Î Windows NT boot loader ¨Ó±Ò°Ê Linux ªº¤èªk¡D
¥»¹Lµ{¤w¦b Windows NT 4.0 Workstation ª©¤Î Linux 2.0 ¤W´ú¸Õ¹L¡D




\section{NT OS Loader ¬O¦p¦ó¹B§@ªº?}

NT OS loader §Æ±æ¨Ó¦Û¨ä¥¦§@·~¨t²Îªº±Ò°ÊºÏ°ÏÅÜ¦¨¤@ÀÉ®×¨Ó¨ú¥Î¡D
¥¦Åª¤J³oÀÉ®×¨Ã±Ò°Ê¿ï¾Üªº§@·~¨t²Î¡A¤]´N¬O»¡¡A©Î¬O¤£¦P¼Ò¦¡¹B§@ªº Windows NT ©Î¬O¥ô¦ó¨ä¥¦ªº§@·~¨t²Î¡D




\section{¦p¦ó¦w¸Ë Windows NT ¤Î Linux ¦b¦P¤@¨t²Î¤Wªº´£¥Ü}


\subsection{¦w¸Ë Windows NT}

¥ý¸ÕµÛ¦w¸Ë Windows NT¡D¦pªG§A·Q¨Ï¥Î NTFS §@¬°§A Windows NT ¤À³Î°ÏªºÀÉ®×¨t²Î¡A°O¦í¡A¥Ø«eª©¥»ªº Linux µLªk¨ú¥Î NTFS ªº¤À³Î°Ï¡D
¤@­Ó¥i¥HÅª NTFS ¤À³Î°Ïªº Alpha ª©ÅX°Êµ{¦¡¥i¦b {\ttfamily \onlynameurl{http://www.informatik.hu-berlin.de/\~{}loewis/ntfs}} §ä¨ì¡D
§A¥i«Ø¥ß¥t¥~¤@­Ó FAT ¤À³Î°Ï§@¬°¸ê®Æ¥æ´«¥Î¡A©Î¬O§A¥i¥H¨Ï¥Î DOS ®æ¦¡¤Æªº³nºÐ¤ù¡D




\subsection{¤À³ÎºÏºÐ}

¥t¥~¤@­Ó mini-howto «ØÄ³¤£­n¨Ï¥Î NT ªº"ºÏºÐ¨t²ÎºÞ²z­û"¨Ó«Ø¥ß Linux ªº¸m´«¥H¤Î®Ú¥Ø¿ý¤À³Î°Ï¡D
¥¦·|¯d¤U¤@¨ÇªÅ¶¡¡D§Ú¤]«ØÄ³¨Ï¥Î Linux ªº fdisk.




\subsection{¦w¸Ë Linux}

²{¦b±qºÏ¤ù¤W±Ò°Ê Linux¡A«Ø¥ß¸m´«¤Î®Ú¥Ø¿ý¤À³Î°Ï¡DFdisk ·|±N NTFS ¤À³Î°Ï»{¬°¬O HPFS ¤À³Î°Ï¡A³o¬O¥¿±`ªº¡D
¦A¦¸±qºÏ¤ù±Ò°Ê Linux ¨Ã«ö§Aªº³ß¦n¦w¸Ë Linux¡D



¦b¦w¸Ë¹Lµ{¤¤«ØÄ³§A±¾¤W¥¦§ä¨ìªº HPFS ¤À³Î°Ï®É: ©¿²¤¥¦¡D




\subsection{Lilo}

·í§A°µ¨ì¦w¸Ë Lilo ªº³¡¥÷®É¡A«ü©w§Aªº Linux ®Ú¥Ø¿ý¤À³Î°Ï§@¬°§Aªº±Ò°Ê¸Ë¸m¦]¬°§AºÏºÐªº¥D±Ò°Ê°O¿ý(MBR)²{¦b¬O Windows NT ©Ò¦³¡D
³oªí¥Ü¦b§A {\ttfamily /etc/lilo.conf} ªº root ¶µ¥Ø¤Î boot ¶µ¥Ø·|¦³¬Û¦Pªº­È¡D
¦pªG§A¦³¤@­Ó IDE µwºÐ¥B§Aªº Linux ¤À³Î°Ï¬O¦b²Ä¤G¶ô¤À³Î°Ï¤W¡A§A {\ttfamily /etc/lilo.conf} ªº boot ¶µ¥Ø¬Ý°_¨Ó·|¹³:

\begin{tscreen}
\begin{verbatim}
boot=/dev/hda2
\end{verbatim}
\end{tscreen}


¦pªG§A¦³¨â­ÓºÏºÐ¾÷¦Ó¥B§Aªº Linux ¦ì©ó²Ä¤GÁûºÏºÐªº²Ä¤@­Ó¤À³Î°Ï¤W¡A§A {\ttfamily /etc/lilo.conf} ªº boot ¶µ¥Ø¬Ý°_¨Ó·|¹³:

\begin{tscreen}
\begin{verbatim}
boot=/dev/hdb1
\end{verbatim}
\end{tscreen}


¥H²Å¦X§A¨t²Îªº®Ö¤ß°õ¦æ lilo¡D¦pªG§A¤£½T©wªº¸Ü±qºÏ¤ù¤W±Ò°Ê¥HÀË¬d®Ö¤ß¡D



¦pªG§A²{¦bµLªk±Ò°Ê Windows NT¡A§A¦³³Â·Ð¤F¡D§Ú§Æ±æ§A¤w¸g«Ø¥ß¤F³Ìªñªº­×´_ºÏ¤ù¡D




\section{Bootpart}

¦³¤@­Ó¥Ñ G. Vollant ©Ò¼gªº NT µ{¦¡¥s bootpasr ¥i¥H¬°§A°µ¨ì¤U­zªº¨âÂI¡D
Bootpart ¥i¦b¦¹¨ú±o: {\ttfamily \onlynameurl{http://ourworld.compuserve.com/homepages/gvollant/bootpart.htm}}.



¦pªG§A·Qª¾¹D¨Æ±¡¬O¦p¦ó¹B§@ªº¡A¨Ï¥Î²Ä¤­¤Î²Ä¤»¸`´y­zªº¨BÆJ¡D




\section{Linux ³¡¥÷ªº¤u§@}

§A¥²¶·±qºÏ¤ù¤W±Ò°Ê Linux ª½¨ì NT ³¡¥÷§ï¦n¬°¤î¡D



²{¦b§A¥²¶·±q§Aªº Linux ®Ú¥Ø¿ý¤À³Î°Ï¤¤¨ú¥X±Ò°ÊºÏ°Ï¡D
¦pªG {\ttfamily /dev/hda2} ¬O§Aªº Linux ¤À³Î°Ï¡A³o­Ó {\ttfamily dd} «ü¥O¬O:

\begin{tscreen}
\begin{verbatim}
# dd if=/dev/hda2 of=/bootsect.lnx bs=512 count=1
\end{verbatim}
\end{tscreen}


¦pªG§Aªº bootsect.lnx ¶W¹L¤F 512 ­Ó¦ì¤¸²Õ¨º»ò´N¦³¨Ç¨Æ¤£¹ï«l¡D



²{¦b±NÀÉ®× bootsect.lnx «þ¨©¨ì¤@¤ù DOS ®æ¦¡¤Æ¹LªººÏ¤ù¤¤¡A¦pªG³o¬O§A±NÀÉ®×¶Ç¨ì NTFS ¤À³Î°Ï¤ºªº¤èªkªº¸Ü¡D



§A¥i¥H³o¼Ë¨Ó«þ¨©

\begin{tscreen}
\begin{verbatim}
# mcopy /bootsect.lnx a:
\end{verbatim}
\end{tscreen}


©ÎªÌ¥Î

\begin{tscreen}
\begin{verbatim}
# mount -t msdos /dev/fd0 /mnt
# copy /bootsect.lnx /mnt
# umount /mnt
\end{verbatim}
\end{tscreen}





\section{Windows NT ³¡¥÷ªº¤u§@}

±qºÏ¤ù¤W±NÀÉ®×«þ¨©¨ì {\ttfamily C:$\backslash$bootsect.lnx}. §Ú¤£·|§i¶D§A«ç»ò°µ¡D
(Ä¶ª`: {\ttfamily copy a:bootsect.lnx c:$\backslash$}, À³¸Ó·|§a¡D)



´N¹³ Linux ¤Uªº lilo.conf, ¦b Windows NT ¤¤¬O {\ttfamily c:$\backslash$boot.ini}.
¦b§A½s­×¥¦¤§«e¥Î³o­Ó«ü¥O°£¥h¥¦ªº¨t²Î¤Î°ßÅªÄÝ©Ê:

\begin{tscreen}
\begin{verbatim}
C:\attrib -s -r c:\boot.ini 
\end{verbatim}
\end{tscreen}


²{¦b¥Î¤@½s¿è¾¹§ó§ï {\ttfamily boot.ini} ÀÉ®×¡A¨Ò¦p notepad, ¹³³o¼Ë:

\begin{tscreen}
\begin{verbatim}
[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"
\end{verbatim}
\end{tscreen}


¦b¥»¨Ò¤¤¥u¥[¤J¤F³Ì«á¤@¦æ¡D¦b§AÀx¦s {\ttfamily boot.ini} «á¥Î³o­Ó«ü¥O¦^´_¥¦ªºÄÝ©Ê:

\begin{tscreen}
\begin{verbatim}
C:\attrib +s +r c:\boot.ini 
\end{verbatim}
\end{tscreen}


¦bÃö±¼§Aªº Windows NT ¨Ã­«·s±Ò°Ê«á§AÀ³¸Ó·|¬Ý¨ì¹³³o¼Ëªº:

\begin{tscreen}
\begin{verbatim}
  OS Loader V4.00
 
  ½Ð¿ï¾Ü±z·Q­n±Ò°Êªº§@·~¨t²Î:

  Windows NT Workstation Version 4.0
  Windows NT Workstation Version 4.0 [VGA mode]
  Linux

  ¨Ï¥Î¡ôÁä©M¡õÁä±N±z·Q­nªº¿ï¶µ¤Ï¥Õ¡A
  ¿ï©w«á½Ð«ö Enter Áä½T»{
\end{verbatim}
\end{tscreen}


¿ï¾Ü Linux ¨Ã·|¬Ý¨ì

\begin{tscreen}
\begin{verbatim}
  LILO loading zImage ....
\end{verbatim}
\end{tscreen}





\section{¦A°µ¤@¦¸}

¨C¦¸§A Linux ¤À³Î°Ïªº±Ò°ÊºÏ°Ï³Q­×§ï«á¤@¥÷·s«þ¨©ªº bootsect.lnx ´N¥²¶·Âà²¾¨ì {\ttfamily C:$\backslash$BOOTSECT.LNX}¡D
¤@­Ó¨Ò¤l¬O·í§A­«·s¥Î lilo ¦w¸Ë¤@·sªº®Ö¤ß®É¡D
¦]¦¹§A¥i¥H¬Ý¥X³o¼Ëªº¨t²Î¨Ã¤£¾A¦X¥Î¨Ó´ú¸Õ¹êÅçªº®Ö¤ß¡D




\section{±Æ°£°ÝÃD}

¦pªG¨Æ±¡¨Ã¤£«ö·Ó¹w´Áªº¹B§@¡A¥Î¤@ºÏ¤ù¨ÓÀË¬d¥i±Ò°Ê©Ê¡D
¦pªG {\ttfamily /dev/hdb1} ¬O§Aªº Linux ¤À³Î°Ï¡A§Aªº {\ttfamily /etc/lilo.conf} ¦³¤U¦Cªº¶µ¥Ø:

\begin{tscreen}
\begin{verbatim}
root=/dev/hdb1
boot=/dev/fd0
\end{verbatim}
\end{tscreen}


´¡¤J¤@ºÏ¤ù¨Ã°õ¦æ lilo. ²{¦b¹Á¸Õ±qºÏ¤ù¤W±Ò°Ê¡D
¦pªG§A¦b {\ttfamily /dev/hdb1} ¤Wªº Linux µLªk³Q±Ò°Ê¡A¨º»ò NT OS loader ¤]±NµLªk±Ò°Ê¥¦¡D
¦pªG§A¬Ý¨ì¤@¤j°ï {\ttfamily 01 01 01 01}¡Aªí¥Ü§Aªº root ºÏºÐµLªk¨ú¥Î¡D
ÀË¬d¬O§_§A©Ò¦³ªººÏºÐ³£³Q BIOS °»´ú¨ì¡D



¦pªG³oºÏ¤ù¥i¥H±Ò°Ê§Aªº Linux ¤À³Î°Ï¡A§A¥i¥H¥Î¤U­±«ü¥O¨ú¥X§Aªº±Ò°ÊºÏ°Ïµ¹ NT OS loader ¥Î:

\begin{tscreen}
\begin{verbatim}
# dd if=/dev/fd0 of=/bootsect.lnx bs=512 count=1
\end{verbatim}
\end{tscreen}




§A¥i«O¯d³oºÏ¤ù¦b§Aªº Windows NT ¦w¸Ë¥X°ÝÃD®É§@¬°§Aªº«æ±ÏºÏ¤ù¡D




\section{¨ä¥¦}


\subsection{°Ñ¦Ò¸ê®Æ}

\begin{itemize}
\item The Linux+WindowsNT mini-HOWTO
\item The FAQ for FreeBSD 2.X
\end{itemize}





\subsection{·PÁÂ}

\begin{itemize}
\item ·PÁÂ Xiaoming Yi $<$z3c20@ttacs.ttu.edu$>$ ´£¥Ü³o¨Ç¹Lµ{¤]¦b°£¤F²Ä¤@ÁûºÏºÐ¥~ªº¨ä¥¦ºÏºÐ¤W¹B§@¡D
\item ·PÁÂ Frank Dennler $<$Frank.Dennler@zkb.ch$>$ ´£¨ÑªººÏºÐ§Þ¥©¡D
\end{itemize}





\subsection{¦^õX}

¥ô¦ó·N¨£³£«ÜÅwªï¡D




\subsection{Ä¶ª`: ¥H NT Loader ±Ò°Ê FreeBSD}

¦]Ä¶ªÌªº¹q¸£¤¤°£¤F Windows NT 4.0 ¤Î Linux ¤§¥~¡AÁÙ¸Ë¤F FreeBSD 2.2¡A©ó¬O´N¥é·Ó¤W­±ªº°µªk¸Õ¸Õ NT Loader ¦³¨S¦³¿ìªk±Ò°Ê FreeBSD¡D
§Úªº FreeBSD ¸Ë¦b {\ttfamily /dev/sda2}, ¤]´N¬O FreeBSD ªº {\ttfamily /dev/sd0s2}.
«ö·Ó¤W­±ªº°µªk§Ú¥ý±N {\ttfamily /dev/sda2} ªº boot sector ¦s¦¨¤@ÀÉ®×:

\begin{tscreen}
\begin{verbatim}
# dd if=/dev/sda2 of=/bootsect.bsd bs=512 count=1
\end{verbatim}
\end{tscreen}


¨Ã±N¥¦«þ¨©¨ì C:$\backslash$ ¤U¡D¦A©ó {\ttfamily boot.ini} ¤¤¥[¤J

\begin{tscreen}
\begin{verbatim}
C:\BOOTSECT.BSD="FreeBSD"
\end{verbatim}
\end{tscreen}


¤£®Æ³o­Ó¤èªk³ºµM{\bfseries ¥¢±Ñ}¤F¡AµLªk±Ò°Ê FreeBSD!



¤@¤è­±Ä±±o¥¢±æ¡A¤@¤è­±¤S¤£¦º¤ß¡D©¿µM·Q¨ì¡Alilo ¤]¥i¥H®³¨Ó±Ò°Ê FreeBSD¡D
©ó¬O¡A¤S°µ¤F¤U­±ªº¹êÅç¡A¶i¤J Linux «á¡A±N {\ttfamily /etc/lilo.conf} §ï¬°:

\begin{tscreen}
\begin{verbatim}
boot = /dev/fd0
install = /boot/boot.b
vga = normal

other = /dev/sda2
      label = FreeBSD
      table = /dev/sda
      loader = /dev/os2_d.b
\end{verbatim}
\end{tscreen}


©ñ¤J¤@®æ¦¡¤Æ¹LªººÏ¤ù¡A¦A¶] lilo -v¡DµM«á±NºÏ¤ùªº±Ò°ÊºÏ°ÏÅÜ¦¨¤@ÀÉ®×:

\begin{tscreen}
\begin{verbatim}
# dd if=/dev/fd0 of=/bootsect.bsd bs=512 count=1
\end{verbatim}
\end{tscreen}


¨Ã©ñ¨ì C:$\backslash$ ¤U¡D²¾¥hºÏ¤ù«á­«·s¶}¾÷¡A¦b NT Loader ªº¿ï³æ¤U¿ï¾Ü FreeBSD¡A±µµÛ´N¬Ý¨ì:

\begin{tscreen}
\begin{verbatim}
  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:
\end{verbatim}
\end{tscreen}


§Ú{\bfseries ¦¨¥\}¤F!!



\end{document}
