All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andries Brouwer <aebr@win.tue.nl>
To: Vid Strpic <vms@bofhlet.net>, linux-kernel@vger.kernel.org
Subject: Re: *FAT problem in 2.6.0-test8
Date: Fri, 24 Oct 2003 20:59:53 +0200	[thread overview]
Message-ID: <20031024185953.GA9265@win.tue.nl> (raw)
In-Reply-To: <20031024103225.GC1046@home.bofhlet.net>

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?


  reply	other threads:[~2003-10-24 18:59 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-24 10:32 *FAT problem in 2.6.0-test8 Vid Strpic
2003-10-24 18:59 ` Andries Brouwer [this message]
2003-10-25 10:18   ` OGAWA Hirofumi
2003-10-25 10:55     ` Vid Strpic
2003-10-25 16:43       ` OGAWA Hirofumi
2003-10-25 17:41         ` Vid Strpic
2003-10-25 18:32           ` OGAWA Hirofumi
2003-10-25 11:05     ` Andries Brouwer
2003-10-25 18:43       ` OGAWA Hirofumi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031024185953.GA9265@win.tue.nl \
    --to=aebr@win.tue.nl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=vms@bofhlet.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.