From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Buesch Date: Mon, 06 Mar 2006 21:59:31 +0000 Subject: Re: Libvolume incorrectly detects FAT32 Message-Id: <200603062259.32462.mbuesch@freenet.de> MIME-Version: 1 Content-Type: multipart/mixed; boundary="nextPart3268003.PkusDEEZ3J" List-Id: References: <20060306215704.35f12840@silver> In-Reply-To: <20060306215704.35f12840@silver> To: linux-hotplug@vger.kernel.org --nextPart3268003.PkusDEEZ3J Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Monday 06 March 2006 21:57, iSteve wrote: > Hello, > I'm having one silly partition, which has remnants of previous FAT32 file= system > on it, a LILO bootloader on it and ext2 filesystem spaning all over the > partition. >=20 > The first 512B look exactly like a valid FAT partition header would, exce= pt the > magic is "LILO".=20 >=20 > I've looked at the sources for FAT detection, and I noted that when a FAT= =2Dlike > filesystem misses magic, it's still considered valid, since as comment sa= ys, > some old floppies may lack it. I consider this point valid, however, this > causes my partition to be detected, incorrectly, as FAT32. >=20 > My proposed solution is to compare magic if FAT32 is assumed, and if magi= c will > not match for FAT32, consider it a failure; floppies that old that they l= ack > any magic will most likely not be formatted in FAT32. >=20 > Trivial patch is attached, comments/complaints?:) Yes, I fear users of stupid digicams may get hit by this. The Formating option on cheap digicams may sometimes be buggy implemented. I think you should instead do a dd if=3D/dev/zero of=3D/dev/partition bs=3D512 count=3D1 and reformat your partition. =2D-=20 Greetings Michael. --nextPart3268003.PkusDEEZ3J Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBEDLDElb09HEdWDKgRAkBoAJ9lHV6Rwz99O1hxYLp6kTRXOeZgaACgvPZE SgtDaez8QxRWZVfpsy+Bgps= =ZSrI -----END PGP SIGNATURE----- --nextPart3268003.PkusDEEZ3J-- ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel