PEEKaboo

$BFD100 CIA-B, where the drive motor and head are switched

The Archivist

For collectors and preservers. Open a disk image and see every block on it, check that it's healthy, find out what it is and whether it carries a virus, and move disks between PEEKaboo and real floppy drives.

01The Disk workspace

Open a disk image, then switch to View › Workspaces › Disk. Everything in this guide is in that one layout, and all of it also lives in the Disk menu.

PEEKaboo · the Disk workspace
The Disk workspace with a Melways Surreal Mappings compilation disk open: the file list on the left, a hex view of block 880 (the root block) in the middle, the disk bitmap down the right, and the root block's fields decoded along the bottom.
  1. Files. The disk's directories and files, like a file manager.
  2. Padlock. Disks open write-protected. Click to allow changes.
  3. Block navigation. Type a block number, step through blocks, or jump to the Boot or Root block.
  4. Hex view. The raw bytes of the current block, with the bytes of the field you're pointing at highlighted.
  5. More tools. Boot Block Viewer, Disk Identifier, Disk Validator and Floppy Disk I/O share these tabs.
  6. Block Details. The current block decoded into named fields.
  7. Maps. The whole disk at a glance, one square per block.

The example disk is Melways Surreal Mappings Demos & Intros #40 (1990), an ordinary AmigaDOS disk of demos. A trackloading demo or game shows less here, because it doesn't use AmigaDOS: PEEKaboo calls those NDOS disks, and their files can't be listed.

02Browse and manage files

The file list works like a file manager for OFS and FFS disks. It shows names, sizes, dates and protection bits. Shift and Ctrl select more than one file. Drag files between directories, or drag them out onto your desktop.

Documents · right-click
The right-click menu on a file: Open File, Run, View Hunks, Save File As, Export to Folder, Copy, Paste, Rename, Delete, Scrub, Set Permissions, Import Files Here and New Folder Here. Rename, Delete and the others that change the disk are greyed out.
Right-click a file. The commands that change the disk are greyed out until you click the padlock.
  • Open File shows it in the right viewer. Text appears in Amiga fonts (Topaz and friends), so a startup-sequence or readme looks the way it did on the Amiga. IFF pictures and many other retro picture formats display as images, and tracker modules play.
  • View Hunks takes a program apart: code, data and BSS segments, relocations, symbols and debug information.
  • Run starts the program in the emulator.
  • Save File As… and Export to Folder… copy files out to your computer. Import Files Here copies them in.
  • Set Permissions… changes the protection bits (read, write, execute, delete).

Undelete, and delete properly

A deleted Amiga file usually stays on the disk until something overwrites it. Edit › Restore brings it back. Going the other way, Scrub deletes a file and zeroes every block it used, so it can't be recovered.

To make a fresh disk, use File › New Disk. It makes blank OFS or FFS disks, including International, Directory Cache and long-name variants.

03Blocks and bytes

A double-density Amiga floppy holds 1,760 blocks of 512 bytes. The hex view shows them in order. Use Boot to jump to block 0 (the boot block) and Root to jump to block 880, where AmigaDOS keeps the disk's name and top directory.

Block Details explains the current block field by field, decoding numbers, flags, Amiga dates and names. Point at a field and its bytes light up in the hex view. Fields that point at other blocks (next_hash, parent, extension…) are links you can click to follow the disk's own structure.

Block Details · block 880
Block Details for the root block: type T_HEADER, hash table size 72, the checksum 0x81E5B2E4 marked OK, the hash table, and the bitmap flag VALID.
The root block decoded. A green [OK] means the checksum is correct. A bad checksum is the first sign of a damaged disk.

Editing

With the padlock open, type over bytes in the hex view. Changed bytes are marked, and Edit › Undo takes them back. Search › Find… (Ctrl+F) looks for hex such as DE AD BE EF or for text. Advanced Find searches the whole disk with more options, and the toolbar's back and forward arrows retrace your jumps.

04See the whole disk at once

The maps on the right show one square per block: a row for each of the 80 cylinders, with one half for each side of the disk. Click a square to open that block. Hover over it to see what it is.

