From MorphOS Library
Mount - Makes a new device known to MorphOS
DEVICE/M, FROM/K, DEBUG/S
DEVICE - name of the device to mount (see below) FROM - mountlist to use to mount the device (see below) DEBUG - outputs a lot of debug text
Mount reads a device's configuration parameters from a file. It then uses the parameter information to mount the devices or make them available to the system. Multiple devices can be mounted with a single command. The DEVICE argument specifies the names of the devices to be mounted.
Mount can process either DOSDrivers mount files or a traditional multiple-entry MountList file, depending on which of the following three ways the arguments are specified:
- Given a device name, Mount tries to find a mount file of that name in DEVS:DOSDrivers, then in SYS:Storage/DOSDrivers, and finally as an entry in DEVS:MountList. This method is best if you have only one configuration for that device on your system.
- Given a path, Mount looks for a mount file in that location. Wildcards may be used to mount multiple devices; as in Mount DEVS:DOSDrivers/~(#?.info). Use this method when you have mount files stored somewhere other than the DOSDrivers drawers or if you have several mount file to process at once.
- Given the FROM keyword and a path, Mount specifies the location of a MountList file to process. Use this method if you have a MountList stored somewhere other than DEVS: or if you have several MountLists.
SYS:> 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.
Mount PIPE: FROM SYS:Mydevs/MountList
This scans for a PIPE entry in SYS:Mydevs/MountList.