top logo menu kitty mascot
AROS.ORG Developers Localization Bounties

Mount

Index Prev Next


Name

Mount

Format

Mount <Device> <From> [SHUTDOWN]

Synopsis

DEVICE/M, FROM/K, SHUTDOWN/S

Location

C:

Function

Loads and mounts a device

Inputs

DEVICE   -- The device type to be mounted
FROM     -- Search device in this mountlist
SHUTDOWN -- Stop the handler behind an already mounted device,
            without removing the device node

Result

Standard DOS error codes.

Example

Mount DEVS:FAT0
(Mounts a FAT device defined in the DEVS:FAT0 file)

Mount AUX0: SHUTDOWN
(Tells the handler serving AUX0: to go away. AUX0: stays
mounted and the handler is restarted when it is next used.)

Notes

SHUTDOWN leaves the device mounted, so the handler is started
again the next time the device is accessed. Removing the device
node is what Assign DISMOUNT does, so shutting a device down
completely takes both:

    Mount HD5: SHUTDOWN
    Assign HD5: DISMOUNT

Not every handler can be shut down. One that is still in use, or
that does not implement ACTION_DIE, reports an error and keeps
running.