LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-13-2006, 02:21 AM   #1
tux_addict
Member
 
Registered: Dec 2004
Location: Nairobi, Kenya
Distribution: Ubuntu 21.10, Debian 11 (Bullseye)
Posts: 91

Rep: Reputation: 15
How to format USB flashdrive


A couple of days ago the formatting on my USB flashdrive got messed up. I went looking for a way to format the flashdrive, but the solutions weren't very helpful. In the end, this is how I did it (in case anyone else runs into the same problem):
# mkdosfs -cvF 32 -I /dev/sda
This will give you the FAT 32 filesystem on your flashdrive. As for the various options (cvFI), please do a `man mkdosfs' to find out more about them.
Cheers.
 
Old 11-13-2006, 02:29 AM   #2
BittaBrotha
Member
 
Registered: Jan 2002
Location: Third Stone from the Sun
Distribution: Debian Sid, SourceMage 0.9.5, & To be Continued on a TP
Posts: 800

Rep: Reputation: 31
Good info. Thnx.
 
Old 11-13-2006, 12:54 PM   #3
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Rep: Reputation: 63
I have a thumbdrive that took a dive on me, or so I suspect. I tried this out, but I never get a /dev/sda1 device. Do you need or know how to make a new partition table on one of these devices?

I have another thumbdrive and it works fine, tho I never had to reformat yet.
 
Old 11-13-2006, 02:09 PM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by Old_Fogie
I have a thumbdrive that took a dive on me, or so I suspect. I tried this out, but I never get a /dev/sda1 device. Do you need or know how to make a new partition table on one of these devices?

I have another thumbdrive and it works fine, tho I never had to reformat yet.
I have that info at the end of my "booting from a USB stick" Wiki packge: restoring_a_usb_stick_to_its_original_state

By the way, I don't know whether it makes a difference using a FAT filesystem on a partitionless device (/dev/sda) or on a partitioned device (/dev/sda1). My USB stick is always partitioned.

Eric
 
Old 11-13-2006, 10:04 PM   #5
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
shouldn't just : fdisk /dev/sda be good enough?
 
  


Reply



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
USB flashdrive: no /dev Dakota Mike Slackware 4 03-22-2006 11:06 AM
still more USB flashdrive problems... Lord Zoltar Linux - Hardware 8 01-22-2005 12:38 PM
USB flashdrive problems endfx Linux - Hardware 11 01-01-2005 05:40 PM
USB FlashDrive -- Again kadalz Linux - Newbie 1 10-12-2003 11:20 AM
USB Flashdrive disto cli_man General 7 02-23-2003 04:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:55 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