Disk Addition Configuration
Pre-check
# Check disk usage
df -h
# List block devices
lsblk
# Check partition information
fdisk -l
# Check mount status
mount -v
Partition Creation
# Create partition with fdisk
fdisk /dev/sdb
# Use 'n' command to create a new partition
# Use 'w' command to save
# Verify partition
lsblk
File System Creation
# Create ext4 file system
mkfs.ext4 /dev/sdb1
# Create xfs file system
mkfs.xfs /dev/sdb1
# Verify file system
blkid /dev/sdb1
Mount Configuration
Temporary Mount
# Create mount point
mkdir /mnt/newdisk
# Execute mount
mount /dev/sdb1 /mnt/newdisk
# Verify mount
df -h
Persistent Mount Configuration
# Check UUID
blkid /dev/sdb1
# Edit /etc/fstab
vi /etc/fstab
# Add the following line
# UUID=your-uuid-here /mnt/newdisk ext4 defaults 0 2
# Test configuration
mount -a
# Verify mount
df -h