LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 01:41 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Rep: Reputation: 56
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, 01:48 AM   #2
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
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, 02:22 AM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

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

Rep: Reputation: 55
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, 02:56 AM   #5
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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

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