home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / linux / 22794 < prev    next >
Encoding:
Text File  |  1993-01-05  |  2.5 KB  |  70 lines

  1. Path: sparky!uunet!spool.mu.edu!sol.ctr.columbia.edu!ira.uka.de!sbusol.rz.uni-sb.de!coli.uni-sb.de!mpi-sb.mpg.de!juergen
  2. From: juergen@mpi-sb.mpg.de (Juergen Stuber)
  3. Newsgroups: comp.os.linux
  4. Subject: Re: LILO 7 and LINUX 0.99.1
  5. Date: 5 Jan 1993 16:43:31 GMT
  6. Organization: Max-Planck-Institut f"ur Informatik
  7. Lines: 56
  8. Distribution: world
  9. Message-ID: <1icdrjINN1hh@coli-gate.coli.uni-sb.de>
  10. References: <72348@cup.portal.com>
  11. Reply-To: Juergen.Stuber@mpi-sb.mpg.de
  12. NNTP-Posting-Host: mpii02000.ag2.mpi-sb.mpg.de
  13.  
  14. In article <72348@cup.portal.com>, Dave-Nuttall@cup.portal.com (David Dave Nuttall) writes:
  15. |> I can make a LILO 7 floppy which boots fine, but attempts to
  16. |> make the hard drive bootable are failures.  Would appreciate
  17. |> insights other than RTFM/FAQs. 
  18. |> 
  19. |> My /etc/lilo/config is:
  20. |> install = /etc/lilo/boot.b
  21. |> image = /Image
  22. |>   label = lin-hd
  23. |>   root  = /dev/hda1
  24. |> 
  25. |> If I run:
  26. |> $ROOT/etc/lilo/lilo - C /etc/lilo/config $*
  27. |> 
  28. |> no errors are reported.
  29. |> Then I sync and reboot.
  30. |> The system reports NO OS.
  31.  
  32. Others have already suggested booting from /dev/hda, which works.
  33.  
  34. When I installed lilo, I read the docs and decided to boot from
  35. /dev/hda1, to avoid replacing my master boot sector.  I encountered
  36. the same problem, but being curious I went as far as disassembling
  37. the master boot record.  Everything looked perfect, except that upon
  38. booting I got 'Missing Operating System'.  Finally, I tracked down
  39. the problem to a slight inconsistency in the partition table.  For
  40. each partition, it records the beginning of a partition both in terms
  41. of its cylinder/head/sector and as the offset of the partition from
  42. the partition table in sectors. The cylinder/head/sector address is
  43. used by the master boot record for loading the boot sector and was
  44. set to 0/1/1, while linux apparently uses the offset, which was 1,
  45. corresponding to sector 0/0/2.
  46.  
  47.          Sector 1             Sector 2          Sector 3 ... Sector 17
  48. Head 0   Master Boot Record   Lilo Boot Sector  Data
  49. Head 1   MBR loaded this one
  50. ..
  51.  
  52. After changing the 0/1/1 to 0/0/2 everything now goes smoothly.
  53.  
  54. Notes:
  55. - neither DOS nor linux fdisk reported this inconsistency
  56. - I don't know who wrote this entry.  DOS partitions always start
  57.   at the beginning of a track, so maybe DOS fdisk 'corrected'
  58.   the table.
  59.  
  60. Hope this makes things clearer
  61.     be careful with your partition table
  62.         don't blame me if you blow up your disk
  63.  
  64. Jⁿrgen
  65.  
  66. -- 
  67. J"urgen Stuber <juergen.stuber@mpi-sb.mpg.de>
  68. finger juergen@mpii02000.mpi-sb.mpg.de for pgp key
  69. Ni f}r g{rna skriva p} svenska.
  70.