Disk Partitions & Filesystems
Complete guide to disk partitioning, filesystem types, and storage management. Learn partition schemes, formatting, mounting, and optimization techniques.
Articles in Disk Partitions & Filesystems
-
How to securely wipe blocks → blkdiscard /dev/sdX (SSD)
Learn how to securely wipe SSD blocks using blkdiscard command. Complete guide with step-by-step instructions, safety tips, and troubleshooting for Linux users.
-
How to rescue copies → ddrescue /dev/sdX /path.img /path.map
Master ddrescue data recovery with this comprehensive guide. Learn to rescue damaged drives using ddrescue /dev/sdX /path.img /path.map with examples and troubleshooting.
-
How to image/copy disks → dd if=/dev/sdX of=/path.img bs=4M status=progress
Learn how to create disk images using the dd command in Linux. Complete guide with step-by-step instructions, examples, and troubleshooting tips for safe disk copying.
-
How to view SMART health → smartctl -a /dev/sdX
Learn how to monitor hard drive health using SMART technology with smartctl commands. Complete guide with examples, troubleshooting, and best practices.
-
How to test disk speed → hdparm -Tt /dev/sdX
Learn how to test disk speed using hdparm -Tt command. Complete guide with examples, troubleshooting, and best practices for Linux disk performance testing.
-
How to manage swap → mkswap /dev/...; swapon -a; swapoff -a
Learn how to manage Linux swap space with mkswap, swapon, and swapoff commands. Complete guide with step-by-step instructions, examples, and troubleshooting tips.
-
How to mount/unmount → mount /dev/... /mnt; umount /mnt
Learn how to mount and unmount storage devices in Linux using mount and umount commands. Complete guide with examples, troubleshooting, and best practices.
-
How to repair XFS → xfs_repair /dev/..
Complete guide to repairing XFS filesystems using xfs_repair command. Learn step-by-step procedures, troubleshooting, and best practices for fixing corrupted XFS drives.
-
How to grow XFS → xfs_growfs
Learn how to expand XFS filesystems using xfs_growfs command. Complete guide with step-by-step instructions, examples, troubleshooting, and best practices.
-
How to resize ext filesystem → resize2fs /dev/..
Learn how to resize ext2, ext3, and ext4 filesystems using resize2fs command. Complete guide with examples, troubleshooting, and best practices for Linux administrators.
-
How to check/repair ext → e2fsck -f /dev/..
Learn how to check and repair ext2/ext3/ext4 filesystems using e2fsck command. Complete guide with examples, troubleshooting, and best practices for Linux users.
-
How to create filesystems → mkfs.ext4|mkfs.xfs|mkfs.btrfs /dev/..
Learn to create filesystems using mkfs.ext4, mkfs.xfs, and mkfs.btrfs commands. Complete guide with examples, best practices, and troubleshooting tips.
-
How to map partitions to devices → kpartx -av /dev/loop0
Learn how to map partitions to devices using kpartx -av /dev/loop0. Complete guide with examples, troubleshooting, and best practices for Linux partition mapping.
-
How to inform kernel of table changes → partprobe /dev/sdX
Learn how to use partprobe to inform the Linux kernel of partition table changes without rebooting. Complete guide with examples, troubleshooting, and best practices.
-
How to non‑interactive partition → parted /dev/sdX
Learn how to use parted for non-interactive disk partitioning on Linux. Complete guide with commands, examples, automation scripts, and troubleshooting tips.
-
How to (g)partition disks → fdisk /dev/sdX; gdisk /dev/nvme0n1
Learn how to partition disks using fdisk and gdisk commands. Complete guide covering MBR and GPT partitioning with step-by-step instructions and examples.
-
How to list block devices/UUIDs → lsblk -f; blkid
Learn how to list block devices and UUIDs using lsblk -f and blkid commands. Complete guide with examples, troubleshooting, and best practices for Linux systems.