storage

Disk Types and Interface Types in Linux

Learn how Linux disk media types (HDD, SSD, optical) differ from interface and transport types (SATA, SAS, NVMe, Fibre Channel, USB), and how device names such as sda and nvme0n1 map to each layer.

Omer Cakmak9 min read
storage

Configure Software RAID 0 in Linux with mdadm

Configure software RAID 0 (striping) in Linux with mdadm on two partitions, format with ext4, mount the volume, and persist it across reboot.

Omer Cakmak5 min read
storage

Configure Software RAID 5 in Linux with mdadm

Configure software RAID 5 in Linux with mdadm on three partitions — distributed parity, left-symmetric layout, initial recovery, and creating larger arrays with spares.

Omer Cakmak6 min read
storage

Configure Software RAID 4 in Linux with mdadm

Configure software RAID 4 in Linux with mdadm on three partitions — dedicated parity disk, parity initialization, format with ext4, and mount.

Omer Cakmak6 min read
storage

Configure Linear RAID in Linux with mdadm

Configure linear RAID (append mode) in Linux with mdadm on two partitions — fdisk setup, create the array, format with ext4, mount, and persist across reboot.

Omer Cakmak10 min read
storage

Configure Software RAID 10 (1+0) in Linux with mdadm

Configure software RAID 10 (RAID 1+0) in Linux with mdadm by mirroring two disk pairs into RAID 1 arrays, striping them with RAID 0, and mounting the resulting volume.

Omer Cakmak10 min read
storage

How to Check Disk Type in Linux: HDD, SSD, NVMe and SATA

Check disk type in Linux with lsblk ROTA and TRAN, sysfs rotational, udevadm, lspci, and optional smartctl or nvme tools to tell HDD from SSD, NVMe from SATA, and when virtual or RAID storage hides the real media.

Omer Cakmak9 min read
storage

Backup and Restore a Linux Partition Table with sfdisk

Back up and restore GPT or MBR partition tables in Linux with sfdisk --dump, clone a layout to another disk, and save raw partition-table sectors with --backup-pt-sectors without touching filesystem data.

Omer Cakmak10 min read
storage

How to Extend or Resize a Root Partition (Non-LVM) in Linux

Extend or resize a non-LVM root partition in Linux with parted or fdisk when unallocated space exists after the target partition, then grow ext4 with resize2fs without reformatting.

Omer Cakmak17 min read
storage

Configure autofs to Automount NFS Shares in Linux

Install autofs on a Linux client, configure indirect and direct NFS maps in auto.master, trigger mounts on path access, set idle timeout, reload maps, and troubleshoot automount failures.

Deepak Prasad12 min read
storage

Configure an NFS Server and Client in Linux

Install nfs-utils, export a directory from an NFS server, open firewalld for NFSv4, mount the share on a Linux client with vers=4.2, persist it in /etc/fstab, and troubleshoot common NFS errors.

Deepak Prasad16 min read
storage

Mount Linux Filesystems with UUID and Labels

Mount filesystems persistently with /etc/fstab using UUID and LABEL, validate with mount -a and findmnt --verify, and recover when a bad entry blocks boot.

Deepak Prasad12 min read
storage

Configure LVM in Linux Step by Step

Create LVM physical volumes, volume groups, and logical volumes, format with XFS or ext4, mount by UUID, extend a VG with vgextend, and remove layers safely.

Deepak Prasad13 min read
storage

Extend an LVM Logical Volume and Filesystem

Extend a logical volume with lvextend, grow PV capacity with pvresize or vgextend when the volume group is full, grow XFS with xfs_growfs or ext4 with resize2fs, and verify both layers.

Omer Cakmak19 min read
system-administration

Configure LDAP Users with NFS Home Directories and autofs

Configure OpenLDAP users with NFS home directories using SSSD and autofs on RHEL, Rocky Linux, AlmaLinux, Oracle Linux, and CentOS Stream.

Deepak Prasad14 min read
storage

Migrate an Existing LVM Root Filesystem to LUKS Online

