Skip to content

Instantly share code, notes, and snippets.

@stilvoid
Created April 26, 2019 22:32
Show Gist options
  • Save stilvoid/a287238e2564d97d310188201044a126 to your computer and use it in GitHub Desktop.
Save stilvoid/a287238e2564d97d310188201044a126 to your computer and use it in GitHub Desktop.
Mounting an Amiga hard drive

Run this to get the partition layout

parted /dev/sdX
u
b
p

Output looks like:

Number  Start        End          Size         File system  Name  Flags
 1      278528B      64061439B    63782912B    affs1        DH0   boot
 2      64061440B    2099544063B  2035482624B  affs1        DH1
 3      2099544064B  4009549823B  1910005760B  affs1        DH2
---

Now mount the partitions with:

```console
mount -t affs -o ro,loop,offset=START,sizelimit=SIZE /dev/sdX /mountpoint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment