LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > 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
 
Search this Thread
Old 03-02-2006, 02:41 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,428

Rep: Reputation: 53
USB Flash Drive partitioning


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
 
Old 03-02-2006, 02:48 AM   #2
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 54
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.
 
Old 03-02-2006, 03:22 AM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,428

Original Poster
Rep: Reputation: 53
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
 
Old 03-02-2006, 03:47 AM   #4
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 54
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?
 
Old 03-02-2006, 03:56 AM   #5
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,428

Original Poster
Rep: Reputation: 53
Hi jomen,

Ran;
# fdisk /dev/sda


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

went through. Neither had complaint.

B.R.
satimis
 
  


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
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 10:59 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration