From 40ea4c967ab77202165f8e8defeb06c511dcea4b Mon Sep 17 00:00:00 2001 From: Hugh Ratsch Date: Sat, 15 Feb 2025 09:08:40 -0600 Subject: [PATCH] updated notes --- src/rhcsa.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/src/rhcsa.md b/src/rhcsa.md index 7cd3ade..a54b67a 100644 --- a/src/rhcsa.md +++ b/src/rhcsa.md @@ -125,6 +125,38 @@ kill -9 1234 # Kill the process with PID 1234 nice -n 10 sleep 100 # Run the sleep command with a priority of 10 ``` +## Partitions and Mounting + +### lsblk +```bash +lsblk -f # List all block devices with filesystem type +``` + +### fdisk +```bash +sudo fdisk /dev/sda # Partition the disk /dev/sda +# Note: n for new partition, p for primary, 1 for first partition, w for write +``` + +### mkfs +```bash +sudo mkfs.xfs /dev/sda1 # Format the partition /dev/sda1 as XFS +``` + +### mount +```bash +sudo mount /dev/sda1 /mnt # Mount the partition /dev/sda1 to /mnt + +sudo mount -a # Mount all partitions +``` + +### LVM + + + + + +