Questions tagged [fdisk]

fdisk was a command-line disk partitioning tool in Linux and old versions of Windows/MS-DOS. It is deprecated on Linux by its inability to handle GPT disks. New systems should use diskpart (Windows) or parted (Linux) to partition disks.

fdisk was a command-line disk partitioning tool in Linux and old versions of Windows/MS-DOS. It is deprecated on Linux by its inability to handle GPT disks. New systems should use diskpart (Windows) or parted (Linux) to partition disks.

155 questions
11
votes
2 answers

using fdisk: show size in a unit such as MB or GB

doing a fdisk -l is a quite convenient command, but how to make fidsk print the partition size in a unit such as MB or GB?
0
votes
1 answer

fdisk - list all hard drives more simply

Is there a neater way to list hard drives with fdisk? If I run fdisk -l I get the Disk, Units, Sector size, I/O size, etc - all distracting stuff. I can run fdisk -l | grep "Disk /" but this seems a bit of a hack. Is there a better…
Snowcrash
  • 1,157
0
votes
1 answer

How i revert creating partition table inside a partition

I wanted to add a partition to the /dev/sda mistakenly, I started fdisk with /dev/sda2 and treated It like a disk. How do i revert it? ghostrider@dev1:~$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 800G 0 disk ├─sda1 …