home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PROGRAMS / UTILS / HARDDISK / BADCLU.ZIP / BADCLU.TXT < prev    next >
Encoding:
Text File  |  1990-04-25  |  2.6 KB  |  59 lines

  1. BADCLU is a disk utility that grovels through an MS-DOS disk's data
  2. area, marking bad clusters based on the number of retries it has to do
  3. to read the sector.
  4.  
  5. usage:
  6.  
  7.     badclu -d drive -p partition [-r retries][-n|w][-m]
  8.  
  9.     -d      drive is the physical hard disk number (0 or 1)
  10.     -p      partition is the logical partition number (0 or 1)
  11.     -r      retries is the number of retries to attempt before marking
  12.             a cluster as bad (default is 0)
  13.     -n      do NOT write the updated File Allocation Table (overrides -w)
  14.     -w      write FAT each time an entry is changed
  15.     -m      allow marking most recent cluster by keypress during disk read
  16.  
  17.     this program is placed in the public domain
  18.  
  19. This program has severe limitations:
  20.  
  21.     (1) it does very little error checking about the disk info itself.
  22.         running it on a non-backed up hard disk is probably stupid.
  23.         it won't modify FAT entries which are in use, so it's ok in that
  24.         respect, but if you have a weird disk layout, i do NOT take
  25.         responsibility. BADCLU should be run on a disk that can be 
  26.         sacrificed.
  27.  
  28.     (2) the handling of extended DOS partitions is extremely limited.
  29.         specifically, if a logical drive you specify is an extended
  30.         partition, you'll end up running the program on the first
  31.         logical drive in that partition. You can't go any further than
  32.         that.
  33.  
  34. WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! WARNING!
  35.  
  36. This program can alter your hard disk. If you CANNOT read C, you probably
  37. don't want to deal with it. This program should be compiled with Turbo
  38. C using the HUGE memory model. This is so pointers cannot have any
  39. weird bugs (if you're running this program, you have problems, so it
  40. does not matter if you waste the extra CPU cycles or not).
  41.  
  42. If I ***EVER*** find this program on a BBS without this file or without *ALL*
  43. the original source code, I ***WILL*** find the person responsible and have
  44. that person's head on a stick. This is a useful utility, but I have placed
  45. it in the public domain because I feel it will help people, and anyone using
  46. this program's features to destroy someone else's data will be caught,
  47. skinned alive slowly, and fed to my cat (the last two are concurrent processes).
  48.  
  49. BBS sysops should feel free to add remarks in the space provided.
  50. If you add something, fine. Please do NOT delete.
  51.  
  52. ****************************** SYSOP COMMENTS ******************************
  53.  
  54. ******************************  END  COMMENTS ******************************
  55.  
  56. program by J. Alan Eldridge, 11 Maiden Lane #4C, New York, NY 10038
  57.  
  58. <end of file>
  59.