This is a cache of https://vccplus.brianholman.com/manuals/working-with-os9/restore/. It is a snapshot of the page as it appeared on 2026-11-21T00:01:49.458+0000.
Recover the right copy · Working with OS-9 — A Comprehensive Manual · VCC Plus
← Manual LibraryVCC Plus 3.7.1 · Reading on the web

Try the exercises in VCC Plus. Example links download files here; open them in the app to work beside the emulator.

The complete book · PDF editionBook 11: Working with OS-9 — A Comprehensive Manual

51 pages · VCC Plus 3.7.1 · Keep a copy to read or print.

Download PDF
Contents

Chapter 6 of 14

Recover the right copy

Suppose the relief operator remembers a report from the first shift, but the current disk also contains second-shift files. Recover the earlier state while keeping the later one. Give each state an unmistakable filename on the Mac and an observable difference inside OS-9.

Take a whole-image backup

Use your personal practice NitrOS-9 profile. At Shell+, finish the station commands from the previous chapters. Open Media → Virtual Hard Disks…, record the filename and location assigned to HD1 and look for Saves automatically. The profile’s Files list gives the path if the drive row only shows a filename. Wait for the save to finish. If you chose Temporary changes, use Save As… to retain those bytes and verify the actual HD1 assignment before continuing.

Quit the emulator. In Finder, duplicate the identified HD1 image and name the duplicate Station First Shift.vhd. Keep it as the backup. The original remains at the pathname the practice profile knows. Copying a disk after the guest has stopped gives you a consistent point in time. The copy includes filesystem structures and the BASIC volumes that share this disk image.

Give the later state a recognizable marker

Reopen VCC Plus, load the same practice profile, run it and wait for Shell+. Type:

chd /h1/station
echo second shift >shift.two
list /h1/station/shift.two

The listing reads second shift. Let the automatic save finish and quit the emulator again. In Finder, rename the current, later HD1 image Station Second Shift.vhd. Keep it too. Duplicate Station First Shift.vhd and give that duplicate the exact original HD1 filename in the original folder. The profile can now open a writable restoration of your backup while both named snapshots remain intact. A different directory containing an identically named image will not satisfy the saved path.

Verify from a fresh boot

Open VCC Plus again, load the same practice profile, and choose Run. Verify the HD1 assignment. After OS-9 boots enter:

dir /h1/station
list /h1/station/shift.two
list /h1/station/report

The directory on the restored image contains report. Asking for shift.two gives ERROR #216, and the final listing shows echo beacon online and pwd. The missing marker is the desired result here. You just identified a generation of the disk by its contents. The later snapshot still holds the marker.

After booting the restored HD1, Shell+ lists the station directory, reports error 216 for the newer marker, and retrieves both original lines from report.

If the marker still exists, inspect the HD1 pathname and confirm which copy you duplicated. If both paths are missing, check whether you loaded fresh starter media or mounted another personal image. If writes are pending, finish or export them before replacing an image. A profile records the hardware and media assignments. The disk backup supplies the actual directories, permissions and file data for that point in time.

This recovery leaves the shell working in /DD after boot. Use chd /h1/station before resuming exercises that name station files without their directory. You can keep the restored copy as the active practice disk for the remaining chapters.

Original VCC Plus manuals © 2026 Brian K. Holman. Third-party references retain their authors’ copyrights and licenses. Artwork notices. Edition 3.7.1; source and export identity. Printable edition: PDF source and export identity.

A closer look

Open original