LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-14-2005, 09:56 AM   #1
rosslaird
Member
 
Registered: Jul 2003
Location: Vancouver
Posts: 76

Rep: Reputation: 16
fdisk, sfdisk, cfdisk: driving me crazy


I have attempted to repartition (about 20 times) my 512 meg flash usb disk (so that I can install damnsmalllinux on it). I keep running into problems, depending on which partitioning software I use.

I have read that sfdisk is the best for flash drives, but when I use that tool my drive won't mount ("cannot find valid vfat filesystem", or something like that, even though I have specified that the fs be fat16 and the verfification shows it to be).

Also, sfdisk is the most horribly awkward piece of software that I have ever come across. Probably I'm doing something wrong because I don't understand the program well enough (I have other problems with fdisk and cfdisk, probably due to the fact that I am not an uber-geek).

Can someone show me the command to create a single partition on the device, bootable, in fat16 format? (when I've done it, sfdisk always creates four partitions). It's the commas and the semicolons where I get mixed up. I want to remove the other three partitions and just leave the one. And, I want to make sure that the thing will mount.
 
Old 02-14-2005, 10:24 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
The man pages for sfdisk states that using sfdisk to create partitions is "very dangerous".
I think you might be better off using parted to 1) delete all the partitions on the disk, then 2) create a single partition on the disk.
When that is done, use parted with the mkfs option (see the man page for parted) to format for fat 16.
 
Old 02-14-2005, 11:20 AM   #3
rosslaird
Member
 
Registered: Jul 2003
Location: Vancouver
Posts: 76

Original Poster
Rep: Reputation: 16
progress

Thanks for the prompt reply.
Why is everyone (in all the googling I did) using sfdisk (and fdisk and cfdisk) for this kind of thing?
Parted works:

mkpartfs primary fat16 0 495
set 1 boot on

Done. Easy.

(I did see the "dangerous" warning, but thought it had to do with accidentally overwriting data, and since there was no data on the disk..)

Thanks again.
 
Old 02-14-2005, 01:21 PM   #4
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
Well, I'm glad you achieved your goal with parted. I've used fdisk all the time and got comfortable with it. Once you understand how the software works, it's pretty easy to use. At first, it can get daunting but once you spend more time with it, you get the feel of it. Kind of like migrating windows->linux.

-twantrd
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CFdisk does not see new HD but Fdisk does? BajaNick Linux - Software 6 08-28-2004 10:31 AM
Which Disk tool to USE? FDISK;CFDISK;SFDISK montyw47 Linux - Newbie 1 07-17-2004 03:21 AM
Help this is driving me crazy!!!!!! Wolfy Linux - Hardware 1 07-07-2004 01:32 AM
fdisk and sfdisk devinWhalen Linux - Distributions 5 04-08-2003 11:20 AM
fdisk,cfdisk,sfdisk not in my distro of RH 8.0 personal thehamguy1 Linux - Newbie 5 02-28-2003 12:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration