Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Physical host disks

Copperline can attach real storage devices connected to your host system -- such as CompactFlash cards, SD cards, USB flash drives, or external hard drives -- directly to the emulated machine. The Amiga accesses the medium directly, preserving the Rigid Disk Block (RDB), partition tables, and filesystem structures.

Listing host disks

To view connected storage devices:

copperline --list-disks

Example output:

Host disks (name one to --host-disk, or as [[host_disk]] device):
  sdb        Generic MassStorageClass (31.9 GB)
  sdc        ATA Samsung SSD 870 (500.1 GB) [internal]
  sda        ATA Ubuntu Linux-0 S (68.7 GB) [system disk, internal, mounted: /]  -- cannot be used

Safety protections:

Attaching a disk

In the launcher

  1. Go to Storage -> Host Disk.

  2. Select the target disk from the list and choose its controller attachment point.

  3. Click Mount. When prompted by the operating system, authorize disk access.

From the command line

# Read-only mount (recommended for initial verification):
copperline --model A1200 --fast 8M KICK31.ROM --host-disk-read-only sdb

# Read-write mount:
copperline --model A1200 --fast 8M KICK31.ROM --host-disk sdb

In copperline.toml

[[host_disk]]
device = "sdb"                 # Device node or identifier
fingerprint = "v1-..."         # Hardware fingerprint generated by launcher
attach = "ide-master"          # Attachment point (see table below)
read_only = true               # Default is true for data safety

Attachment options

ValueController and channel
ide-masterBuilt-in Gayle / A4000 IDE Master (Default)
ide-slaveBuilt-in Gayle / A4000 IDE Slave
lide0-master[lide] expansion board Channel 0 Master (RIPPLE, RIDE, AT-Bus 2008)
lide0-slave[lide] expansion board Channel 0 Slave
lide1-master[lide] expansion board Channel 1 Master (RIPPLE only)
lide1-slave[lide] expansion board Channel 1 Slave
scsi0 .. scsi6SCSI Controller Unit 0 through 6

Device fingerprints and renaming

Operating systems may change device names (such as /dev/sdb or disk4) when devices are connected in a different order. To prevent accidentally mounting the wrong disk, the launcher saves a hardware fingerprint derived from the drive’s serial number, model, and geometry.

When a fingerprint is present in the configuration, Copperline matches the device against current host drives. If matching is ambiguous or the device cannot be found, the drive slot remains empty rather than mounting an incorrect device.

For removable media (such as USB card readers where the reader reports its own serial rather than the card’s), read-write permissions are not retained across restarts: select and mount the device in the launcher before each write session.

Host operating system permissions

Direct access to raw block devices requires elevated operating system privileges:

Privilege escalation applies only to the specific device node opened by the emulator.

Safe usage recommendations

  1. Test with read-only first: Boot the disk with read_only = true (or --host-disk-read-only) to verify that filesystems mount correctly.

  2. Host unmounting: Ensure host operating system volumes on the device are unmounted before opening the raw device in Copperline to avoid filesystem conflicts.

  3. Flushing writes: Copperline flushes disk writes synchronously to ensure data integrity on removable media.