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

  1. Path: sparky!uunet!mcsun!news.funet.fi!hydra!klaava!klaava!liljeber
  2. From: liljeber@klaava.Helsinki.FI (Mika Pekka Liljeberg)
  3. Newsgroups: comp.os.linux
  4. Subject: Re: MBR recommendation needed
  5. Message-ID: <LILJEBER.92Sep7101010@klaava.Helsinki.FI>
  6. Date: 7 Sep 92 08:10:10 GMT
  7. References: <1992Sep6.153433.22751@pool.info.sunyit.edu>
  8. Sender: liljeber@klaava.Helsinki.FI (Mika Pekka Liljeberg)
  9. Organization: Department of Computer Science, University of Helsinki, Finland
  10. Lines: 52
  11. In-Reply-To: ujlh@pool.info.sunyit.edu's message of 6 Sep 92 15: 34:33 GMT
  12.  
  13. In article <1992Sep6.153433.22751@pool.info.sunyit.edu> ujlh@pool.info.sunyit.edu (James Henrickson) wrote:
  14. > Hi all,
  15. > I would like to boot DOS and Linux off the hard drive.  I am currently 
  16. > using LILO and the MS-DOS MBR with the active partition set to Linux.  
  17. > I am looking for an MBR similar to the one that come with Coherent, that 
  18. > will boot the active partition by default but allow me to select the boot 
  19. > partition if I want to boot DOS.  I have seen a few less-flexible MBR's 
  20. > that either wait for you to make a selection (no timeout default) or have 
  21. > no selection (like the DOS MBR), and I have seen DOS utilities that will
  22. > boot Linux (I don't want to be dependent on DOS), but I haven't quite
  23. > found what I'm looking for.  I will, of course, settle for a clone of
  24. > the Coherent MBR if one is available but I'd prefer a user-defined
  25. > timeout period.
  26.  
  27. Why don't you just use lilo as the MBR? It will select the first mapped
  28. kernel as the default at bootup. However, if you press alt (or shift or
  29. control, don't remember exactly) you'll get a prompt "Boot: " to which
  30. you can type the name of the kernel you wish to boot. Lilo also allows
  31. you to chain boot dos partitions. Here's a copy of my lilo install
  32. script. It sets up several useful boot options:
  33.  
  34. #!/bin/sh
  35. /etc/lilo/lilo -c -b /dev/hda -i /etc/lilo/boot.b $*    \
  36.     linux=/vmunix                     \
  37.     flinux=/vmunix,/dev/fd1                \
  38.     new=/usr/src/linux/Image            \
  39.     fnew=/usr/src/linux/Image,/dev/fd1        \
  40.     dos=/etc/lilo/chain.b+/dev/hda4@/dev/hda
  41.  
  42. With these settings I can boot linux from either /vmunix or
  43. /usr/src/linux/Image using either floppy or hard disk root devive.
  44. The last one let's me boot dos from drive C: on hard disk 0.
  45.  
  46. > The only reason I'm looking for such a thing is because I don't want
  47. > to use a floppy to boot DOS when someone wants to use my machine for 
  48. > word processing or games.  :-)
  49. > Thanks in advance,
  50. > -- 
  51. > Jim H.
  52. > *
  53. > * James L. Henrickson
  54. > * ujlh@sunyit.edu        "Some day I might have a real .signature!"
  55.  
  56.     Mika
  57.  
  58. --
  59. Mika Liljeberg            Email:    liljeber@kruuna.Helsinki.FI
  60. Helsinki University            Mika.Liljeberg@Helsinki.FI
  61. Dept. of Computer Science
  62.