LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Thread Tools
Old 03-02-2006, 02:41 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 2,745
Thanked: 0
USB Flash Drive partitioning


[Log in to get rid of this advertisement]
Hi folks,

I found something funny on formatting USD Flash Drive.

# mkfs.msdos /dev/sda
Code:
mkfs.msdos 2.8 (28 Feb 2001)
mkfs.msdos: Will not try to make filesystem on '/dev/sda'
Failed

I have to partition the Flash Drive and then run;

# mkfs.msdos /dev/sda1
Code:
mkfs.msdos 2.8 (28 Feb 2001)
It worked.

# mkfs.vfat/mkfs -t vfat/etc. the same.

The Drive must be partitioned. It took me an hour to discover it.

Any suggestion? TIA

B.R.
satimis
satimis is offline     Reply With Quote
Old 03-02-2006, 02:48 AM   #2
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Gentoo
Posts: 1,672
Thanked: 16
Quote:
Any suggestion?
About what? This is perfectly normal. You dont put a filesystem to /dev/hda eighter - instead you have 1 or more partitions which then can each have filesystems.
The Flash-Drive is a little harddrive without moving parts.
jomen is offline     Reply With Quote
Old 03-02-2006, 03:22 AM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 2,745
Thanked: 0

Original Poster
Hi jomen,

Quote:
About what?
Sorry, I haven't made my question clear. I need to format the whole Flash Drive as vfat/msdos. I did not find a solution.

B.R.
satimis
satimis is offline     Reply With Quote
Old 03-02-2006, 03:47 AM   #4
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Gentoo
Posts: 1,672
Thanked: 16
but that is what you did!
fdisk /dev/sda
or
cfdisk /dev/sda - 1 (one) partition the size of the whole thing - thats what it is already more than likely
mkfs worked - everything is fine - or are there problems?
jomen is offline     Reply With Quote
Old 03-02-2006, 03:56 AM   #5
satimis
Senior Member
 
Registered: Apr 2003
Posts: 2,745
Thanked: 0

Original Poster
Hi jomen,

Ran;
# fdisk /dev/sda


# mkfs.msdos /dev/sda1
and
# mkfs -t ext2 /dev/sda2

went through. Neither had complaint.

B.R.
satimis
satimis is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 flash drive 1337_n00b Amigo 1 02-13-2005 01:25 AM
USB Pen Drive Partitioning esckey2004 Linux - General 1 12-10-2004 03:34 PM
USB flash drive crazyking Linux - Newbie 1 05-17-2004 12:25 PM
USB 2.0 Flash Drive fusee Linux - Hardware 3 04-16-2004 06:46 PM
USB Flash Drive Hady Linux - Hardware 1 11-20-2003 02:41 PM


All times are GMT -5. The time now is 08:31 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration