home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / linux / 10087 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  2.2 KB

  1. Path: sparky!uunet!sun-barr!olivea!spool.mu.edu!snorkelwacker.mit.edu!ira.uka.de!chx400!bernina!almesber
  2. From: almesber@nessie.cs.id.ethz.ch (Werner Almesberger)
  3. Newsgroups: comp.os.linux
  4. Subject: Re: MBR recommendation needed
  5. Message-ID: <1992Sep7.152342.7559@bernina.ethz.ch>
  6. Date: 7 Sep 92 15:23:42 GMT
  7. References: <1992Sep6.153433.22751@pool.info.sunyit.edu>
  8. Sender: news@bernina.ethz.ch (USENET News System)
  9. Organization: Swiss Federal Institute of Technology (ETH), Zurich, CH
  10. Lines: 45
  11.  
  12. In article <1992Sep6.153433.22751@pool.info.sunyit.edu> ujlh@pool.info.sunyit.edu (James Henrickson) writes:
  13. > I would like to boot DOS and Linux off the hard drive.  I am currently 
  14. > using LILO and the MS-DOS MBR with the active partition set to Linux.  
  15.  
  16. Easy, just tell LILO about it.
  17.  
  18. I'm assuming you have created an install script /etc/lilo/install and MS-DOS
  19. is on your first partition. Your present /etc/lilo/install should look like
  20. this (device names are probably different, you might use more options):
  21.  
  22. #!/bin/sh
  23. /etc/lilo/lilo -c -i /etc/lilo/boot.b \
  24.   /linux
  25.  
  26. Now, you change it to
  27.  
  28. #!/bin/sh
  29. /etc/lilo/lilo -c -i /etc/lilo/boot.b \
  30.   /linux \
  31.   msdos=/etc/lilo/chain.b+/dev/hda1@/dev/hda
  32.  
  33. (Or, better, make the second line
  34. $ROOT/etc/lilo/lilo -c -i /etc/lilo/boot.b $* \
  35. ^^^^^                       ^^
  36. and also add a second Linux boot image.)
  37.  
  38. Run it and reboot. Now, before LILO starts loading Linux, press [Shift],
  39. [Ctrl] or [Alt] and hold that key down. LILO will display a boot: prompt
  40. and you can enter  msdos  to boot MS-DOS.
  41.  
  42. If your system boots too quickly to press [Shift], etc. fast enough, you
  43. can specify a delay with the -d option, e.g. -d 10 for one second.
  44.  
  45. Note: - you don't have to move LILO's boot sector. MS-DOS' MBR is okay as
  46.     the MBR (unless you care about that fraction of a second it takes
  47.     to load it).
  48.       - this and may other things are described in the documentation that
  49.     accompanies LILO.
  50.  
  51. - Werner
  52. -- 
  53.    _________________________________________________________________________
  54.   / Werner Almesberger, ETH Zuerich, CH      almesber@nessie.cs.id.ethz.ch /
  55.  / IFW A44  Tel. +41 1 254 7213                 almesberger@rzvax.ethz.ch /
  56. /_BITNET:_ALMESBER@CZHETH5A__HEPNET/CHADNET:_[20579::]57414::ALMESBERGER_/
  57.