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!