home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / bsd / 3240 < prev    next >
Encoding:
Text File  |  1992-07-30  |  2.3 KB  |  49 lines

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!decwrl!access.usask.ca!regina!udevdiv!roe
  3. From: roe@Unibase.SK.CA (Roe Peterson)
  4. Subject: SCSI drive geometry woes...
  5. Message-ID: <1992Jul30.220055.15150@Unibase.SK.CA>
  6. Organization: Unibase Telecom Ltd.
  7. Date: Thu, 30 Jul 1992 22:00:55 GMT
  8. Lines: 39
  9.  
  10. Well, 386BSD is up and running, and working well (except for the occasional
  11. hangup which I'm attributing to the very small swap space).
  12.  
  13. I've just received a new fujitsu 640MB SCSI disk drive, and I'd like to take
  14. full advantage of the UFS cylinder grouping scheme.
  15.  
  16. However, I'm having some major problems.  It seems that 386BSD does not
  17. care about the disk geometry specified in the disk label during boot.
  18.  
  19. With an adaptek 1542B controller, the disk BIOS reports a geometry of
  20. 640 cylinders, 64 heads, and 32 sectors.  The _actual_ drive geometry
  21. is 1658 cylinders, 15 heads, and 53 sectors/track, with 3 sectors/cylinder
  22. spared for alternates, with 15 cylinders also spared (giving 1643 cylinders).
  23.  
  24. I've used a little fdisk-like utility (called pfdisk) to change the drive
  25. geometry, and lay out partitions on cylinder boundaries.  I actually had
  26. to lie through my teeth here, since the master disk partition table has
  27. no concept of spares/cylinder;  hence, I've told the fdisk partition
  28. table that the drive has 1642 cylinders of 24 heads with 33 sectors,
  29. for a total of 792 blocks/cylinder ((15*53)-3).
  30.  
  31. Then, I've created a disktab entry with the same lie in place, and
  32. created the disklabel for the driver.  Everything looks good so far.
  33. When I run newfs, I override the defaults from the disklabel, and give
  34. it the _real_ drive geometry, as well as the number of spares/cylinder.
  35. Makes the file system OK, and the _sound_ seems to indicate that I've
  36. got things laid out correctly on cylinder boundaries.
  37.  
  38. Mount the new disk (/dev/as1a), proceed to copy the whole distribution
  39. from drive zero.  Everything looks just fine.
  40.  
  41. Then, I re-address the new drive to unit 0, and attempt to boot.  I get
  42. as far as checkpoint e, and the whole system reboots.
  43.  
  44. My theory is that some (or all) of the bios drive geometry is being
  45. paid attention to by boot, regardless of the information in the disk label.
  46.  
  47. Anyone got any comments or ideas?  I think this would be a big disk
  48. performance win if I can get it working correctly.
  49.