home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / bsd / 3098 < prev    next >
Encoding:
Internet Message Format  |  1992-07-29  |  2.0 KB

  1. Path: sparky!uunet!mcsun!sunic!dkuug!flshub!phk
  2. From: phk@data.fls.dk (Poul-Henning Kamp)
  3. Newsgroups: comp.unix.bsd
  4. Subject: 386BSD 0.1, disklabel problem isolated !
  5. Message-ID: <1992Jul26.080147.4506@data.fls.dk>
  6. Date: 26 Jul 92 08:01:47 GMT
  7. Organization: FLS Data A/S, Valby, Copenhagen, Denmark.
  8. Lines: 43
  9.  
  10. I have a Western Digital WDC 4200 "Piranha" disk, it's an IDE of 202 Mb.
  11. The real physical layout is 1263 cyl, 8 heads, 41 sectors.  But to keep
  12. MS/DOS happy the drive reports 967 cyl, 12 heads 35 sect.  If I set the
  13. BIOS to the real values 1263,8,41 and create a 15 Mb DOS partition,
  14. install 386BSD 0.1 from the dist.fs things are OK until I try to boot the
  15. 386BSD from the disk.
  16.  
  17. It seems from the debug that the disklabel IS found, but then the drive 
  18. is probed and the cylinder count is clipped to 967, though the heads and the
  19. sect counts is left untouched.
  20.  
  21. Since a lot of this translation stuff is going on, I think it is important
  22. to get this handled right:
  23.  
  24.     1) Use BIOS-values and boot-block to find disklabel.
  25.  
  26.     2) Use values in disklabel, unless the drive tells us otherwise:
  27.  
  28.     if(drive.sect == label.sect && drive.head == label.head)
  29.         label.cyl = drive.cyl;
  30.  
  31. In my experience this will solve the most widespread problems with
  32. ESDI/IDE drives:
  33.  
  34.     1) drives simply not matched by the BIOS, in this case the disklabel
  35.        can containe the right values, supported by the drives own idea.
  36.  
  37.     2) drives crippled by manufactures to match a "VENDOR_X"-67 Mb drive,
  38.        even though the drive is 84 Mb, the right cylinder count can be picked
  39.        up from the drive.
  40.  
  41.     3) cases like mine where even the bloddy drive is exposed to the famous
  42.        MS-DOS brain-damage...
  43.  
  44. As soon as I can I'll produce a patch for this.
  45.  
  46. Don't forget to enjoy other aspects of life, even though you have got your
  47. own unix box at home now !  :-)
  48. -- 
  49. phk@data.fls.dk          || If you can't join 'em -- beat 'em !
  50. Poul-Henning Kamp      ||            the Danish foreign minister
  51. FLS DATA A/S          ||
  52. Phone: (+45) 36 18 12 35  ||
  53.