mk90.commands

Command mount

List mounted volumes or mount an MKS2 volume.

Synopsis

mount [device mountpoint]

Ordinary invocation: foreground child, PID 3; the shell waits. Not an allowed pipe producer.

Parameters

ParameterMeaning
deviceOne of the registered /dev block-device names.
mountpointThe fixed mountpoint paired with that device; both arguments are required together.

Description

Without arguments, lists mounted paths and their RO/RW state. With two arguments, explicitly reads and validates the MKS2 header and metadata and sets that device’s mount bit.

The boot cartridge is registered as mounted and read-only at startup, with its filesystem inside the final 8 KiB of the 32 KiB ROM. Its metadata is read when needed. SMP1 data is mounted explicitly.

The stock BASIC format is not MKS2. A readable stock cartridge can therefore fail MOUNT while passing bus or ROM-switching diagnostics. Mounting never formats or imports it.

Examples

mount
mount /dev/smp1 /mnt/smp1

Limits and side effects

  • Fixed pairs only: smp0→/mnt/smp0, smp1→/mnt/smp1, fd0→/mnt/fd0, cf0→/mnt/cf0. The last two drivers are absent. No mount options or arbitrary mountpoints.

Status and diagnostics

Success is status 0. Relevant status codes: 1, 3, 4, 8, 14, 15, 17. See the diagnostic reference.

See also

umount · mkfs · devices · romtest · Shell syntax