3-3 Configure Systems to Mount File Systems at Boot by UUID or Label Flashcards

1
Q

mkfs -t xfs /dev/xvdf1

A

Make file system

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

blkid

A

List available block devices on system

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

lsblk

A

List all attached block devices

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

mount /dev/disk /mnt/mountlocation

A

Non-persistent mount
Mounting with the UUID ensures the appropriate mount is used
Add to /etc/fstab to mount persistently

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

tune2fs -L labelname /dev/disk

A

Mount with file system label for ext

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

e2label /dev/disk labelname

A

Mount with file system label for ext

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

xfs_admin -L labelname /dev/disk

A

Mount with file system label for XFS

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

mount LABEL=labelname /mnt/mountlocation defaults 1 1

A

Mount with label,

non-persistent; edit /etc/fstab for persistence

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

mount -a

A

Mount all file systems in /etc/fstab

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

umount -a

A

Unmount all file systems in /etc/fstab

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

man fstab
search for defaults section
man mount

A

How to see what are fstab command defaults

see how else to mount, options

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

fstab order
UUID_OrDeviceMount /mount/newdir xfs(file system) defaults 0(flag for dump command to use for backing up, 1 means enable) 2(incase of abrupt restart, in what order fsck check will run on, root / should be set to 1, swap can be set to 0 which means not to run on, and others can be set to 2,3,4 etc)

can be used by dump command to make a file system backup of the device

A

how to set up line in fstab

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

mkdir /mnt/{newdir1,newdir1}

A

command and syntax to make two folders at once

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

mount -a

A

mount everything listed in /etc/fstab file

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

in /etc/fstab
start like with following partitions set to ID or Label
UUID=

LABEL=

A

mount file systems at boot to UUID or Label

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

umount -a

A

attempts to unmount everything based on whats in /etc/fstab