Challenge
DifficultyEasy
Learner activity776 solved of 1036 attempts

Mount a Drive with Existing Data and Read Its Contents

Ivan Velichko
by  Ivan Velichko · on
Linux
CTF-style challenge: discover an unmounted device, mount it, and read the flag file from it.

You have access to a Linux system with an additional unmounted drive that contains a hidden flag (a regular file with a secret string inside).

Linux system with an additional unmounted drive.

Device names on the diagram are deliberately generic.

Your mission is to:

  1. Discover the unmounted drive
  2. Mount it somewhere in the root filesystem
  3. Capture the flag from the mounted drive

You have three attempts to enter the correct flag.

Hint: Discovering Block Devices

Before you can mount a drive, you need to know what drives are available on the system. Use commands like lsblk or sudo blkid to list available block devices.

Look for devices that aren't currently mounted (no mount point shown).

Hint: Creating Mount Points

To mount a filesystem, you need a mount point - an empty directory where the filesystem will be attached.

Create a directory (commonly under /mnt/ or /media/) using sudo mkdir before mounting.

Hint: The Mount Command

The basic syntax for mounting is:

sudo mount /dev/<device> /path/to/mountpoint

For example: sudo mount /dev/sdb /mnt/my-drive

After mounting, you can access the files in the mounted filesystem through the mount point directory.

Hint: Finding the Flag

Once the drive is mounted, explore the mounted directory to find the flag file. Use ls to list files and cat to read file contents.

The flag will be a hexadecimal string (containing only letters a-f and numbers 0-9).

Problem
Solution
Start