home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / linux / 22490 < prev    next >
Encoding:
Internet Message Format  |  1993-01-02  |  3.5 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!crcnis1.unl.edu!makis
  2. From: makis@helios.unl.edu (Makis Maroulis)
  3. Newsgroups: comp.os.linux
  4. Subject: Re: Need help booting Linux off HD
  5. Date: 3 Jan 1993 00:00:01 GMT
  6. Organization: University of Nebraska--Lincoln    
  7. Lines: 91
  8. Message-ID: <1i5aa1INN8bp@crcnis1.unl.edu>
  9. References: <72759@cup.portal.com> <1993Jan2.202342.10290@nntpd2.cxo.dec.com>
  10. NNTP-Posting-Host: helios.unl.edu
  11.  
  12. creacy@yuppie.enet.dec.com (Chet Creacy) writes:
  13.  
  14.  
  15. >In article <72759@cup.portal.com>, DO@cup.portal.com (JEFF SCOTT MARCUS) writes...
  16. [stuff deleted]
  17. >>install=/etc/lilo/boot.b
  18. >>boot=/dev/hda
  19. >>delay=10
  20. >>other=/dev/hda1
  21. >>table=/dev/hda
  22. >>image=/Image
  23. >> 
  24. >>When I run Lilo I get this message -
  25. [stuff deleted]
  26. >> 
  27. >>Jeff Marcus
  28. >>DO@cup.portal.com
  29.  
  30. >I'm have the very same problem and I have printed the Lilo postscript doc.
  31. >It hasn't helped me to fix the problem.
  32.  
  33. >Anyone have any ideas?
  34.  
  35. Since I prefer to learn from examples here are the files that I 'm using. Also
  36. I'm using lilo version 7.
  37. I have one IDE hard disk and have partitioned it as:
  38. /dev/hda1  for dos
  39. /dev/hda2  for linux (ext filesystem)
  40.  
  41. file "config"
  42. ---------------------------------------------------------
  43. boot = /dev/hda
  44. compact
  45. install = /etc/lilo/boot.b
  46. map = /etc/lilo/map
  47. image = /Image        # this is the main description for boooting from HD
  48.   label = lin-hd
  49.   root = /dev/hda2
  50. image = /Image        # this is for booting from floppy disk (A drive)
  51.   label = lin-fd
  52.   root = /dev/fd0
  53. image = /Image.old    # if something goes wrong with the main Image, for
  54.   label = lin-hd-old    # example if I 've build a new kernel and doesn't
  55.   root = /dev/hda2      # go I use the old Image
  56. other = /dev/hda1       # this is for the msdos partition
  57.   table = /dev/hda
  58.   label = msdos
  59. ---------------------------------------------------------------
  60. I'm supposing that the Image file is in the root directory (/). Of cource you
  61. may not use the lines 8-13 and the comments.
  62.  
  63. file "install"
  64. -------------------------------------------------------------
  65. /etc/lilo/lilo -C /etc/lilo/config $*
  66. ------------------------------------------------------------
  67.  
  68. file "disktab"
  69. -------------------------------------------------------------
  70. # Dev.  BIOS    Secs/   Heads/  Cylin-  Part.
  71. # num.  code    track   cylin.  ders    offset
  72. 0x300   0x80    17      10      980     0       # /dev/hda
  73. 0x301   0x80    17      10      980     17      # /dev/hda1
  74. 0x302   0x80    17      10      980     23630   # /dev/hda2
  75. --------------------------------------------------------------
  76.  
  77. You can get the parameters for heads, sectors, cylinders from your eprom 
  78. table and the partition offcet from the information that linux provides 
  79. when it boots. I had problems that were solved when I configured the
  80. the "disktab" file. The filesystems that you must describe in the "disktab"
  81. file are the ones that you want to boot from.( you don't have to describe
  82. anything for the floppy drive since the "disktab" file is for the hard disk
  83. only. Oh, the hex numbers 0x300,0x301 and 0x302 refer to an IDE drive (or
  84. MFM/RLL ?). If you have a SCSI drive you should change the numbers like
  85. 0x800, 0x801 and so on.
  86.  
  87. So after compiling the source code and "make install" the compilles programs
  88. you just have to run "install" in the /etc/lilo directory and there you go.
  89.  
  90. This set up works for me just fine. 
  91.  
  92. >Thanks,
  93.  
  94. >Chet
  95.  
  96. Hope it helps.
  97.  
  98. Makis
  99. --
  100. +------------------------------------------------------------------------+
  101. |  Serafim Maroulis              |      EMail:makis@helios.unl.edu       |
  102. +------------------------------------------------------------------------+
  103.