very large FAT16 partition not readable on 2.6.0-test11
Hi all,
I just bought a new USB/Firewire external drive. It comes pre-formatted as FAT16 (or so shows fdisk) as one big 80Gb partition. Unfortunately, Linux can't seem to mount this partition, and I get the following dmesg output when trying to mount the partition:
FAT: bogus number of reserved sectors
VFS: Can't find a valid FAT filesystem on dev sdb1.
Now before I blow it away and put a sane filesystem on this disk, I saved off the MBR and the initial portion of the partitions if anyone wants to poke around and take a look at it. I'll keep the filesystem as-is for a few days if anyone wants me to get any more data from it.
The files are:
kernel.org/pub/linux/kernel/people/gregkh/fat16_mbr.gz (generated by: 'dd if=/udev/sdb count=1 bs=512 > fat16_mbr') kernel.org/pub/linux/kernel/people/gregkh/fat16_sdb.gz (generated by: 'dd if=/udev/sdb count=1000 bs=512 > fat16_sdb') kernel.org/pub/linux/kernel/people/gregkh/fat16_sdb1.gz (generated by: 'dd if=/udev/sdb count=1000 bs=512 > fat16_sdb1')
Oh, 2.4.23 also can't seem to read it, so it doesn't look like this is a regression or anything.
thanks,
greg k-h
Quoted 11 lines · Greg KH
I just bought a new USB/Firewire external drive. It comes pre-formatted as FAT16 (or so shows fdisk) as one big 80Gb partition. Unfortunately, Linux can't seem to mount this partition, and I get the following dmesg output when trying to mount the partition:
FAT: bogus number of reserved sectors
VFS: Can't find a valid FAT filesystem on dev sdb1.Now before I blow it away and put a sane filesystem on this disk, I saved off the MBR and the initial portion of the partitions if anyone wants to poke around and take a look at it. I'll keep the filesystem as-is for a few days if anyone wants me to get any more data from it.
Good.
* fat16_sdb1: this is all zeros. No filesystem at all, which explains why it won't mount.
* fat16_mbr: nothing wrong here
Device Boot Start End #sectors Id System
fat16_mbr1 63 156360644 156360582 6 FAT16 fat16_mbr2 0 - 0 0 Empty fat16_mbr3 0 - 0 0 Empty fat16_mbr4 0 - 0 0 Empty
* fat16_sdb:
There is a little bit of data here - don't know what it is.
Andries
Quoted 8 lines · Andries Brouwer
Quoted 6 lines · Greg KH
I just bought a new USB/Firewire external drive. It comes pre-formatted as FAT16 (or so shows fdisk) as one big 80Gb partition. Unfortunately, Linux can't seem to mount this partition, and I get the following dmesg output when trying to mount the partition:
FAT: bogus number of reserved sectors
VFS: Can't find a valid FAT filesystem on dev sdb1.
May I make a programming style suggestion? When you find a parameter out-of-range, don't just print that it's out of range, but print the actual value as well. This message would have become:
FAT: Number of reserved sectors (0) out of range.
Even better would be to print the range as well:
FAT: Number of reserved sectors (0) out of range (1..16).
(I just made the number up, I haven't looked in the code what the valid range actually is...).
Roger.
Signature · 3 lines
** [email protected] ** http://www.BitWizard.nl/ ** +31-15-2600998 ** *-- BitWizard writes Linux device drivers for any device you may have! --* **** "Linux is like a wigwam - no windows, no gates, apache inside!" ****
Quoted 14 lines · Andries Brouwer
Quoted 11 lines · Greg KH
I just bought a new USB/Firewire external drive. It comes pre-formatted as FAT16 (or so shows fdisk) as one big 80Gb partition. Unfortunately, Linux can't seem to mount this partition, and I get the following dmesg output when trying to mount the partition:
FAT: bogus number of reserved sectors
VFS: Can't find a valid FAT filesystem on dev sdb1.Now before I blow it away and put a sane filesystem on this disk, I saved off the MBR and the initial portion of the partitions if anyone wants to poke around and take a look at it. I'll keep the filesystem as-is for a few days if anyone wants me to get any more data from it.
Quoted 4 lines
Good.
*
fat16_sdb1: this is all zeros. No filesystem at all, which explains why it won't mount.
Ok, you're right. It can't mount on a Windows box either. Seems to need to be formatted for any os that uses it. So I've just put ext3 on it and it runs just fine for me.
Sorry for the disruption, and thanks for looking into it.
greg k-h