How to create partitions?

To create partitions on a disk using fdisk, follow these steps:

  1. Open a terminal and run fdisk with the appropriate disk device. Replace /dev/sdX with your actual disk identifier (e.g., /dev/sda):

    sudo fdisk /dev/sdX
  2. Inside the fdisk interactive prompt, you can use the following commands:

    • n: Create a new partition.
    • d: Delete a partition.
    • t: Change a partition's system ID.
    • w: Write the changes and exit.
  3. After creating or modifying partitions, always remember to write the changes with the w command to ensure they are saved.

Note: Be cautious when modifying partitions, as improper changes can lead to data loss. Always back up important data before proceeding.

0 Comments

no data
Be the first to share your comment!