|Michael Steil a888967231 README updates; removed redundant history from C file||1 week ago|
|.gitignore||1 week ago|
|Makefile||1 week ago|
|README.md||1 week ago|
|extract-adf.c||1 week ago|
extract-adf is a tool that extracts files from (broken) Amiga OFS ADF/ADZ/DMS disk images.
It will create all files with the correct directory hierarchy and the correct timestamps on the local filesystem.
It is specially optimized for broken filesystems, and can recover as much as possible even on those. One use case is to extract the leftover files on the Kickstart 1.0 disk.
Extract-ADF 4.0 Originally (C)2008 Michael Steil with many further additions by Sigurbjorn B. Larusson DMS extraction code (C) 1998 David Tritscher Usage: ./extract-adf [-D] [-a] [-z] [-d] [-s <startsector>] [-e <endsector>] [-o <outputfilename>] <adf/adz/dmsfilename> -a will force ADF extraction (if the filename ends in adf ADF will be assumed -z will force ADZ extraction (if the filename ends in adz or adf.gz ADZ will be assumed -d will force DMS extraction (if the filename ends in dms DMS format will be assumed -D will activate debugging output which will print very detailed information about everything that is going on -s along with an integer argument from 0 to 1760 (DD) or 3520 (HD), will set the starting sector of the extraction process -e along with an integer argument from 0 to 1760 (DD) or 3520 (HD), will set the end sector of the extraction process -o along with an outputfilename will redirect output (including debugging output) to a file instead of to the screen Finally the last argument is the ADF/ADZ or DMS filename to process The defaults for start and end sector are 0 and 1760 respectively, this tool was originally created to salvage lost data from kickstart disks (which contain the kickstart on sectors 0..512) in order to skip the sectors on kickstart disks which might contain non OFS data, set the start sector to 513 To use this tool on a HD floppy, the end sector needs to be 3520 If you get a Bus error it means that you specificed a non-existing end sector This program does not support FFS floppies(!), it only supports OFS style Amiga Floppies Happy hunting!
Original version for extracting the leftover files on the Kickstart 1.0 disk.
Hack to restore the file path and to pass the adf file and start sector/end sector used as an argument. This makes it possible to use on any OFS adf file and on HD OFS floppies and to tune where to start and end the process for any other purpose
Orphaned files still end up where ever you launched the binary, you’ll have to manually move them into the structure if you know where the files should be located
Killed all output unless DEBUG is defined as 1 or higher, you can easily enable it (along with even more debugging output from all the stuff I added) by defining DEBUG as 1…