home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / linux / 9369 < prev    next >
Encoding:
Text File  |  1992-08-30  |  3.3 KB  |  82 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!chx400!bernina!almesber
  3. From: almesber@nessie.cs.id.ethz.ch (Werner Almesberger)
  4. Subject: Re: How I LILOed
  5. Message-ID: <1992Aug30.193826.12921@bernina.ethz.ch>
  6. Sender: news@bernina.ethz.ch (USENET News System)
  7. Organization: Swiss Federal Institute of Technology (ETH), Zurich, CH
  8. References: <1992Aug26.110711.35901@uservx.plk.af.mil>
  9. Date: Sun, 30 Aug 1992 19:38:26 GMT
  10. Lines: 70
  11.  
  12. In article <1992Aug26.110711.35901@uservx.plk.af.mil> simonich@uservx.plk.af.mil writes:
  13. > I am a firm believer in specific examples for software.  Therefore,
  14. > for the (possible) help it may provide to other newbies here
  15. > is what I did to boot from my hard disk.  
  16.  
  17. Excellent idea !
  18.  
  19. > step 5:  uncompress and untar lilo 4 source and binaries into 
  20. >          /usr/src/lilo
  21.  
  22. You only need the binaries if you can't or don't want to compile the
  23. source. Note that the binaries won't work with the 0.97-pl2 kernel.
  24.  
  25. > step 6:  get a copy of dparam.com from lilo onto a dos readable
  26. >          disk
  27. > [...]
  28. > step 11:  Edit the /etc/lilo/disktab file to reflect your disks.
  29. >           mine looks like this:
  30.  
  31. /etc/lilo/disktab is only needed for SCSI disks, but it doesn't do any
  32. harm (if done properly) on non-SCSI disks.
  33.  
  34. > step 9:  make lilo.  edit the Makefile and change:
  35. >            
  36. > CC=cc    -->  CC=gcc
  37. > CPP=cpp  -->  $(CC) -E
  38. > [...]
  39.  
  40. Or link gcc to cc. I'll use $(CC) -E in the next release instead of
  41. cpp. It's probably a bit more portable that way.
  42.  
  43. > Step 13:  If that worked, prepare to boot from the hard disk:
  44. >
  45. >              cd /etc/lilo 
  46. >              ./lilo -b /dev/sda2 -i boot.b -v -v -v Image
  47.  
  48. You should create a little shell script with this command. First, because
  49. this may become rather complex if you add more boot images or operating
  50. systems to boot, and second, because you have to re-run it whenever you
  51. update your kernel or LILO.
  52.  
  53. You could also add the -c option to compact the map file. This makes
  54. booting a bit faster.
  55.  
  56. >                     HAVE BACKUP COPIES OF EVERYTHING.
  57. >                                           ^^^^^^^^^^
  58. >                     Read the READMEs
  59. >                     MAKE SURE YOU HAVE BACKUP COPIES OF EVERYTHING.
  60. >                                                         ^^^^^^^^^^
  61. >                     Make sure your backup copies (see above) are
  62. >                       on FLOPPY disks.
  63. >                     Can you REALLY regenerate your system from 
  64. >                       the FLOPPIES?
  65. >                     Ask questions BEFORE you make an irrevocable change
  66.  
  67. Very good points ! :-)
  68.  
  69. It's also a good idea to verify that your emergency system recovery disks
  70. that you've made long long ago and stored at a safe place (wet, dusty,
  71. spiders, ...) still work with your current setup and are actually still
  72. readable. It's no fun to be greeted by a kernel panic because of a bad
  73. sector on your only root image disk after you've messed up your hard disk
  74. boot sequence ...
  75.  
  76. - Werner
  77. -- 
  78.    _________________________________________________________________________
  79.   / Werner Almesberger, ETH Zuerich, CH      almesber@nessie.cs.id.ethz.ch /
  80.  / IFW A44  Tel. +41 1 254 7213                 almesberger@rzvax.ethz.ch /
  81. /_BITNET:_ALMESBER@CZHETH5A__HEPNET/CHADNET:_[20579::]57414::ALMESBERGER_/
  82.