You have access to a Linux system with an additional empty, unformatted drive. Your mission is to:
- Discover the empty drive
- Format it with the ext4 filesystem
- Mount it at
/mnt/my-ext4-drive
- Create a test file to prove everything works
First, identify and format the empty drive with ext4:
Hint 1: Discovering Available Drives π‘
You need to identify which drives are available on the system and which ones are unformatted.
Commands like lsblk
or fdisk -l
can help you explore the storage devices.
Look for drives without any filesystem information.
Hint 2: Formatting Commands π‘
Linux provides several commands for formatting drives with different filesystems.
For ext4, you'll want to use the mkfs
family of commands.
Research the appropriate command for creating ext4 filesystems.
Next, mount the formatted drive at the specified location:
Hint 3: Mount Points π‘
Before mounting a filesystem, you need a directory to serve as the mount point.
The challenge expects the filesystem to be mounted at /mnt/my-ext4-drive
.
Don't forget to create this directory before attempting to mount.
If you've never mounted a drive before, try solving our mount
challenge first.
Finally, create a test file hello.txt
in the mounted drive and write something to it: