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

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!wupost!csus.edu!csusac!citrus!ianj
  3. From: ianj@citrus.SAC.CA.US ( Ian Justman )
  4. Subject: Re: MSDOS need to be on /dev/hda1 ?
  5. References: <1992Dec11.000248.12027@iitmax.iit.edu>
  6. Organization: Citrus Grove Public Access ( 916 ) 381-5822    Sacramento CA.  USA
  7. Date: Sat, 12 Dec 1992 07:50:43 GMT
  8. X-Newsreader: Tin 1.1 PL4
  9. Message-ID: <Bz4z4L.I7s@citrus.SAC.CA.US>
  10. Lines: 117
  11.  
  12. thsswto@iitmax.iit.edu (William T. O'Connell) writes:
  13. : When I partitioned the harddrive on Linux, fdisk showed MS-DOS on
  14. : /dev/hda4. (I would expect it to be on hda1). Linux boots fine from
  15. : the boot disk created by doinstall :-). But lilo fails (see output below)
  16. : when installed on a floppy :-(.  
  17. : (In addition to lilo's output, I have Fdisk output attached from both 
  18. : DOS and Linux).
  19. : [Q1] Is lilo failing Is this because /dev/hda1 is linux's root partition 
  20. :      and not DOS??
  21.  
  22. If you're using the lilo install script, then you must change it
  23. to reflect the fact MSDOS resides on /dev/hda4 (remember to keep
  24. an alternate copy just in case you make a serious boo_boo...
  25.  
  26. : [Q2] If so, is there a simple way to fix this? (or do I need to start from
  27. :      scratch again, ouch).
  28.  
  29. I agree with the "ouch" part, but it's really easy to fix.  Hopefully...
  30. Depends on your setup.
  31.  
  32. : [Q3] If the partitions are OK, Any clues while lilo is failing (as
  33. :      he says with enthusiasm).
  34.  
  35. Check below for instructions on how to fix your system.  If I were you,
  36. I'd use the lilo .6 distribution.  Works like a one-each champ for me.
  37.  
  38. : Any help would be appreciated.
  39. : - Bill    wto@ihlpe.att.com
  40. :  /* You are not
  41. : expected to under-
  42. : stand this */
  43.  
  44. Try me!  :-)
  45.  
  46. : =================================================================
  47. : LILO OUTPUT
  48. : lilo loading ...
  49. :   .. selected vga output deleted ...
  50. : ttys0 at 0x03f8 (irq = 4 ) is a 16450
  51. : ttys1 at 0x02f8 (irq = 3 ) is a 16450
  52. : ttys2 at 0x03e8 (irq = 4 ) is a 16450
  53. : 8 virtual consoles
  54. : lp_init: lp1 exists (0)
  55. : scsi: 0 hosts
  56. : scsi: detected 0 SCSI disks 0 tapes 0 CD-ROM drives total
  57. : memory: 7336/8192k avail (424k kernel, 384k reserved, 48k data)
  58. : floppy drives: fd0 is 1.2m
  59. : floppy drives: fd1 is 1.44m
  60. : sockinit: initializing family 1 (AF_UNIX)
  61. : sockinit: initializing family 2 (AF_UNIX)
  62. : loopback devices init
  63. : warning WD8013 board not found at i/o = 280
  64. : hda:
  65. :  part 1 start 219488  size 20672  and 240160          <- root
  66. :  part 2 start 240160  size 38832  and 272991          <- swap
  67. :  part 3 start 272992  size 142272 and 415263
  68. :   logical part 5 start 272993 size 130111 and 403103  <- /usr
  69. :   logical part 6 start 403105 size 12159  and 415203  <- /tmp 
  70. :  part 4 start 38 size 219450 and 219487               <- DOS
  71. : partition table ok
  72. : MINIX_fs: unable to read superblock
  73. : EXT_fs: unable to read superblock
  74. : MSDOS bread failed
  75. : kernel panic: unable to mount root 
  76.  
  77. You might want to try the following:
  78.  
  79. rdev (or rootdev) [imagefile] [rootsystem]
  80.  
  81. where [imagefile] is the boot image you want to modify and [rootsystem]
  82. is the partition that root is mounted on.  I suggest that once you give
  83. this command that you rerun LILO so it knows about the new modifications
  84. to your kernel.  And just for curiosity's sake, are you running lilo's
  85. install script?
  86.  
  87. BTW, only the first line or so is actual "LILO output".  The
  88. rest is output by the kernel at boot-time.
  89.  
  90. : OUTPUT FROM FDISK ON LINUX
  91. : Command (m for help): p
  92. :  
  93. : Disk /dev/hda: 16 heads, 38 sectors, 683 cylinders
  94. : Units = cylinders of 608 * 512 bytes
  95. :  
  96. :    Device Boot  Begin   Start     End  Blocks   Id  System
  97. : /dev/hda1         362     362     395   10336   81  Linux/MINIX <- (root) (10M) 
  98. : /dev/hda2         396     396     449   16416   82  Linux swap  <- swap   (16M)
  99. : /dev/hda3         450     450     683   71136    5  Extended
  100. : /dev/hda4   *       1       1     361  109725    6  DOS 16-bit >=32M     (107M)
  101. : /dev/hda5         450     450     663   65055+  81  Linux/MINIX   <- /usr (64M)
  102. : /dev/hda6         664     664     683    6079+  81  Linux/MINIX   <- /tmp (5M)
  103. : =============================================================
  104. : MS-DOS FDISK OUTPUT
  105. : Partition    Status    Type        Mbytes
  106. : C: 1          A     PRI DOS        107
  107. :    2              NON-DOS        10
  108. :    3              NON-DOS        16
  109. :    4              EXT DOS        69    <==== this has /usr and /tmp
  110. :                               why does it say DOS
  111.  
  112. Ahhhh, the joys of Micky$haft...  :-)
  113.  
  114. Actually, this is indicating the size of your extended partition.  It
  115. apparently doesn't recognize non-dos logical partitions.  Also, I guess
  116. it blithely assumes that ANY extended NO MATTER WHAT OPERATING SYSTEM CRE-
  117. ATED IT was created by DOS.  I wouldn't worry about it.
  118. -- 
  119. Born to void warranties!    ianj@ijpc.UUCP
  120.