Retro Rocket OS
BASIC-Powered Operating System
Loading...
Searching...
No Matches
MOUNT Keyword
MOUNT "mountpoint", "device", "fstype"

Mounts a filesystem of the specified type at the given mount point.

  • mountpoint: path where the filesystem will appear in the directory tree (for example "/harddisk").
  • device: device identifier (for example "hd0" for the first hard disk). May be an empty string for virtual filesystems.
  • fstype: one of the supported filesystem types listed below.
Remarks
Supported filesystem types:
- iso9660
- fat32
Note
- devfs
- DummyFS
- rfs
Paths are case-insensitive. . and .. are not supported in paths.
After mounting, files and directories at the mount point are accessible to normal file I/O
(OPENIN, OPENOUT, OPENUP, DELETE, MKDIR, RMDIR, etc.). Use CHDIR to switch into the mounted path.

If the mount fails (for example, unsupported fstype or unavailable device), a runtime error is raised (catchable with ON ERROR).


Examples

MOUNT "/devices", "", "devfs"
MOUNT "/harddisk", "hd0", "fat32"

See also:
CHDIR · MKDIR · DELETE · RMDIR · OPENIN · OPENOUT · OPENUP