MapShows
Block Type MapWhat each block is: boot block, root, file headers, file data, directories, the bitmap, and free space.
Disk BitmapWhat the disk's own bitmap claims: red for used, green for free.
Block Change MapWhich blocks you've changed since opening the disk.
NDOS MapFor trackloaders: which tracks hold data, without assuming AmigaDOS.
Block Type Map
The Block Type Map: almost every block red (file data), with the root, directories and file headers in purple, blue and orange around cylinder 40, and a little green free space below them.
A nearly full disk. Red is file data. The coloured knot at cylinder 40 is the root block and the directories and file headers around it, which is where AmigaDOS starts filling a disk.

05Check a disk's health

Open Disk › Disk Validator and press Validate. It checks:

  • the boot block: its DOS signature, checksum and root pointer
  • the root block and the allocation bitmap, including blocks that are in use but marked free (a disk that will corrupt itself on the next write) and allocated but empty
  • every file and directory: broken block chains, loops, cross-linked blocks and bad hash tables.
Disk Validator
The Disk Validator after a run: Disk is healthy, 18 checks passed, 5 info. A list of green OK lines, from DOS signature valid to No orphaned blocks, then information about the boot block.
A healthy disk. Problems are listed as errors and warnings. Click one to see which block it's about and why.

06What is this disk?

PEEKaboo has three ways to tell you what you've got:

  • TOSEC. Every disk you open is looked up by checksum in the TOSEC catalogue, whatever its file name. See the Explorer guide for the catalogue itself.
  • Disk Identifier (Disk › Disk Identifier) asks ScreenScraper for the title, publisher, release date, screenshots and box art, with links to Hall of Light and Lemon Amiga. Answers are cached for offline use.
  • Copy protection. IPF images are checked against the named track formats of libdisk, so you can see which protection a game used.

07Boot blocks and viruses

The first two blocks of a floppy are its boot block: 1 KB of code the Amiga runs when the disk boots. It's where cracking groups put their logos, and where every boot-block virus of the late '80s lived.

PEEKaboo fingerprints each disk's boot block against a library of nearly 3,000: standard AmigaDOS boot blocks, loaders, intros and known viruses. The answer appears under the hex view (here, Standard · Bootable · KS1.3) and in the Boot Block Viewer.

Boot Block Viewer · a virus
The Boot Block Viewer with 16-Bit Crew Virus selected from the library. The Brainfile Identification panel reads Class: Virus [VIRUS], Kickstart KS1.3, Bootable: Yes.
The library on the left can be searched and filtered. A virus is marked in red as Class: Virus.

The Preview tab runs the boot block's code in a small emulator of its own, so you can see what it does without booting it in your main machine. Intros, logos and viruses with a message all play here.

Boot Block Viewer · Preview
The Preview tab running the ACU Logo boot block: the letters ACU drawn in yellow vector lines over a green grid on a dark red background, with copper bars above and below.
The ACU Logo boot block, running in the preview. All of this fits in one kilobyte.

Removing a virus

  1. Open the infected disk and click its padlock to allow changes.

  2. In the Boot Block Viewer's library, pick a clean boot block that matches the disk, such as AmigaDOS Standard Bootblock 1.3.

  3. Press Install to Disk, run the Disk Validator to check, then save with File › Save Disk Image As….

08Real floppy drives

With a USB floppy controller, PEEKaboo can use real disks: as an image you keep, or live in the emulated Amiga. It supports Greaseweazle, DrawBridge (the Arduino Floppy Reader/Writer), SuperCard Pro and XCopy Standalone, through RobSmithDev's FloppyBridge.

Image a disk, or write one

Disk › Physical Disks has everything for moving disks between the real world and images:

Disk › Physical Disks
The Disk menu with Physical Disks open: Read from Disk, Write to Disk, Format Disk, Compare with Disk, Floppy Disk I/O and a Greaseweazle submenu.
Compare with Disk checks a real disk against an image, byte for byte. Use it to confirm a copy worked. The Greaseweazle submenu measures the drive's speed (RPM) and the USB bandwidth.

Boot a real disk in the emulator

In the Floppy Drives panel, pick a drive (DF0: to DF3:), open its Live drive tab, choose your hardware and its port, and press Attach. The emulated Amiga then reads the real disk directly, copy-protected disks included.

Floppy Drives · Live drive
The Live drive tab: Hardware Greaseweazle, a serial port selector with Refresh, Drive select, Bridge mode Fast, Density Auto-detect, Background read-ahead, Smart speed, Allow writes to physical disk, and Attach and Detach buttons.
Writes to the physical disk are off until you tick Allow writes to physical disk.

Where next