README.mkdosfs 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. mkdosfs - Make DOS file system utilty.
  2. I wrote this, partially to complement the dosfsck utility written by Werner
  3. Almesberger (who graciously gave me some pointers when I asked for some
  4. advice about writing this code), and also to avoid me having to boot DOS
  5. just to create data partitions (I use Linux to back up DOS :-) ).
  6. The code is really derived from Remy Card's mke2fs utility - I used this as a
  7. framework, although all of the file system specific stuff was removed and the
  8. DOS stuff inserted. I believe originally mke2fs was based on Linus' mkfs
  9. code, hence the acknowledgements in the source code.
  10. Neither Remy nor Linus have had any involvement with mkdosfs, so if there are
  11. any bugs they're almost certainly "all my own work".
  12. The code has been available for ftp since 1st September 1993, and I have yet
  13. to receive any bug reports from users. I don't know of any bugs, but if you
  14. do find a bug or have any constructive comments, please mail me!
  15. The only bug I found with version 0.1 was an obscure fault that could lead
  16. to an invalid (for MS-DOS, not Linux's dos fs) number of sectors used in the
  17. file allocation table(s).
  18. Dave Hudson
  19. dave@humbug.demon.co.uk
  20. FAT32 support
  21. =============
  22. mkdosfs now can also create filesystems in the new FAT32 format. To do
  23. this, give mkdosfs a "-F 32" option. FAT32 isn't selected
  24. automatically (yet), even if very large clusters are needed with
  25. FAT16. With FAT32 you have two additional options, -R to select the
  26. number of reserved sectors (usually 32), and -b to select the location
  27. of the backup boot sector (default 6). Of course such a backup is
  28. created, as well as the new info sector. On FAT32, the root directory
  29. is always created as a cluster chain. Sorry, there's no switch to
  30. generate an old static root dir.
  31. One bigger bug fix besides FAT32 was to reject filesystems that need a
  32. 16 bit FAT to fit all possible clusters, but the bigger FAT needs some
  33. more sectors, so the total number of clusters drop below the border
  34. where MS-DOS expects a 12 bit FAT. So such filesystems would be FAT16,
  35. but interpreted as FAT32 by DOS. The fix is to reduce filesystem size
  36. a bit.
  37. - Roman <roman@hodek.net>