home *** CD-ROM | disk | FTP | other *** search
/ Enigma Amiga Life 113 / EnigmaAmiga113CD.iso / software / manutenzione / rdbrecov / rdbrecov.readme < prev   
Text File  |  2000-06-03  |  9KB  |  260 lines

  1. Short:    Search lost PFS/SFS partitions on a harddisk
  2. Uploader: thomas-rapp@t-online.de (Thomas Rapp)
  3. Author:   thomas-rapp@t-online.de (Thomas Rapp)
  4. Type:     disk/salv
  5. Version:  0.6
  6.  
  7.  
  8. WARNING: This program was only tested on my machine with my
  9.          harddisks. There is no guarantee that it runs on
  10.          others. I am not responsible for any damage.
  11.          Use it on your own risk.
  12.  
  13.  
  14. Use RDBrecov if you lost the RDB (partitioning information) of your
  15. harddisk.
  16.  
  17. RDBrecov searches an entire harddisk for partitions. It can handle PFS2,
  18. PFS3, AFS and SFS partitions.
  19.  
  20. Since V0.6 it also finds FFS partitions. As FFS needs the partition size
  21. for calculating the rootblock position, first all possible FFS bootblocks
  22. are stored in a table and in a second pass the rootblock positions are
  23. calculated and checked. FFS handling can be switched off by an option.
  24.  
  25. RDBrecov lists the partitions found into the Shell window and optionaly
  26. into a log file. With this information you can use HDtoolbox (or another
  27. partitioning tool) to reconstruct your partitions.
  28.  
  29. Harddisks larger than 4GB can be accessed, if the device driver is
  30. either NSD or TD64 compatible. SCSI-Direct is not supported.
  31.  
  32.  
  33. Installation
  34. ============
  35.  
  36. Copy the RDBrecov executable onto your Emergency Disk. If you have 
  37. none, you can use the AmigaOS install disk.
  38. With OS3.5 there comes an option to create an Emergency Boot Disk.
  39. You should really use it. And make sure, your Emergency Disk works !
  40.  
  41. Note that you need a partitioning tool (e.g. HDToolBox) too ! 
  42.  
  43. As RDBrecov can only be started from Shell, be sure to have a Shell
  44. icon on your Emergency Disk. (IIRR the AmigaOS install disk has
  45. none).
  46.  
  47.  
  48. Usage
  49. =====
  50.  
  51. Most important rule after a harddisk crash: DON'T FORMAT ANYTHING !!!
  52. Formatting will destroy data. Even if Quick-Format is used.
  53.  
  54. Boot with your Emergency disk.
  55.  
  56. First of all you have to verify some info about your Harddisk.
  57.  
  58. You must know the device name of your harddisk driver. Amiga default is
  59. scsi.device. Other manufacturers use other names like cybscsi.device.
  60.  
  61. Please start your favorite partitioning tool (e.g. HDToolBox). You
  62. should use the same tool that you used when the harddisk was first
  63. partitioned !
  64. Maybe you have to adjust some tooltypes to use the right device driver.
  65.  
  66. Now choose your harddrive from the list. It should be shown as unknown
  67. in the list. Remember its Address, this is the unit number needed by
  68. RDBrecov.
  69.  
  70. Now enter the install dialog (e.g. click on Install Drive). Ignore
  71. requesters stating that this would destroy all data. Let HDToolBox read
  72. the configuration from disk (e.g. click on Read Configuration).
  73.  
  74. Now write down the data from the fields Cylinders, Blocks per Cylinder
  75. and Bytes per Block.
  76.  
  77. Click on Cancel and leave HDToolbox.
  78.  
  79. You should now have the following information (Example):
  80.  
  81.               Device: scsi.device
  82.                 Unit: 0
  83.            Cylinders: 7752
  84. Blocks per Cylinders: 1008
  85.      Bytes per Block:  512
  86.  
  87. Now open a Shell window and start RDBrecov. 
  88.  
  89. Enter RDBrecov <device> <unit> s <bytes per blk> c <cyls> cs <blks per cyl>
  90.  
  91. Example: RDBrecov scsi.device 0 s 512 c 7752 cs 1008
  92.  
  93. You should get an output like that:
  94.  
  95. Trying to open scsi.device unit 0
  96. SectorSize   = 512      (overridden by parameter: 512)
  97. Cylinders    = 7814016  (overridden by parameter: 7752)
  98. CylSectors   = 1        (overridden by parameter: 1008)
  99. PFS Bootblock found at cylinder    2: Size =  204 cyls DosType=50465301 Name="Workbench"
  100. PFS Bootblock found at cylinder  206: Size =  407 cyls DosType=50465301 Name="Prog"
  101. PFS Bootblock found at cylinder  613: Size =  417 cyls DosType=50465301 Name="Internet"
  102. PFS Bootblock found at cylinder 1030: Size =  894 cyls DosType=50465301 Name="Games"
  103. PFS Bootblock found at cylinder 1924: Size = 1016 cyls DosType=50465301 Name="Pictures"
  104. PFS Bootblock found at cylinder 2940: Size =  570 cyls DosType=50465301 Name="Graphic"
  105. PFS Bootblock found at cylinder 3510: Size =  976 cyls DosType=50465301 Name="Music"
  106. PFS Bootblock found at cylinder 4486: Size =  693 cyls DosType=50465301 Name="cache"
  107. PFS Bootblock found at cylinder 5179: Size = 1627 cyls DosType=50465301 Name="Work"
  108. PFS Bootblock found at cylinder 6806: Size =  611 cyls DosType=50465301 Name="Emulator"
  109. PFS Bootblock found at cylinder 7417: Size =  335 cyls DosType=50465301 Name="Temp"
  110. Reading cylinder  7752
  111. Complete.
  112.  
  113. Now reenter HDToolBox and install your harddisk. Then use the Partition
  114. Drive dialog to recreate your partitions. You can enter the values from
  115. "at cylinder" and "Size" directly into the gadgets "Start Cyl" and
  116. "Total Cyl". Be sure not to define overlapping partitions !
  117. If you encounter overlappings, you'll have to decide which ranges are
  118. correct from your memory.
  119. If the "Size =" portion is 0, just subtract the "at cylinder" of this
  120. partition from that of the next one.
  121. (One trick is to start at the end of the list and only enter the "Start 
  122. Cyl" value. The size then is calculated by HDToolBox. This assumes that
  123. you don't have unused space on the harddisk.)
  124.  
  125. NOTE: as FFS partitions are recognized in a second pass, their infos are
  126. behind the others in the log file. You might want to sort the log file
  127. before starting to use HDToolBox.
  128.  
  129. If you use PFS or SFS, first follow the instuctions in the corresponding
  130. manual in order to install your filesystem on the harddisk and determine
  131. which data has to be used for Mask, MaxTransfer, Block size  and DosType.
  132. Use the DosType listed by RDBrecov only if the DosType from the manual
  133. does not work !
  134.  
  135. Now remove the emergency disk and reboot. Everything should magically be
  136. there again. If one ore more partitions don't work, verify if you have
  137. installed the right filesystem, DosType, partition borders etc.
  138. Again: DO NOT FORMAT ANYTHING !
  139.  
  140. You may also experiment with the values for cylinders and blocks per
  141. cylinder. Different releases of HDtoolBox show different values here. 
  142. You have to use the same values that were used when the harddisk was 
  143. first partitioned.
  144. HINT: the first partition almost always starts at cylinder 2.
  145.  
  146. Hint for freaks: if all partitions start on cylinder numbers which are
  147. divisible by 2, you can duplicate the CylSectors value and half the
  148. Cylinders value. By this the harddisk scan will be twice as fast.
  149. Remember to duplicate the cylinder numbers when using HDToolBox
  150. afterwards.
  151.  
  152. If you encounter problems or mystic error messages you can try to mail
  153. me for assistance. But there is no guarantee that I can or want to help
  154. you.
  155.  
  156.  
  157. Parameters
  158. ==========
  159.  
  160. DEVICE/A           The device driver of your harddisk (e.g. scsi.device)
  161.  
  162. UNIT/A/N           The unit of your harddisk (e.g. 0)
  163.  
  164. INFO/S             If specified, RDBrecov only shows infos about the 
  165.                    harddisk and does not search partitions.
  166.  
  167. FILE               Filename of a log file. If specified RDBrecov also writes
  168.                    the partition data into this file.
  169.  
  170. S=SECTORSIZE/N/K   Override infos of TD_GETGEOMETRY. May be necessary if 
  171. C=CYLINDERS/N/K    TD_GETGEOMETRY supplies different infos than HDToolBox.
  172. CS=CYLSECTORS/N/K
  173.  
  174. NODOS=NOFFS/S      Don't list FFS rootblocks.
  175.  
  176. ONLYFFS/S          List only FFS rootblocks.
  177.  
  178. MAXPART/N/K        Maximum number of partitions. Default is 100. Increase
  179.                    this if you see the message "More partitions than table 
  180.                    entries !"
  181.  
  182. START=STARTCYL/N/K Start searching at this cylinder. Can be used if you
  183.                    interrupted the search with CRTL-C or if you have a
  184.                    very large partition and aproximately know where the
  185.                    next one starts.
  186.                    NOTE: you cannot restart RDBrecov if you need FFS
  187.                          partition information !
  188.  
  189.  
  190. NSD/S              Force using NSD style commands.
  191.  
  192. TD64/S             Force using TD64 style commands.
  193.  
  194.  
  195.  
  196. Error messages
  197. ==============
  198.  
  199. OpenDevice failed
  200.  
  201.         The specified device name / unit combination could not be
  202.         opened. Verify these values.
  203.  
  204.  
  205. cannot create IORequest
  206. cannot create reply port
  207.  
  208.         Usualy too less memory. Reboot and retry.
  209.  
  210.  
  211. device does not support NSD or TD64 for harddisks >4GB
  212.  
  213.         Seems that you use a device driver that is not ready for 
  214.         Harddisks larger than 4GB but uses SCSI-Direct for them.
  215.         As I don't know about SCSI-Direct this is not implemented
  216.         (yet).
  217.  
  218. TD_READ Error = <n> (text)
  219.  
  220.         Read error on the disk. <rc> is the code returned by the
  221.         DOS-device. If known, 'text' is a short description of the
  222.         error.
  223.  
  224.  
  225. TD_GETGEOMETRY Error = <n> (text)
  226.  
  227.         The device does not support the TD_GETGEOMETRY command. <rc> is
  228.         the code returned by the device. If known, 'text' is a short
  229.         description of the error.
  230.  
  231.  
  232. not enough memory for buffers
  233.  
  234.         RDBrecov needs memory for at least 3 disk blocks.
  235.  
  236.  
  237. More partitions than table entries !
  238.  
  239.         Use the MAXPART parameter to increase the number of table entries
  240.         or use the NOFFS switch if you do not need FFS partitions.
  241.  
  242.  
  243. Restrictions / Bugs
  244. ===================
  245.  
  246. - A FFS partition is only recognized if it is immediately followed by
  247.   another known partition. Otherwise the rootblock cannot be found.
  248.   (Although those partitions are not logged, the start cylinder is 
  249.   written to the shell window as a possible FFS partition.)
  250.  
  251.  
  252.  
  253. History
  254. =======
  255.  
  256. V0.5    Fixed TD_GETGEOMETRY handling. Now using dg_TotalSectors instead
  257.         of dg_Cylinders.
  258.  
  259. V0.6    RDBrecov can now handle FFS partitions too.
  260.