home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / bsd / 4501 < prev    next >
Encoding:
Text File  |  1992-08-20  |  4.4 KB  |  99 lines

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!cs.utexas.edu!wupost!sdd.hp.com!caen!sol.ctr.columbia.edu!ira.uka.de!math.fu-berlin.de!unidui!du9ds3!veit
  3. From: veit@du9ds3.uni-duisburg.de (Holger Veit)
  4. Subject: Re: Endless boot cycle- suggestions?
  5. References: <Aug.14.12.34.42.1992.8037@action.rutgers.edu> <45240001@hpycla.kobe.hp.com> <Aug.18.17.41.42.1992.4915@action.rutgers.edu> <1072@galileo.rtn.ca.boeing.com>
  6. Date: 20 Aug 92 16:02:05 GMT
  7. Reply-To: veit@du9ds3.uni-duisburg.de
  8. Organization: Uni-Duisburg FB9 Datenverarbeitung
  9. Sender: @unidui.uni-duisburg.de
  10. Message-ID: <veit.714326525@du9ds3>
  11. Lines: 86
  12.  
  13. In <1072@galileo.rtn.ca.boeing.com> dmp3592@galileo.rtn.ca.boeing.com (Dean M. Phillips) writes:
  14.  
  15. >A disk drive which does geometry translation will hopelessly confuse
  16. >386BSD.
  17.  
  18. Sometimes true, sometimes false. See below.
  19.  
  20. >Background:
  21.  
  22. >MessDOS has a hard limit of 10 bits for a cylinder number.  This
  23. >prevents MessDOS from accessing cylinders beyond 1023.  Most large hard
  24. >disks have more than 1024 cylinders.
  25.  
  26. >So, to make these disks useable with MessDOS, the disk drive
  27. >manufacturers invented geometry translation.  The way this works is the
  28. >drive says that it has more heads than it really does, and less
  29. >cylinders than it really does, so that the total number of sectors
  30. >comes out the same but with less than 1024 cylinders.  When MessDOS
  31. >asks for a particular track, sector, and cylinder, the drive silently
  32. >translates this to the real location.  "Brain damage begets brain
  33. >damage."
  34.  
  35. Ok
  36.  
  37. >386BSD gets the geometry and its partition info from the partition
  38. >table and then TURNS OFF GEOMETRY TRANSLATION.  If geometry translation
  39. >was on in the first place, 386BSD will get hopelessly lost, fail to
  40. >find its disk label and panic.
  41.  
  42. I just wonder why on my Fujitsu 262XT IDE drive both OS/2 and 386bsd live
  43. without any problems. Even the Mtools worked after I told them the 
  44. geometry of my OS/2 FAT+Extd. partitions.
  45. The Fuji is a 420 MB IDE drive with 1001 cylinders, 13 heads and 63 sectors
  46. (written down from memory), but this is certainly translation. The only
  47. thing I did was patching BIOS ROMs such that there is a real drive entry
  48. in it (the Phoenix BIOS I used was so outdated that it had no user configurable
  49. entry :-( but it has at least been proven to be quite bug free for the
  50. last years).
  51.  
  52. >Solution:
  53.  
  54. >Make sure that geometry translation is turned off.  I was able to do
  55. >this by running setup, specifying drive type 47 and keying in the real
  56. >number of heads, etc.
  57.  
  58. Most IDE's take and use the geometry they were told to have when they are 
  59. initialized by the BIOS, but I would not count on this. At least I didn't 
  60. succeed in persuading my Fuji to use a different geometry.
  61. In particular, many IDE drives use zone bit recording to get most out 
  62. of the disks. They have a number of cylinder areas with different 
  63. numbers of sectors. I am quite curious how you enter this information 
  64. in entry 47. Of course, you may take the minimum values, but you will
  65. lose capacity.
  66.  
  67. >If you don't know what your disk's real geometry is, you can find out
  68. >with a little hacking.  I will post a patch when I get mwrite to work.
  69.  
  70. >Disclaimer:
  71.  
  72. >Not all reboot cycles are caused by geometry translation.
  73.  
  74. Certainly not. I believe that many problems are caused by non-standard
  75. drive commands. Not all the additional IDE commands (published in one of
  76. the latest Byte magazines, anyone has the reference?) are supported by
  77. every drive. For instance 386bsd uses one of these to query the disk 
  78. type which is printed out at boot time. I don't know what a "non-standard" 
  79. drive will do if it does not support this command. Of course, there may be
  80. other incompatibilities.
  81.  
  82. >On my system, it would still work with geometry translation if I let
  83. >386BSD have the whole disk.  This is because the disk label is located
  84. >on cylinder 0, head 0, sector 2 for both the real and the translated
  85. >geometry.
  86. >-- 
  87. >----------------------------------------------------------------------
  88. >#include <standard_disclaimer.h>
  89. >Dean M. Phillips                                        (206) 393-9333
  90. >Boeing Commercial Airplane Group            dmp3592@galileo.boeing.com
  91.  
  92. Holger
  93.  
  94. -- 
  95. |  |   / Holger Veit             | INTERNET: veit@du9ds3.uni-duisburg.de
  96. |__|  /  University of Duisburg  | BITNET: veit%du9ds3.uni-duisburg.de@UNIDO
  97. |  | /   Dept. of Electr. Eng.   | "No, my programs are not BUGGY, these are
  98. |  |/    Inst. f. Dataprocessing |          just unexpected FEATURES"
  99.