LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 12-22-2003, 04:27 AM   #1
thorwil
LQ Newbie
 
Registered: Apr 2003
Location: germany
Distribution: gentoo
Posts: 7

Rep: Reputation: 0
Linux 2.6 vfat mounting problem


Hi!

Linux 2.6 will not mount my vfat data partition:

Code:
wrong fs type, bad option, bad superblock on /dev/hdc1, or too many mounted file systems.
From dmesg:

Code:
FAT: invalid first entry of FAT (0xffffff8 != 0xfffff00) 
 VFS: Can't find a valid FAT filesystem on dev hdc1.
There was no problem with some previous versions 2.5 and some betas. Old 2.4 has no problem with mounting.
fsck.vfat on 2.4 says everything fine, but under 2.6 it complains alot. (I do not have that output.) Letting it try to repair doesn't fix the problem.
Can it be that 2.6 is correct and 2.4 just ignores a problem?
Any ideas on how to solve the problem?
 
Old 12-22-2003, 05:54 AM   #2
TheOneKEA
Member
 
Registered: Oct 2003
Distribution: Debian GNU/Linux 11 (amd64) w/kernel 6.0.15
Posts: 299

Rep: Reputation: 30
The 2.6 vfat driver is more strict when checking for the FAT superblock; the 2.4 driver is not. There are patches floating around which relax these checks and allow the 2.6 vfat driver to mount these filesystems - the 2.6 driver is actually wrong, compared to the behavior of the 2.4 driver.
 
Old 12-22-2003, 06:54 AM   #3
thorwil
LQ Newbie
 
Registered: Apr 2003
Location: germany
Distribution: gentoo
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks!

But I can't find anything about such patches. Google, LKML, KernelNewbies: nothing. Searched for combinations of "linux", "2.6", "vfat", "patch" on google and tried "vfat", "fat" and "fat32" on lkml.org.

So where should I look or what should I search for more precisely?
 
Old 12-22-2003, 02:53 PM   #4
TheOneKEA
Member
 
Registered: Oct 2003
Distribution: Debian GNU/Linux 11 (amd64) w/kernel 6.0.15
Posts: 299

Rep: Reputation: 30
http://www.lib.uaa.alaska.edu/linux-kernel/

http://www.lib.uaa.alaska.edu/linux-...k-42/1060.html

That's probably what you want.
 
Old 12-22-2003, 03:31 PM   #5
thorwil
LQ Newbie
 
Registered: Apr 2003
Location: germany
Distribution: gentoo
Posts: 7

Original Poster
Rep: Reputation: 0
Thank you very much!

I somehow managed to miss that on my LKML search.
I'm not entirely sure, but I think I formated with mkfs.vfat, not from windows. Maybe thats rather uncommon, so that this didn't happen to a lot of other dual booters.
 
Old 12-23-2003, 03:37 AM   #6
thorwil
LQ Newbie
 
Registered: Apr 2003
Location: germany
Distribution: gentoo
Posts: 7

Original Poster
Rep: Reputation: 0
Windows chkdsk found and corrected many problems on the filesystem. So allthough everything seemed to be working fine under 2.4, 2.6 was right to complain. Now there's no problem with mounting.
 
Old 12-23-2003, 06:52 AM   #7
TheOneKEA
Member
 
Registered: Oct 2003
Distribution: Debian GNU/Linux 11 (amd64) w/kernel 6.0.15
Posts: 299

Rep: Reputation: 30
Great job
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Vfat mounting problem lamiczka Linux - Software 2 05-09-2005 01:30 PM
VFAT mounting problem NumbThumb Linux - General 2 08-18-2003 03:26 PM
problem mounting vfat fraction Linux - General 6 04-19-2003 10:25 AM
problem mounting VFAT from fstab Kocil Linux - General 3 03-05-2003 02:02 AM
Problem mounting vfat partition!!! yalanop Linux - Newbie 1 02-02-2003 03:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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