โ† All Linux Flashcard Decks

Linux+ Filesystem and Storage Management Flashcards

7 cards from real Linux practice questions. Tap to flip, then mark Knew It or Still Learning โ€” missed cards come back until you master them.

Read the first 7 Linux+ Filesystem and Storage Management flashcards as text
  1. A system has /dev/sda1 through /dev/sda4 as primary partitions. An administrator needs to add more partitions. What must be done?

    Answer: Delete one primary and create an extended partition

    MBR supports only 4 primary partitions; to add more, one primary must be converted to an extended partition that can hold multiple logical partitions.

  2. Which command mounts all filesystems listed in /etc/fstab that are not currently mounted?

    Answer: mount -a

    mount -a reads /etc/fstab and mounts all filesystems listed there that are not yet mounted, skipping entries marked 'noauto'.

  3. What does the 'e2label' command do?

    Answer: Sets or displays the label of an ext2/3/4 filesystem

    e2label sets or displays the volume label of an ext2, ext3, or ext4 filesystem, which can then be used in /etc/fstab as LABEL=.

  4. An LVM snapshot is created for backup purposes. What happens if the original logical volume fills the snapshot's allocated space?

    Answer: The snapshot becomes invalid

    If a snapshot's allocated space fills up before the backup completes, the snapshot becomes invalid (corrupted) and can no longer be used.

  5. Which command would permanently remove a physical volume from an LVM volume group?

    Answer: vgreduce vg0 /dev/sdb

    vgreduce removes a physical volume from a volume group; pvremove then removes the LVM metadata from the device entirely.

  6. What is the purpose of the 'relatime' mount option?

    Answer: Updates atime only if atime is older than mtime or ctime

    relatime is a compromise between atime and noatime โ€” it updates the access time only when it's older than the modification or change time, reducing unnecessary writes.

  7. Which command displays a tree-like view of the block device hierarchy including partitions and their mount points?

    Answer: lsblk

    lsblk lists block devices in a tree format showing parent disks, their partitions, and the mount points where each is mounted.

Linux+ Filesystem and Storage Management Flashcards โ€” Linux Study Cards with Answers