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!

link|improve this question

feedback

2 Answers

up vote 3 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.

Example:

# mkfs -t vfat /dev/sda1
link|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
feedback

If fdisk segfaults, then try cfdisk or sfdisk.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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