104.3 Mounting and Unmounting of Filesystems Flashcards

1
Q

Mounting/Unmounting

general purpose parent directory that is often used for removeable filesystems
CDs
DVDs

A

/media

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

Mounting/Unmounting

general purpose parent directory that is often used for mounting disk partitions that are NOT part of filesystem install or within root structure
backup
purely data drive

A

/mnt

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

Mounting/Unmounting

used to obtain UUID for local disk partitions on the system and will display disk labels if available

A

blkid

matches UUIDs obtained from

/dev/disk/by-uuid

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

Mounting/Unmounting

executed alone and will display mounted filesystems and used to manually mount a device with an existing filesystem on a mount point directory

read /etc/mtab

available in /proc/mounts

A

mount

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

mount

mount all filesystems in/etc/fstab - if not mounted will NOT unmount/remount those that are

A

mount -a

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

mount

fake mount on all filesystems in /etc/fstab

A

mount -f

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

mount

mount the indicated filesystem in read only mode

A

mount -r

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

mount

filesystem type to mount the indicated device as can be read by the values in the superblock automatically if the kernel supports that filesystem

A

mount -t [fstype]

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

mount

specify one or more options that are outside the dtfaults

/etc/fstab

A

mount -o [options(s)]

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

mount

mounts in writeable mode - default

A

mount -w

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

Mount/Unmount

unmounts indicated filesystem

A

umount

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

umount

attempt to forcibly unmount the filesystem even if its in use or files are open

A

umount -f

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

Mount/Unmount

if umount indicates a filesystem in use this tells you which user is using it

A

fuser

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

fuser

determine who is using the indicated mount

A

fuser -m [mount]

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

fuser

would display the mount and any PIDs usting in along with a letter c if being used as a current directory - user just in directory

A

fuser -m /mnt/data

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

Mount/Unmount

single line mount config for local and remote filesystems that are to be mounted on boot

A

/etc/fstab

17
Q

fstab contents

  1. the device
A

(i.e. /dev/sda1 OR LABEL=data OR UUID=44d27f92-d3df-4207-
80ea-22830afccf03

18
Q

fstab contents

  1. mount point
A

/

/mnt/data

19
Q

fstab contents

  1. supported filesystem type
A

ext3

xfs

etc

20
Q

fstab contents

4 comma separated list
do not automatically mount on boot (prevents removeable defives that may cause issues from being accessed on boot

A

noauto

21
Q

fstab contents

4 comma separated list

common disk option made up of rw, setuid, dev, exec, auto, nouser, async

A

defaults

22
Q

fstab contents

4 comma separated list

only the user that mounts the disk CD-ROM/DVD/Removable Disk can unmount it

A

user

23
Q

fstab contents

4 comma separated list

any user can unmount the disk CD-ROM/DEV/Removeable Disk

A

users

24
Q

fstab contents

4 comma separated list

mount read only

A

ro

25
Q

fstab contents

5 value of 0 will prevent the dump command from affecting it

A

dump

26
Q

fstab contents

6 value of 1 will indicate the filesystem should be the first checked

A

fsck