On Wed, Jul 17, 2019 at 12:16:28PM +0200, Karel Zak wrote: > On Thu, Jul 04, 2019 at 10:55:16PM +0100, Mike Fleetwood wrote: > > Hi, > > > > This is a bit more of a speculative than my other recent one, but I saw > > this quote in aix.c: > > "All fdisk-like programs has to properly wipe the first sector. > > Everything other is a bug." > > > > Using fdisk to create an MBR over the top of a whole disk FAT32 (and > > probably FAT16) file system doesn't clear any of the FAT32 boot record > > (aka super block). Blkid and wipefs report this as just an MBR, but > > because the boot record is intact, GNU parted reports this still as a > > whole disk FAT32 file system. > > This is bug. MBR probing code in fdisk is weak and it does not check for > false positives like blkid, so FAT32 is interpreted as MBR and the bootbits > are not wiped (fdisk wipes first sector only if it creates a new > partition table). Ah, I've forgot... it's fixed now :-) Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com