LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 07-09-2005, 05:43 AM   #1
Haiyadragon
Member
 
Registered: Sep 2003
Location: Gorredijk, Netherlands
Distribution: Arch Linux
Posts: 400

Rep: Reputation: 30
formatting a usb flash drive to fat32


I'm trying to format a usb stick (mp3 stick) to fat(32), whatever works for the thing. I can format it to ext2 fine but with mkdosfs I always get
Code:
mkdosfs: unable to get drive geometry for '/dev/uba1'
Any tips?
 
Old 07-09-2005, 10:21 PM   #2
stefan_nicolau
Member
 
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529

Rep: Reputation: 30
have you tried 'mkfs -t vfat'?
 
Old 07-10-2005, 05:09 AM   #3
Haiyadragon
Member
 
Registered: Sep 2003
Location: Gorredijk, Netherlands
Distribution: Arch Linux
Posts: 400

Original Poster
Rep: Reputation: 30
Then I get
Code:
mkfs.vfat: No such file or directory
. With " mkfs -t msdos /dev/uba1" I get the exact same error, the drive geometry thing. Surfing the internet I found some other people with the same problem. Is the mkdosfs package broken? I guess I'll install Windows and see how that bitch handles it. Now I'm grumpy.
 
Old 07-10-2005, 06:08 AM   #4
stefan_nicolau
Member
 
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529

Rep: Reputation: 30
Quote:
'/dev/uba1'
use the usb-storage driver instead of the ub dirver.

http://lists.zerezo.com/linux-usb-users/msg00051.html
http://forums.go-linux.org/about223.html
 
Old 07-10-2005, 07:45 PM   #5
Haiyadragon
Member
 
Registered: Sep 2003
Location: Gorredijk, Netherlands
Distribution: Arch Linux
Posts: 400

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by stefan_nicolau
use the usb-storage driver instead of the ub dirver.

http://lists.zerezo.com/linux-usb-users/msg00051.html
http://forums.go-linux.org/about223.html
Thanks. Too bad the default kernel will only load the ub (read: broken and slow-ass) driver. I'm actually not going to recompile anything.

Anyway, I got it to work. I downloaded and booted into the latest Knoppix (3.9) and tried the same thing. Knoppix also uses the ub driver (whyyyy?) so unmounting is really really slow. But, it seems to have a better mkdosfs:

Code:
mkdosfs /dev/uba1
mkdosfs 2.11 (12 Mar 2005)
unable to get drive geometry, using default 255/63
Notice the "using default bla". Very nice. Works like a charm.

Does anyone know if the 2.4 slack kernel also uses the ub driver?

edit. Slack 10.1 stock kernel (2.4.29) uses the usb-storage driver. Now I understand why it's the default kernel, stuff like this.

Last edited by Haiyadragon; 07-11-2005 at 01:39 PM.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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
Flash Drive no longer mountable after formatting daleman Linux - Hardware 2 04-14-2005 12:35 AM
Formatting External USB Drive Question highspeednodrag Linux - Hardware 1 02-17-2005 10:35 PM
formatting a usb flash drive zatka Linux - Hardware 2 12-12-2004 08:04 AM


All times are GMT -5. The time now is 03:07 PM.

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
Open Source Consulting | Domain Registration