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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-14-2005, 09:56 AM
|
#1
|
Member
Registered: Jul 2003
Location: Vancouver
Posts: 76
Rep:
|
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.
|
|
|
02-14-2005, 10:24 AM
|
#2
|
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908
|
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.
|
|
|
02-14-2005, 11:20 AM
|
#3
|
Member
Registered: Jul 2003
Location: Vancouver
Posts: 76
Original Poster
Rep:
|
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.
|
|
|
02-14-2005, 01:21 PM
|
#4
|
Senior Member
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 04:24 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|