A Comprehensive Guide to Disk and Partition Management in Linux Systems, Covering Core Operations like Viewing, Managing, and Optimizing
1. Viewing Basic Disk Information 1. List All Disk Devices lsblk # Tree view of disks and partitions lsblk -o NAME,SIZE,FSTYPE,MOUNTPOINT # Custom columns sudo fdisk -l # Detailed partition table information (requires root) Example Output: NAME SIZE FSTYPE MOUNTPOINT sda 100G ├─sda1 512M vfat /boot └─sda2 99.5G ext4 / nvme0n1 500G ├─nvme0n1p1 100G ext4 … Read more