home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / linux / 20275 < prev    next >
Encoding:
Text File  |  1992-12-14  |  2.1 KB  |  52 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!Germany.EU.net!rz.uni-hildesheim.de!agsc!veeble.han.sub.org!gkminix!gero
  3. From: gero@gkminix.han.de (Gero Kuhlmann)
  4. Subject: Re: MSDOS need to be on /dev/hda1 ?
  5. References: <1992Dec11.000248.12027@iitmax.iit.edu>
  6. Organization: gkminix, Hannover, Germany
  7. Date: Sun, 13 Dec 92 16:49:16 GMT
  8. Message-ID: <1992Dec13.164916.1759@gkminix.han.de>
  9. Lines: 41
  10.  
  11. thsswto@iitmax.iit.edu (William T. O'Connell) writes:
  12. > [Q1] Is lilo failing Is this because /dev/hda1 is linux's root partition 
  13. >      and not DOS??
  14.  
  15. Probably not.
  16.  
  17. > [Q2] If so, is there a simple way to fix this? (or do I need to start from
  18. >      scratch again, ouch).
  19.  
  20. Probably yes (see below).
  21.  
  22. > [Q3] If the partitions are OK, Any clues while lilo is failing (as
  23. >      he says with enthusiasm).
  24.  
  25. I suppose that you forgot to say lilo about the disk on which the root file
  26. system is located. As is obvious from the lilo output you attached to your
  27. posting the kernel tries to mount the root file system according to the
  28. disk device number compiled into it or setup by lilo, which fails because there
  29. is no LINUX partition (default is part.2 which is swap on your system). The
  30. following is a copy of my lilo-install script to show how to tell lilo about
  31. the root disk:
  32.  
  33. #/bin/sh
  34. cd /etc/lilo
  35. [...]
  36. /etc/lilo/lilo -b /dev/hda2 -c -d 5 -i /etc/lilo/boot.b $* \
  37.     linux=/etc/lilo/Image,/dev/hda2 \
  38.     old-linux=/etc/lilo/Image.backup,/dev/hda2 \
  39.     msdos=/etc/lilo/chain.b+/dev/hda1@/dev/hda
  40.  
  41. My Linux root partition is on /dev/hda2 and the DOS partition is on /dev/hda1.
  42. I boot directly from the hard disk with a self-written boot utility in the MBR
  43. so I setup lilo to install the lilo-boot block into /dev/hda2. Skip this if you
  44. want another boot policy. The important line is the one starting with "linux="
  45. which sets the active linux image and root disk.
  46.  
  47. Hope this helps. gero.
  48. -- 
  49. Gero Kuhlmann            Zerberus:  G.KUHLMANN@A-LINK-H.ZER
  50. Donarweg 4            SubNet:    gero@gkminix.sub.org
  51. D-3000 Hannover 51              IN:        gero@gkminix.han.de
  52.