LinuxQuestions.org
Visit Jeremy's Blog.
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 02-21-2005, 01:01 PM   #1
paul167
LQ Newbie
 
Registered: Feb 2005
Posts: 7

Rep: Reputation: 0
Thumbs up Can't mount vfat after 2.6 migration [fixed]


Hello everyone

I just recently migrated to 2.6.10-gentoo-r6 from a 2.4 and I can't seem to mount any vfat partition anymore.
I have a fat32 filespace on /dev/hda1 which worked fine before but now I get:

f1x mnt # mount -t vfat /dev/hda1 /mnt/hda1/
mount: wrong fs type, bad option, bad superblock on /dev/hda1,
or too many mounted file systems

I believe the partition is fine because I dual-boot windows 2000 on it and it still loads fine.
I get the same error with another fat32 partition or my usb drive and digital camera, which I believe are all vfat devices.

My kernel looks like this:
x x <*> MSDOS fs support x x
x x <*> VFAT (Windows-95) fs support x x
x x (437) Default codepage for FAT x x
x x (iso8859-1) Default iocharset for FAT x x
x x <*> NTFS file system support x x
x x [ ] NTFS debugging support x x
x x [ ] NTFS write support

Those codepage / iocharset option are new in 2.6 could it have something to do with that ?
Or maybe it has something to do with the new udev ?

The device is there and seems ok:
f1x root # ls -l /dev/hda1
brw-rw---- 1 root disk 3, 1 Jul 18 2004 /dev/hda1

I don't know if this helps but here's a udevinfo output:
f1x root # udevinfo -q all -n hda1
P: /block/hda/hda1
N: hda1
T: b
M: 060660
S: ide/host0/bus0/target0/lun0/part1 discs/disc0/part1
O: root
G: disk
F: /etc/udev/rules.d/50-udev.rules
L: 22
U: 10

I don't know how to proceed, some help would be appreciated !

many thanks

paul

Last edited by paul167; 02-21-2005 at 05:10 PM.
 
Old 02-21-2005, 01:23 PM   #2
HalfDiminished
Member
 
Registered: Jan 2005
Location: Santa Barbara, CA
Distribution: Ubuntu Hoary/Debian 3.1/RHEL-WS3/DSL 1.1
Posts: 66

Rep: Reputation: 15
paul167,
Check out my similar problem with mounting a usb drive (FAT32 formatted) called:
"usb drive on Deb Sarge/2.6.10 mounting as msdos not vfat"

If you really need access to your data, try mounting as msdos (either in fstab or as a -t option with mount). Obviously, if you mount as msdos, all filenames will be truncated to 8.3 conventions, which is a real problem.

Be sure to post if you find a solution to this. I'm on the verge of going back to 2.4, but I think I'll work on it for a little while longer (and hopefully others more skilled than I are working too).
 
Old 02-21-2005, 02:48 PM   #3
Valhalla
Member
 
Registered: Nov 2004
Location: Atlanta
Distribution: Gentoo 2005.1, Ubuntu 5.10
Posts: 267

Rep: Reputation: 30
Just subscribing... I have same problem
 
Old 02-21-2005, 05:09 PM   #4
paul167
LQ Newbie
 
Registered: Feb 2005
Posts: 7

Original Poster
Rep: Reputation: 0
I just fixed it, someone helped me at gentoo forums:
http://forums.gentoo.org/viewtopic-t-298597.html

Just enable the right language support in filesystems.

Hope this helps !

++

paul
 
Old 04-10-2005, 04:57 PM   #5
BajaNick
Senior Member
 
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737

Rep: Reputation: 46
I have exact same problem but I am on slack.

This is the fix on the gentoo forum:
-----------------------------------------------------------------------------
filesystems -> Native Language Support

(iso8859-1) Default NLS Option
<*> Codepage 437 (United States, Canada)
<*> ASCII (United States)
<*> NLS ISO 8859-1 (Latin 1; Western European Languages)


Just enabled those 3 things and it works now.
------------------------------------------------------------------------------
But where do I enable these at?
 
Old 04-10-2005, 06:54 PM   #6
Valhalla
Member
 
Registered: Nov 2004
Location: Atlanta
Distribution: Gentoo 2005.1, Ubuntu 5.10
Posts: 267

Rep: Reputation: 30
They are in Filesystems -> Native Language Support
 
Old 04-10-2005, 07:45 PM   #7
BajaNick
Senior Member
 
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737

Rep: Reputation: 46
Is that a gentoo specific directory? cuz I cant find it.
Is filesystems the directory? and " Native Language Support " a file?
 
Old 04-10-2005, 07:50 PM   #8
Valhalla
Member
 
Registered: Nov 2004
Location: Atlanta
Distribution: Gentoo 2005.1, Ubuntu 5.10
Posts: 267

Rep: Reputation: 30
Oh, that is from the kernel configuration menu that pops up when you type make menuconfig. From the root menu you go to Filesystem and then Native Language support, and there should be a whole mess of codepages available for you to check.
 
Old 04-10-2005, 07:52 PM   #9
BajaNick
Senior Member
 
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737

Rep: Reputation: 46
yes, but isnt that when your compiling a new kernel?
 
Old 04-10-2005, 08:01 PM   #10
Valhalla
Member
 
Registered: Nov 2004
Location: Atlanta
Distribution: Gentoo 2005.1, Ubuntu 5.10
Posts: 267

Rep: Reputation: 30
Yes, it is, I had to recompile my kernel to get vfat support.
 
Old 04-10-2005, 08:05 PM   #11
BajaNick
Senior Member
 
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737

Rep: Reputation: 46
OMG! no friggin way? I had this darn flash drive mounted once. How could I have mounted it without vfat support? I must have a different problem then.
Do you know of a command that shows if vfat support is available or not?

Last edited by BajaNick; 04-10-2005 at 08:07 PM.
 
Old 04-10-2005, 09:56 PM   #12
Valhalla
Member
 
Registered: Nov 2004
Location: Atlanta
Distribution: Gentoo 2005.1, Ubuntu 5.10
Posts: 267

Rep: Reputation: 30
trying mounting it as -t msdos. If that works we probably have the same problem. It depends on how ur vfat support is compiled. You could use modprobe to search for it, but thats only if its a module. The easiest way would just be to check your kernel .config and see if you have vfat enabled. Recompiling a kernel isn't a big deal though, it took me 1/2 an hour the first time I did it.
 
Old 04-10-2005, 10:19 PM   #13
BajaNick
Senior Member
 
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737

Rep: Reputation: 46
I tried that to and no deal. I think its a different issue because I was able to mount it once and delete some files off of it. I just started a new thread.............:O
 
  


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
vfat charset mount help Iban Linux - General 3 11-08-2005 09:05 AM
Cannot mount vfat bsdpowa Fedora 5 07-28-2005 09:22 AM
VFAT mount permissions duckboy Linux - General 6 07-26-2005 03:56 AM
Can't mount VFAT oneandoneis2 Linux - Hardware 5 12-18-2004 10:54 PM
Mount vfat without execute? SharpyWarpy Linux - General 6 04-26-2003 09:22 PM

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

All times are GMT -5. The time now is 11:20 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