LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 12-12-2004, 12:11 AM   #1
zatka
Member
 
Registered: Dec 2003
Distribution: Fedora 7
Posts: 75

Rep: Reputation: 15
formatting a usb flash drive


hi guys,

can anybody pls tell me how do u format a usb flash drive under linux?
i have an lg m-disk which linux recognises and mounts in /mnt/flash but fails to copy any data on it.
Under win xp, i get a msg asking me if i want to format the drive. if i select yes it does not format saying windows was unable to format the drive.

pls help me out.
thanks in advance.
 
Old 12-12-2004, 12:57 AM   #2
nixcraft
Member
 
Registered: Nov 2004
Location: BIOS
Distribution: RHEL3.0, FreeBSD 5.x, Debian 3.x, Soaris x86 v10
Posts: 379

Rep: Reputation: 30
Use fdisk and other normal utilities. Find out device mapped to your usb flash device and then run to create/delete partition:
fdisk /dev/your-device

To format it run command:
mke2fs /dev/your-device

You can also create VFAT partition on it so that windows can same device.

It is that simple.
 
Old 12-12-2004, 08:04 AM   #3
otoomet
Member
 
Registered: Oct 2004
Location: Tartu, Ċrhus,Nürnberg, Europe
Distribution: Debian, Ubuntu, Puppy
Posts: 588

Rep: Reputation: 45
You should remove the previous partitions. On new usb-stics, you can find arbitrary partitions which, of course, do not work. Use

# fdisk /dev/sda

or whatever your device, delete the pre-existing carbage, make a new partition, and format it using

# mkfs -t vfat /dev/sda1

or whatever filesystem do you like.

Gurus -- are there any graphical frontends in gnome/kde?

best,

Ott
 
  


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
Formatting a usb drive guldo Linux - Hardware 11 10-09-2005 11:16 AM
Formatting USB ZIP Drive solarisrob Solaris / OpenSolaris 1 08-01-2005 02:44 PM
formatting a usb flash drive to fat32 Haiyadragon Linux - General 4 07-10-2005 07:45 PM
Flash Drive no longer mountable after formatting daleman Linux - Hardware 2 04-14-2005 12:35 AM
Formatting Floppy Usb Drive Redhat9 lorenzo111 Red Hat 6 05-03-2004 04:45 PM


All times are GMT -5. The time now is 06:51 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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration