Add Partitions, File Systems, and Persistent Mounts Flashcards

1
Q

How do you create a disk label on a device?

A

parted /dev/<devicename> mklabel <device></device></devicename>

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

How do you use interactive mode to create a partition?

A

parted /dev/<devicename> \ mkpart \ primary \ xfs \ <startpoint> \ <endpoint> \ quit</endpoint></startpoint></devicename>

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

How do list the partitions on the device?

A

parted /dev/vdb print

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

How do you wait for the system to register the new partition?

A

udevadm settle

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

How do you format a new partition with the XFS file system?

A

mkfs.xfs /dev/<device></device>

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

How do you update the systemd daemon for the system to register the new /etc/fstab file?

A

systemctl daemon-reload

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

How do you verify that the new file system is mounted on the mountpoint?

A

mount | grep /<mountpoint></mountpoint>

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