-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
40 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/bin/bash | ||
|
||
# Creates a random Amiga ADF, writes the first three cylinders of a disk, | ||
# dumps those cylinders back, and checks against original ADF. | ||
|
||
# Write SCP, Read SCP | ||
dd if=/dev/urandom of=a.adf bs=512 count=1760 | ||
disk-analyse -e 2 a.adf b.adf | ||
disk-analyse a.adf a.scp | ||
python3 gw.py write --ecyl=2 a.scp | ||
python3 gw.py read --revs=1 --ecyl=2 b.scp | ||
disk-analyse -e 2 b.scp c.adf | ||
diff b.adf c.adf | ||
md5sum b.adf c.adf | ||
rm -f a.adf b.adf c.adf a.scp b.scp | ||
|
||
# Write IPF, Read HFE | ||
dd if=/dev/urandom of=a.adf bs=512 count=1760 | ||
disk-analyse -e 2 a.adf b.adf | ||
disk-analyse a.adf a.ipf | ||
python3 gw.py write --ecyl=2 a.ipf | ||
python3 gw.py read --revs=1 --ecyl=2 b.hfe | ||
disk-analyse -e 2 b.hfe c.adf | ||
diff b.adf c.adf | ||
md5sum b.adf c.adf | ||
rm -f a.adf b.adf c.adf a.ipf b.hfe | ||
|
||
# Write HFE, Read HFE | ||
dd if=/dev/urandom of=a.adf bs=512 count=1760 | ||
disk-analyse -e 2 a.adf b.adf | ||
disk-analyse a.adf a.hfe | ||
python3 gw.py write --ecyl=2 a.hfe | ||
python3 gw.py read --revs=1 --ecyl=2 b.hfe | ||
disk-analyse -e 2 b.hfe c.adf | ||
diff b.adf c.adf | ||
md5sum b.adf c.adf | ||
rm -f a.adf b.adf c.adf a.hfe b.hfe | ||
|