CompTIA Linux+ Practice Questions: Storage

25 free, exam-style CompTIA Linux+ (XK0-006) practice questions covering Storage. Each question shows the correct answer and a clear explanation. Ready for the real thing? Take the full timed quiz below.

🚀 Take the full CompTIA Linux+ quiz 📘 CompTIA Linux+ study guide

Q1. Which partition holds user home directories?

Explanation: /home is the standard mount point for user directories. Learn more.

Q2. What is the purpose of /etc/fstab?

Explanation: fstab contains static filesystem mount information. Learn more.

Q3. Which command creates a LVM physical volume?

Explanation: pvcreate initializes disks/physical partitions for LVM. Learn more.

Q4. What command encrypts a partition with LUKS?

Explanation: luksFormat initializes LUKS encryption on a block device. Learn more.

Q5. Which RAID level provides striping with double parity?

Explanation: RAID 6 uses two parity blocks per stripe for fault tolerance. Learn more.

Q6. What command creates a logical volume in LVM?

Explanation: lvcreate creates logical volumes from volume groups. Learn more.

Q7. What command converts a disk to GPT partitioning?

Explanation: gdisk handles GPT partitioning (fdisk for MBR). Learn more.

Q8. What command displays disk space usage by filesystem?

Explanation: df shows mounted filesystems' disk usage. Learn more.

Q9. What command checks filesystem errors?

Explanation: fsck checks and repairs Linux filesystems. Learn more.

Q10. Which directory holds temporary mount points?

Explanation: /run contains volatile runtime data including mounts. Learn more.

Q11. Which command shows disk partition table?

Explanation: All commands display partition information. Learn more.

Q12. What command lists block devices?

Explanation: All commands display block device information. Learn more.

Q13. What does 'dd if=/dev/zero of=/swapfile bs=1M count=2048' do?

Explanation: Creates 2048x1MB blocks = 2GB swap file. Learn more.

Q14. What command repairs XFS filesystems?

Explanation: xfs_repair checks/repairs XFS filesystems. Learn more.

Q15. What does 'lvconvert --merge' do in LVM?

Explanation: Merges snapshot into origin volume. Learn more.

Q16. Which command creates a GPT partition table?

Explanation: gdisk handles GPT partitioning. Learn more.

Q17. What is the purpose of 'swapoff -a'?

Explanation: Disables swap devices/files temporarily. Learn more.

Q18. Which command creates a Btrfs subvolume?

Explanation: Creates new subvolume in Btrfs filesystem. Learn more.

Q19. Which file usually defines persistent filesystem mounts?

Explanation: /etc/fstab contains filesystem mount definitions used during boot and by mount commands. Learn more.

Q20. Which command displays block devices in a tree format?

Explanation: lsblk lists block devices such as disks, partitions, and logical volumes. Learn more.

Q21. Which command shows filesystem disk usage by mounted filesystem?

Explanation: df -h reports available and used space for mounted filesystems. Learn more.

Q22. Which command creates an ext4 filesystem on a partition?

Explanation: mkfs.ext4 formats a block device with an ext4 filesystem. Learn more.

Q23. Which LVM command moves allocated physical extents away from a disk before that disk is removed from a volume group?

Explanation: pvmove relocates allocated extents from one physical volume to other available physical volumes in the same volume group. Learn more.

Q24. Which LVM command extends a logical volume and resizes its filesystem in the same operation?

Explanation: The -r option tells lvextend to invoke the appropriate filesystem resize helper after increasing the logical volume. Learn more.

Q25. After extending the underlying logical volume, which command grows a mounted XFS filesystem?

Explanation: xfs_growfs expands an XFS filesystem online and is normally given the filesystem's mount point. Learn more.

More CompTIA Linux+ practice topics