Challenge - 5 Problems
Disk Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2:00remaining
What is the output of this lsblk command?
You run the command
lsblk -o NAME,SIZE,TYPE,MOUNTPOINT on a system with one disk sda of 100G and two partitions sda1 (50G, mounted on /) and sda2 (50G, not mounted). What is the output?Linux CLI
lsblk -o NAME,SIZE,TYPE,MOUNTPOINT
Attempts:
2 left
💡 Hint
Remember that the disk is the whole device and partitions are parts of it. Only partitions can be mounted.
✗ Incorrect
The disk
sda is 100G and of type disk. Its partitions sda1 and sda2 are each 50G and of type part. Only sda1 is mounted on /. The disk itself is not mounted.💻 Command Output
intermediate2:00remaining
What error does this fdisk command produce?
You run
fdisk /dev/sdx on a system where /dev/sdx does not exist. What error message appears?Linux CLI
fdisk /dev/sdx
Attempts:
2 left
💡 Hint
Check if the device file exists before running fdisk.
✗ Incorrect
If the device file does not exist, fdisk cannot open it and shows 'No such file or directory'. Other errors occur in different situations.
📝 Syntax
advanced2:00remaining
Which fdisk command sequence creates a new primary partition?
You want to create a new primary partition on /dev/sdb using fdisk interactively. Which sequence of commands inside fdisk is correct?
Linux CLI
fdisk /dev/sdb
# Then enter commands interactivelyAttempts:
2 left
💡 Hint
Primary partitions are created with 'p' after 'n'.
✗ Incorrect
To create a primary partition, use 'n' to create new, then 'p' for primary, specify partition number, accept defaults for start and end, then 'w' to write changes.
🚀 Application
advanced2:00remaining
How to list only disks (not partitions) with lsblk?
You want to list only the disks (not their partitions) on your system using lsblk. Which command achieves this?
Attempts:
2 left
💡 Hint
The option '-d' shows only disks, no children.
✗ Incorrect
The '-d' option in lsblk lists only the disks without showing partitions or other children.
🧠 Conceptual
expert2:00remaining
What is the effect of running 'fdisk -l' without root privileges?
You run
fdisk -l as a normal user without sudo. What happens?Linux CLI
fdisk -l
Attempts:
2 left
💡 Hint
fdisk needs root to read disk info.
✗ Incorrect
Without root privileges, fdisk cannot access disk info and shows a permission denied error.