O'Reilly logo

Getting Started with Cubieboard by Olliver M. Schinagl

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Modifying the partitions on a disk

The fdisk command, which stands for fixed disk, is a command that can create and modify partitions on a hard or flash disk. It requires a disk device node to be supplied as a parameter. While it is quite menu-driven, fdisk has a lot of commands. The most important ones are briefly summarized, as follows:

  • m: This command shows a help menu
  • p: This command prints the current partition table
  • o: This command wipes out the entire partition table and creates a new empty partition table
  • n: This command creates a new partition by answering a few questions that fdisk asks
  • d: This command deletes a partition
  • w: This command writes the created partition table to the disk and exits

Always take great care when working with partitions. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required