[Bug 152885] Re: USB unknown partition table
TJ
ubuntu at tjworld.net
Sun Mar 22 16:12:35 UTC 2009
Looking at the changes between v2.6.21 and v2.6.27 I see this. It may
explain why v2.6.21 works and Intrepid (v2.6.27) doesn't:
git log --pretty=format:"%h %ci %s" v2.6.21..v2.6.27 -- fs/partitions/msdos.c
0607fd0 2008-04-28 08:58:47 -0700 fat: detect media without partition table correctly
b84d879 2007-07-30 00:27:28 -0700 [PARTITION] MSDOS: Fix Sun num_partitions handling.
Of which 0607fd0 looks to have some involvement in this area, albeit to
detect non-partitioned FAT-formatted devices:
commit 0607fd02587a6b4b086dc746d63123c1f284db68
Author: Frank Seidel <fseidel at suse.de>
Date: Mon Apr 28 02:16:31 2008 -0700
fat: detect media without partition table correctly
I received a complaint that some FAT formated medias (e.g. sd memory cards)
trigger a "unknown partition table" message even though there is no partition
table and they work correctly, while in general (when e.g. formated with
mkdosfs or even Windows Vista) this message is not shown.
Currently this seems only to happen when the medias get formatted with Windows
XP (and possibly Win 2000). Then the boot indicator byte contains garbage
(part of text message) and so do the other parts checked by msdos_paritition
which then later triggers this message.
References: novell bug #364365
Most fat formatted media without partition table contains zeros in the boot
indication and the other tested bytes and so falls through the checks in
msdos_partition, leading it to return with 1 (all is fine).
But some (e.g. WinXP formatted) fat fomated medias don't use boot_ind and so
the check fails and causes a "unkown partition table" warning eventhough there
is none and everything would be fine.
This additional check directly verifies if there is a fat formatted medium
without a partition table.
Signed-off-by: Frank Seidel <fseidel at suse.de>
Cc: Andreas Dilger <adilger at sun.com>
Acked-by: OGAWA Hirofumi <hirofumi at mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
--
USB unknown partition table
https://bugs.launchpad.net/bugs/152885
You received this bug notification because you are a member of Kernel
Bugs, which is subscribed to Linux.
More information about the kernel-bugs
mailing list