home *** CD-ROM | disk | FTP | other *** search
/ BURKS 2 / BURKS_AUG97.ISO / BURKS / LINUX / HOWTO / mini / lwinnt.txt < prev    next >
Text File  |  1997-07-07  |  6KB  |  126 lines

  1. The Linux+WindowsNT mini-HOWTO
  2. by Bill Wohler, wohler@uluru.worldtalk.com
  3. v1.1, 19 February 1997
  4.  
  5.   "You hear maniacal laughter..."
  6.   
  7.   Due to hardware or software problems or user headroom, I pulled my
  8.   hair out for several days trying to get both NT and Linux happily
  9.   settled on my new HP Vectra PC at work.
  10.  
  11.   Under no circumstances run the Disk Administrator from NT 3.51 to
  12.   format partitions.  It asks if it can write a signature "which will
  13.   cause absolutely no harm."  When it did this, it hosed my partition
  14.   table until fixed by steps 3 and 7 below.  Because of these
  15.   problems, I was limited to one FAT NT partition.  Also remember that
  16.   even if you do get the Disk Administrator to work, you'll want at
  17.   least one small FAT partition to use as a staging area for
  18.   exchanging files between Linux and NT until Linux has an NTFS
  19.   filesystem.
  20.  
  21.   I installed Linux first and then NT, but based on my experience, I
  22.   might now be able to install NT first and then Linux.
  23.  
  24.   Note that step 6 is pertinent only to the following setup: Debian
  25.   Linux 1.1, Linux 2.0.0, HP Vectra XU 6/150, Adaptec AIC 7880 Ultra
  26.   (BIOS 1.2S-HP), Quantum Fireball 1080S, Phoenix compatibility BIOS
  27.   GG.06.02.  NT 3.51.  The examples show a SCSI disk (/dev/sda);
  28.   substitute /dev/hda for your IDE drives.
  29.  
  30.   
  31.   1. Install a minimal Linux (hold off on installing the rest until
  32.   you win the Linux/NT battle).  Do all your disk partitioning in
  33.   Linux, including your NT partition (make it FAT).  I was not
  34.   successful at making more than one NT partition.  I also made it the
  35.   first partition, but I don't know if that is essential or not.
  36.   
  37.   2. Edit /etc/lilo.conf and use boot=/dev/sda (I was not successful
  38.   at installing LILO on the Linux partition--/dev/sda3 in my case) and
  39.   run "lilo".  You'll have to use the editor ae.  You'll live.
  40.  
  41.   3. Save the MBR with this: dd if=/dev/sda of=/dev/fd0 bs=512 count=1
  42.   Use a floppy.  Trust me.  Also do this each time you change the disk
  43.   partition table.
  44.  
  45.   4. Install NT, part 1.  When it goes to reboot halfway through the
  46.   process you'll boot into Linux.
  47.   
  48.   5. Add NT stanza to /etc/lilo.conf, e.g.:
  49.   
  50.     other=/dev/sda1
  51.     label=NT
  52.     table=/dev/sda
  53.  
  54.   and run lilo.  If lilo complains about this (I forget the message),
  55.   add the "linear" flag to /etc/lilo.conf near the "compact" keyword.
  56.   Furthermore, if your partition table is screwed up by NT you'll
  57.   either need to use "ignore-table" or follow the directions in Step 7.
  58.   See also "fix-table".  The LILO HOWTO is your friend.
  59.   
  60.   6. Reboot, select NT from LILO, and finish NT install.  You'll need
  61.   the "Boot Disk XU, HP Vectra AIC 7880 Driver A.01.02" floppy to
  62.   install the ethernet drivers and the "XU/VT Drivers and
  63.   Documentation" CD (directory video/disk4 if I recall correctly) to
  64.   install the video drivers for the Matrox MGA Millennium.
  65.   
  66.   7. Back to Linux, run fdisk and ensure you don't get "partition
  67.   doesn't end on cylinder boundary" on your Linux partitions.  You'll
  68.   still have this error on the NT partition though, but this seems to
  69.   be OK.
  70.   
  71. /dev/sda1            1        1      322   329301    6  DOS 16-bit >=32M
  72. Partition 1 does not end on cylinder boundary:
  73.      phys=(321, 39, 9) should be (321, 63, 32)
  74.  
  75.   Cfdisk reports strangeness, but it seems OK:
  76.  
  77.                                           Unusable                      0.04*
  78.  /dev/sda1                 Primary        DOS 16-bit >=32Mb           321.59*
  79.                                           Unusable                      0.39*
  80.  
  81.   If you do get the cylinder boundary warning on your Linux
  82.   partitions, it is sufficient to use cfdisk to do something innocuous
  83.   like changing the boot sector.
  84.   
  85.   If, however, NT has really screwed you over and cfdisk can't even
  86.   run, complaining that it cannot open /dev/sda, then you'll need to
  87.   take more extreme action.  You'll need that MBR you saved
  88.   previously.  Clear and restore the MBR (but not the signature) with:
  89.  
  90.       dd if=/dev/zero of=/dev/sda bs=512 count=1
  91.       dd if=/dev/fd0 of=/dev/sda bs=510 count=1
  92.  
  93.   8.  Install the rest of Linux.  Easy, huh?
  94.  
  95.   If you prefer to have NT write the MBR instead of LILO, you may have
  96.   to resort to the following to clear the MBR first:
  97.   
  98.   a) dd if=/dev/zero of=/dev/sda bs=446 count=1 (in Linux) or perform
  99.      a low-level format with the SCSI utilities.  I've heard that a
  100.      low-level format of an IDE disk is fatal, so don't do it.
  101.   b) fdisk /mbr (you've obviously already created a DOS boot disk that
  102.      contains fdisk).
  103.   c) delete NT partition and create it again in NT install.
  104.   d) continue with NT install.
  105.  
  106.   Epilogue: After first posting this message, I heard from several
  107.   folks that they had no problems with NT's Disk Administrator, and
  108.   were able to install either NT or Linux first without any problems.
  109.   Hopefully, you'll be in this camp, but if not, perhaps this campfire
  110.   story will be of some use.
  111.  
  112.   Since the first edition of this mini-HOWTO, others have written
  113.   similar documents as well.  Please be sure to consult them.  If your
  114.   experience differs from any presented, then you should submit your
  115.   own mini-HOWTO or submit a revised version of this document to the
  116.   HOWTO maintainer (reference this sentence) and send a carbon copy to
  117.   me as I don't have the time to maintain this document.  Someone
  118.   should eventually combine all of these documents into a single
  119.   coherent HOWTO.
  120.  
  121.   Finally, I'm afraid this document details all I know about this
  122.   subject.  I should point you to an appropriate Linux newsgroup for
  123.   further information.  I use NT about one day a year.  Under duress.
  124.  
  125.  
  126.