LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-30-2004, 04:58 PM   #1
endfx
Member
 
Registered: May 2003
Location: Canada
Distribution: Debian
Posts: 105

Rep: Reputation: 15
USB flashdrive problems


I have 2 usb flash drives.
One of them works just fine with regular command:
mount -t vfat /dev/sda1 /mnt/usbflash

However with the other one I get the following:
debian:/proc/bus/usb# mount -t vfat /dev/sda1 /mnt/usbflash/
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
or too many mounted file systems
(aren't you trying to mount an extended partition,
instead of some logical partition insid

I know its a fat filesystem (from windows XP)

Any Ideas?
Thanks.

Oh, I'm using debian sarge, with kernel version 2.6.8
 
Old 12-30-2004, 06:06 PM   #2
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
Re: USB flashdrive problems

Quote:
Originally posted by endfx
I know its a fat filesystem (from windows XP)
Are you 100% certain that the USB drive was formatted as vfat? If it was done on XP then the default would be NTFS -- J.W.
 
Old 12-30-2004, 06:11 PM   #3
endfx
Member
 
Registered: May 2003
Location: Canada
Distribution: Debian
Posts: 105

Original Poster
Rep: Reputation: 15
Yes, I'm sure it's fat filesystem.
I didn't format it in WinXP, I just loaded it up in WinXP to make sure it works.
WinXP tells me it's a fat filesystem.
 
Old 12-30-2004, 08:05 PM   #4
guzzi
Member
 
Registered: Jun 2004
Location: Lawrence, KS
Distribution: Slackware
Posts: 313

Rep: Reputation: 40
usb memstick

Hello endfx

I went through the same stuff you are doing.

What I discovered through tinkering with a 256meg Cig@r Pro 2 is that it is made up of several segments/partitions.

mount /dev/sdb -t vfat /mnt/usbmem makes it work. And I can use/see all of the 256meg with that command. Odd, isn't it?

Yours may be sda.

I am running Slackware 10 (2.4.26 acpi) on a Sony grz530 where this works.

Good Luck
 
Old 12-30-2004, 09:07 PM   #5
endfx
Member
 
Registered: May 2003
Location: Canada
Distribution: Debian
Posts: 105

Original Poster
Rep: Reputation: 15
That still seems to be giving me the same error:

debian:/home/mike# mount /dev/sda -t vfat /mnt/usbflash/
mount: wrong fs type, bad option, bad superblock on /dev/sda,
or too many mounted file system

I'm thinking about reformatting it using WinXP (as fat32 again)
I don't think that will do anything though.

As well, I can't open the drive in fdisk or cfdisk. Shouldn't I be able to view this
thing with fdisk or cfdisk?
 
Old 12-31-2004, 03:36 AM   #6
Caysho
Member
 
Registered: Sep 2002
Location: Perth Australia
Distribution: OpenWRT, debian, Ubuntu
Posts: 135
Blog Entries: 20

Rep: Reputation: 15
You might need to mount /dev/sda1

If fdisk can't see it, then you're using the wrong device point.
Check the device name with a hardware manager.

Use the following as root to see what happens when you plug it in - it might also give an indication if the box can't see it.
Code:
tail -f /var/log/messages
 
Old 12-31-2004, 03:37 PM   #7
endfx
Member
 
Registered: May 2003
Location: Canada
Distribution: Debian
Posts: 105

Original Poster
Rep: Reputation: 15
debian:/home/mike# tail -f /var/log/messages
Dec 31 15:34:03 localhost kernel: usb 5-4: new high speed USB device using address 4
Dec 31 15:34:03 localhost kernel: scsi2 : SCSI emulation for USB Mass Storage devices
Dec 31 15:34:03 localhost kernel: Vendor: Kingston Model: DataTraveler 2.0 Rev: 4.10
Dec 31 15:34:03 localhost kernel: Type: Direct-Access ANSI SCSI revision: 02
Dec 31 15:34:03 localhost kernel: SCSI device sda: 503808 512-byte hdwr sectors (258 MB)
Dec 31 15:34:03 localhost kernel: sda: assuming Write Enabled
Dec 31 15:34:03 localhost kernel: /dev/scsi/host2/bus0/target0/lun0: [CUMANA/ADFS] p1<5>Attached scsi removable disk sda at scsi2, channel 0, id 0, lun 0
Dec 31 15:34:03 localhost scsi.agent[4835]: disk at /devices/pci0000:00/0000:00: 1e.0/0000:02:04.2/usb5/5-4/5-4:1.0/host2/2:0:0:0
Dec 31 15:34:04 localhost usb.agent[4829]: usb-storage: already loaded
Dec 31 15:34:55 localhost kernel: VFS: Can't find a valid FAT filesystem on dev/sda1.


Does this tell you anything?
The last line looks a little strange.
 
Old 12-31-2004, 03:47 PM   #8
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Format the drive. If data is on it and needs to be saved then backup the data that can be read from another computer, fdisk to remove partitions, and format it under linux.

Brian1
" Google the Linux way @ http://www.google.com/linux "
 
Old 12-31-2004, 07:04 PM   #9
endfx
Member
 
Registered: May 2003
Location: Canada
Distribution: Debian
Posts: 105

Original Poster
Rep: Reputation: 15
formatted (repartitioned) it with cfisk.
Same problems.
 
Old 01-01-2005, 10:46 AM   #10
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Could be an issue with the kernel. Have you tried a newer kernel? Or do you have an older kernel installed to try with. USB can just be flakey from kernel to kernel release.

Brian1
" Google the Linux way @ http://www.google.com/linux "
 
Old 01-01-2005, 11:02 AM   #11
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Just a thought when you repartitioned it you had access to the partition table?
You are able to remove then create partitions?
Able to define partition filesystem?
Able to save and exit?
Then can you format it?

After that what is the output of ' /sbin/fdisk -l '
Brian1
" Google the Linux way @ http://www.google.com/linux "
 
Old 01-01-2005, 05:40 PM   #12
hack124x768
Member
 
Registered: Mar 2004
Location: everett
Distribution: slak
Posts: 61

Rep: Reputation: 15
I dont monkey with any of the partitions on my usb drives. I just make a dir for them in /mnt and mount it with 'mount /dev/sda1 /mnt/pen' (or '/mnt/fuji' for the camera). Im using slackware 9.1 and a SD Cruzer 128mb and a Fuji s3000. hope this helps. (im still a bit n00bish with linux )
 
  


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
can not mount usb flashdrive walterbyrd Debian 14 03-18-2006 12:53 PM
Problems mounting USB flashdrive gustavderdrache Linux - Hardware 6 03-18-2006 12:49 PM
still more USB flashdrive problems... Lord Zoltar Linux - Hardware 8 01-22-2005 12:38 PM
USB FlashDrive -- Again kadalz Linux - Newbie 1 10-12-2003 11:20 AM
USB Flashdrive disto cli_man General 7 02-23-2003 04:56 AM

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

All times are GMT -5. The time now is 11:41 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
Open Source Consulting | Domain Registration