Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 !
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).
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?
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.
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?
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.