mount & umount Flashcards

1
Q

mount

A

The mount command serves to attach the filesystem found on some device to the big file tree.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Mount [OPTIONS]

  • a, –all, Mount all filesystems mentioned in fstab
  • c, –no canonicalize, Don’t canonicalize paths.
  • f, –fake, Dry run
  • F, –fork, Fork off for each device. Use with -a.
  • T, –fstab <path>, Alternative file to /etc/fstab</path>
  • i, –internal-only, Don’t call the mount.<type> helpers.</type>
A
  • l, –show-labels, Show fs labels.
  • o, –options <list>, comma sep. list of mount options.</list>
  • O, –test-opts <list>, Limi the set of fs.</list>
  • r, –read-only
  • t, –types <list>, limit the set of fs types.</list>
  • v, –verbose
  • w, –rw, –read-write
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

mount

–source <src></src>

–target <target></target>

-n, –no-mtab

A

–source <src>, Specify source.</src>

–target <target>, Specify target.</target>

-n, –no-mtab, Don’t write to /etc/mtab

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

mount [SOURCE]

  • L, –label <label>, Synonym for LABEL</label>
  • U, –uuid <uuid>, Synonym for UUID</uuid>

LABEL=<label>, Specifies device by fs label.</label>

UUID=<uuid>, Specifies device by fs UUID.</uuid>

PARTLABEL=<label>, Specifies device by partition label.</label>

PARTUUID=<uuid>, Specifies device by partition UUID.</uuid>

A

<device>, Specifies device by path.</device>

<directory>, Mountpoint for bind mounts.</directory>

<file>, Regular file for loopdev setup.</file>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

mount [OPERATIONS]

  • B
  • M
  • R
A
  • B, –bind, Mount a subtree somewhere else.
  • M, –move, Move a subtree to somewhere else.
  • R, –rbind, Mount a subtree and all submounts somewhere else.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

mount [OPERATIONS]

–make-shared, mark a subtree as shared.

–make-slave, mark a subtree as slave.

–make-private, mark a subtree as private.

–make-unbindable, mark a subtree as unbindable.

A

–make-rshared, recursively mark a whole subtree as shared.

–make-rslave, recursively mark a whole subtree as slave.

–make-rprivate, recursively mark a whole subtree as private.

–make-runbindable, recursively mark a whole subtree as unbindable.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

umount

A

The umount command detaches the mentioned file system(s) from the file hierarchy.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

umount

  • a, –all
  • A, –all-targets
  • c, –no-canonicalize
  • d, –detach-loop

–fake

-f, –force

A
  • i, –internal-only
  • n, –no-mtab
  • l, –lazy, Detach fs now, clean later.
  • O, –test-opts <list></list>
  • R, –recursive
  • r, –read-only
  • t, –types <list></list>
  • v, –verbose
  • q, –quiet
  • N, –namespace <ns></ns>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly