1.3 Configure and manage storage using appropriate tools Flashcards
fdisk command
Used to create, modify, or delete partitions on a storage device.
-b{sector size} # of drive sectors
-H{heads} # of heads
-S{sectors} # of sectors per track
-s{partition} partition size in blocks
parted command
Used to create, destroy, and resize partitions and runs the GNU Parted utility.
-select
-mkpart
-print
resizepart
partprobe command
Used to update the kernel with changes that now exist within the partition table
systemd.mount
Can be used to create a new mount unit to mount the file system.
/etc/fstab
A system config file that contains info about various file systems and how the system should mount them during boot.
mount
Loads a file system to a specified directory to make it accessible to users and applications.
-exec - allow binaries in file system to be executed
-ro mount fs as read only
Linux Unified Key Setup (LUKS)
Used to encrypt storage devices in a Linux and can standardize the format of encrypted devices.
XFS tools
xfs_info - dislay info about XFS
xfs_admin - change parameters about XFS
xfs_metadump - copy metadata of XFS to a file
xfs_growfs - expand the xfs to fill drive size
xfs_copy - copy contents of XFS to another file location
xfs_repair - repair and recover a corrupt XFS file system
xfs_db - debug XFS file system
Ext4 tools
tune2fs
dumpe2fs
Btrfs tools
I have no clue. lol
df command
Displays info about the file system disk space usage n the mounted file system.
-h{human-readable}
-a{all}
-i{inode}
du command
reports the amount of disk space used by the specified fields and for each subdirectory.
-c{total}
-a{all}
-b{bytes}
-D{deference-args}
pvs command
Displays info about physical volumes.
vgs command
Displays info about volume groups.
lvs command
Displays info about logical volumes.