Home Page The Club Computers News Links Glossary EYAWTK
Before Amiga Background ICS OCS ECS AGA ??? AmigaOne
U-Boot SLB Linux Amiga OS Dual Boot Motherboards Peripherals Other
Initialisation Installation OS4 Updates About OS4 File Systems Networking Printing Other
Introduction File System Workbench Preferences Commands Error Msgs Miscellaneous

AmigaOS 4.0 - About OS4 - Commands

MOUNT AmigaDOS
Purpose: Makes a device connected to the system available.
Format: MOUNT {<device | pattern>} [FROM=<filename>] [QUIET] [REPLACE] [STARTUP=<parameters>]
Template: DEVICE/A/M, FROM/K, QUIET/S, REPLACE/S, STARTUP/K/F
Path: C:MOUNT
MOUNT causes AmigaDOS to recognize devices connected to the system. When the MOUNT command is issued, it looks in the DEVS:MountList file (or the optional FROM=<filename>) for the parameters of the <device> that is being mounted. It also looks for mount files named according to the respective device in the directories "DEVS:DOSDrivers" and "SYS:Storage/DOSDrivers". MOUNT commands are usually placed in the Startup-Sequence file.

In place of a <device>, a wildcard <pattern> can be used to identify the names of the mount files to be used. For example, to mount all devices in "DEVS:DOSDrivers" you would use the following command:

Mount DEVS:DOSDrivers/~(#?.info) MOUNT will complain if the device to be mounted has already been mounted (the warning message can be hidden by using the QUIET option). If you actually wanted to remount the device, perhaps with new parameters, you can use the REPLACE option; this will have the same effect as issuing the "ASSIGN DISMOUNT" command before the respective device is mounted again. Note that this is not normally a good idea since only a few file systems and handlers will support it.

Some handlers need to receive additional instructions when they are started. Traditionally, such information goes into the mount file, following the "STARTUP = " text. At times it is more convenient to pass these instructions directly on the MOUNT command line, which then are passed down to the handler. This is what the STARTUP <parameters> option will do. Note that all devices given on the MOUNT command line will receive these startup instructions and that these instructions will never override the startup instructions given in the mount file, etc.

Example 1:

3.OS4:> MOUNT PIPE: this looks for the mount file DEVS:DOSDrivers/PIPE and processes it if found. If DEVS:DOSDrivers/PIPE does not exist, MOUNT looks for SYS:Storage/DOSDrivers/PIPE. If this also fails, then MOUNT looks for a PIPE: entry in DEVS:MountList.

Example 2:

3.OS4:> MOUNT Work:Devices/PIPE this looks for a PIPE mount file in Work:Devices.

Example 3:

3.OS4:> MOUNT PIPE: FROM SYS:Mydevs/MountList this scans for a PIPE entry in SYS:Mydevs/MountList.


Return to Commands Selection

Disclaimer: Amiga Auckland have prepared the above Information for the use of its members based on our experiences and as such is subject to revision at any time. Amiga Auckland cannot guarantee any of the Information and cannot be held accountable for any issues that may result from using it.


Copyright 2006 Amiga Auckland Inc. All rights reserved.
Revised: February 9, 2006.