Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I had fdisk segfault and just wondered if anyone had any other options?

EDIT: It was late and that was a dumb question. Good answer though!

share|improve this question
up vote 4 down vote accepted

fdisk is for partitioning drives. To format a drive, you would use the mkfs command. You need to specify the filesystem type using the -t option. I believe the default is ext2. The mkfs man page will explain more.


# mkfs -t vfat /dev/sda1
share|improve this answer
Note that gnu-fdisk can create a filesystem in addition to partitioning disks (and also resize, copy and move partitions). – pgs Jun 7 '09 at 9:45
Aye, it appears that gnu-fdisk is a reimplementation of the util-linux fdisk based on libparted. I suspect that most distributions ship util-linux fdisk by standard. You might as well use parted as that has a much nicer user interface than fdisk, which frankly wouldn't be hard. :) – David Pashley Jun 7 '09 at 10:20

If fdisk segfaults, then try cfdisk or sfdisk.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.