fdisk
DisksAdvanced In real LinuxView and edit disk partition tables
Name: fdisk = fixed disk (partitioning tool)
This command needs a real Linux system; you can practise it in real Linux mode.
Description
fdisk is an interactive partitioning tool to view, create and delete partitions and change their types, on MBR and GPT disks. Nothing changes until you press w, but once written data can be lost, so double-check the disk.
Syntax
fdisk [OPTION]... DEVICECommon options
| -l / --list | List partition tables |
| p | Interactive: print the partition table |
| n / d / w | (interactive) new / delete partition / write changes |
| t | Interactive: change a partition’s type (to Linux swap, say) |
| g / o | Interactive: a new empty GPT / MBR partition table |
| q | Interactive: quit without saving |