Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

2 Answers

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.

Example:

# 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
add comment

If fdisk segfaults, then try cfdisk or sfdisk.

share|improve this answer
add comment

Your Answer

 
discard

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.