Messages in this thread | | | Date | Fri, 24 Oct 2003 20:59:53 +0200 | From | Andries Brouwer <> | Subject | Re: *FAT problem in 2.6.0-test8 |
| |
On Fri, Oct 24, 2003 at 12:32:26PM +0200, Vid Strpic wrote:
> Yesterday, I just wanted to download some pics from a Smartmedia card > from my camera. I put the card into the reader (USB Mass Storage Flash > Card Reader, Manufacturer: EZ, Serial Number: 9876543210ABCDEF, driver > is usb-storage and working well now, I had problems earlier), but the > kernel doesn't recognize FAT filesystem on the card... > > Oct 23 17:19:01 moria kernel: FAT: invalid first entry of FAT (0xff8 != 0x0) > > Luckily, I have a 2.4 machine around, I tried to mount the resulting > disk image (NFS) on that machine (-o loop ofcourse), and it worked > perfectly... kernel is 2.4.22. > > Any ideas what's wrong?
Go to linux/fs/fat, edit inode.c, comment the bit
if (FAT_FIRST_ENT(sb, media) != first && (media != 0xf8 || FAT_FIRST_ENT(sb, 0xfe) != first)) { if (!silent) { printk(KERN_ERR "FAT: invalid first entry of FAT " "(0x%x != 0x%x)\n", FAT_FIRST_ENT(sb, media), first); } goto out_invalid; }
out by putting #if 0 ... #endif around it.
How was this card formatted?
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |