Add Partitions, File Systems, and Persistent Mounts Flashcards
How do you create a disk label on a device?
parted /dev/<devicename> mklabel <device></device></devicename>
How do you use interactive mode to create a partition?
parted /dev/<devicename> \ mkpart \ primary \ xfs \ <startpoint> \ <endpoint> \ quit</endpoint></startpoint></devicename>
How do list the partitions on the device?
parted /dev/vdb print
How do you wait for the system to register the new partition?
udevadm settle
How do you format a new partition with the XFS file system?
mkfs.xfs /dev/<device></device>
How do you update the systemd daemon for the system to register the new /etc/fstab file?
systemctl daemon-reload
How do you verify that the new file system is mounted on the mountpoint?
mount | grep /<mountpoint></mountpoint>