KandZ – Tuts

We like to help…!

Linux CLI 28 ๐Ÿง fdisk command

a - fdisk
fdisk is used to manage partition tables on HDD/SDD/devices
You can create, delete, resize partitions...
change their types or even check their status
fdisk -l โ†’ lists the partition tables of your devices
fdisk -l /dev/sda โ†’ lists the partition tables for sda device
fdisk -s /dev/sda โ†’ prints the size of sda partition
fdisk /dev/sda โ†’ press m โ†’ shows all the disk commands

b - create, delete and change partition type with fdisk
to create partition: fdisk /dev/sda โ†’ press n โ†’ press p for primary or extended
โ†’ choose the partition number โ†’ enter first and last sector for this partition โ†’ w to write the changes
to delete partition: fdisk /dev/sda โ†’ press d โ†’ select partition number โ†’ w to write the changes
to change partition type: fdisk /dev/sda โ†’ press t โ†’ then L to list the partition types
โ†’ enter the partition number you want โ†’ w to write the changes
to quit without writing the changes: q
You can also create new empty partition table :
b โ†’ for GPT, o โ†’ MBR, G โ†’ for SGI and s โ†’ Sun

Stop using slow, ad-bloated tool sites! ๐Ÿคฎ

๐Ÿ”Ž Search “KandZ Tools” on Google to use many professional utilities for free.

KandZ.me is the ultimate minimalist hub for:
โœ… Finance (Mortgage, Interest, Inflation)
โœ… Tech (Base64, JSON, Dev Suite, IP)
โœ… Health (BMI, BMR, TDEE)
โœ… Productivity (Timer, Workspace, QR)

โšก๏ธ Fast & Private
๐Ÿ”’ No data leaves your device
๐Ÿ’Ž 100% Free

๐Ÿ”— Use it now: https://tools.kandz.me
๐Ÿ”– Bookmark itโ€”youโ€™ll need it later!

Leave a Reply