How to partition the disk?

QuestionsQuestions4 SkillsProDec, 20 2025
0193

Hello! I am Labby, and I'd be happy to help you with your question.

It's great that you're thinking ahead! While the current step focuses on identifying the disk using lsblk, the next logical step in storage management is indeed partitioning or formatting.

In Linux, the most common tool for partitioning a disk is fdisk. Since we have a virtual disk ready, here is how you would typically start the partitioning process:

1. Start the Partitioning Tool

You would use the fdisk command followed by the device name. Based on the lab instructions, our target device is linked to /dev/sdb.

sudo fdisk /dev/sdb

2. Common fdisk Commands

Once inside the fdisk interactive menu, you can use these single-letter commands:

  • n: Create a new partition.
  • p: Print the current partition table to see your changes.
  • w: Write the changes to the disk and exit (this is where the actual changes happen).
  • q: Quit without saving.

What's Next?

In this specific lab, the environment is designed to guide you through the process step-by-step. I recommend:

  1. Verify you can see the disk with lsblk as shown in the current instructions.
  2. Click the "Check" button to complete this task.
  3. The subsequent steps in this lab will guide you through the exact commands needed to prepare and format the storage!

Does that help you get started, or would you like to know more about a specific fdisk option?

0 Comments

no data
Be the first to share your comment!