Migrate an already-installed Ubuntu LVM root volume group onto a new LUKS2 physical volume with pvmove, then configure crypttab with initramfs, regenerate the initramfs, and update GRUB for boot-time unlock.

Deepak Prasad16 min read
storage

Enroll TPM2, FIDO2, and Recovery Keys on LUKS2 with systemd-cryptenroll

Use systemd-cryptenroll on LUKS2 volumes to add TPM2, FIDO2, PKCS#11, and recovery-key unlock methods, store token metadata in the LUKS2 JSON area, and wire boot unlock through crypttab.

Deepak Prasad10 min read
storage

How to Resize a LUKS Partition (Extend or Shrink) in Linux

Extend or shrink a LUKS2 ext4 volume on Linux: grow the partition first, run cryptsetup resize on the mapper, then resize2fs; for shrink, reverse the order with offline resize2fs and --size in 512-byte sectors.

Deepak Prasad11 min read
storage

How to Open and Unlock a LUKS Disk on Another Linux Machine

Unlock and mount a LUKS USB or moved disk on another Linux host: cryptsetup open by device, UUID=, or /dev/disk/by-uuid, ext4 or LVM inside LUKS, read-only rescue mount, and close the mapper.

Deepak Prasad11 min read
storage

Network-Bound Disk Encryption with Clevis and Tang on Linux

Configure LUKS NBDE with Clevis and Tang on RHEL/CentOS: two-VM lab with Tang server, LUKS root client, dracut rebuild, and video—boot without typing a passphrase when Tang is reachable.

Deepak Prasad12 min read
storage

How to Auto Mount and Unlock LUKS Encrypted Partitions at Boot

Configure crypttab and fstab to unlock and mount a secondary LUKS data partition at boot on Ubuntu or Debian.

Deepak Prasad15 min read
storage

How to Back Up and Restore a LUKS Header in Linux

Back up and restore a LUKS2 header with cryptsetup luksHeaderBackup and luksHeaderRestore, use a detached header file, and understand when a header copy cannot recover a forgotten passphrase.

Deepak Prasad10 min read
storage

Change LUKS Passphrase, Volume Key, and Cipher on Linux

Rotate LUKS passphrases and key slots, change cipher or volume key with cryptsetup reencrypt on LUKS2, and back up the header before destructive operations.

Deepak Prasad12 min read
storage

How to Encrypt a Disk Partition with LUKS in Linux

Encrypt a new Linux disk partition with LUKS2 using cryptsetup: partition the disk, run luksFormat, open the mapper, create ext4 on /dev/mapper, and mount the volume.

Deepak Prasad10 min read
storage

How to clone or backup Linux partition using fsarchiver

Steps to backup partition in LInux, clone your partition or hard drive, logical volume using fsarchiver Exclude files and directories encrypt backup

Deepak Prasad9 min read
storage

How to configure iSCSI target on Ubuntu

In this tutorial I will share the steps to create iSCSI target using Ubuntu 22.04 VM installed on Oracle VirtualBox.

Deepak Prasad8 min read
storage

Advanced Tips to Improve Disk IO Performance in Linux

Explore comprehensive strategies to improve disk IO performance, from optimizing kernel parameters to leveraging virtualization tools. Unlock the full potential of your system and achieve faster, more efficient disk …

Deepak Prasad17 min read
storage

Create & Manage Striped Logical Volume Linux [Step-by-Step]

How to create striped logical volume, How to convert striped to linear logical volume and vice versa, How to extend the size of existing striped logical volume

Deepak Prasad13 min read
storage

Create Mirrored Logical Volume in Linux [Step-by-Step]

LVM supports mirrored volumes. A mirror maintains identical copies of data on different devices. LVM ensures that data written to an underlying physical volume is mirrored onto a separate physical volume.

Deepak Prasad10 min read
storage

Manage Logical Volume in Linux - One STOP Solution

The Logical Volume Manager is a collection of one or more physical devices called Volume Group (VG), each physical device on the VG called a Physical Volume (PV)

Deepak Prasad18 min read