mount

Bareos

Mount storage.

Synopsis

mount [storage=<storage>] [sd=<sd>] [<storage-name>] [slot=<slot>]
      [drive=<drive>] [device=<device>] [jobid=<jobid>] [job=<job>]
      [ujobid=<ujobid>]

Words without brackets are required, [ ] marks optional parts, a | b alternatives, ... a repeatable argument and [,...] a comma separated list.

Description

Asks the Storage Daemon to use a device again: on tape drives to read the loaded tape and make it available to jobs, on autochangers to load a volume from a slot first (slot=). Needed after unmount, after inserting a tape, or when a job waits for a volume. It changes the device state in the Storage Daemon, not the catalog. File devices are always mounted.

The storage is given as storage=, sd= or by its bare name; without it a selection list appears. jobid=, job= or ujobid= use the storage of a running job. A keyword without a value is read as a storage name.

Onesimus deviation: a job waiting for a volume whose Job resource has no Max Wait Time is cancelled after 10 minutes (unlimited in Bareos). Until then mount or a newly labelled volume lets the job continue.

Arguments

ArgumentTypeValues / sourceDefaultFlagsDescription
storage=resourcefrom .storagesStorage name.
sd=resourcefrom .storagesStorage name (as storage=).
<storage-name>resourcefrom .storagespositionalStorage name without key.
slot=integerSlot.
drive=integerDrive number.
device=stringDevice name.
jobid=integerStorage of a job.
job=resourcefrom .jobsStorage of a job.
ujobid=stringStorage of a job.

Examples

Load slot 3 into drive 0 and mount it:

mount storage=Autochanger slot=3 drive=0

Mount the storage the running job 42 waits on:

mount jobid=42

See also

Command reference