On Fri, May 30, 2014 at 05:31:00AM +0200, Ruediger Meier wrote: > $ rm -f xxx; truncate -s 10M xxx > $ echo -ne "g\nx\ni\n26841E90-46E0-4205-B012-4B8AEC35C088\nr\nw\nq\n" | fdisk xxx > > ... creates a broken gpt image on 32bit big endian systems. > > "hexdiff" xxx-broken xxx-good: > 00000260 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| > * > 009ffe00 45 46 49 20 50 41 52 54 00 00 01 00 00 02 00 00 |EFI PART........| > -009ffe10 68 a5 49 d1 00 00 00 00 ff ff ff ff ff ff ff ff |h.I.............| > +009ffe10 15 b9 f3 7e 00 00 00 00 ff 4f 00 00 00 00 00 00 |...~.....O......| > 009ffe20 01 00 00 00 00 00 00 00 00 08 00 00 00 00 00 00 |................| > 009ffe30 de 4f 00 00 00 00 00 00 90 1e 84 26 e0 46 05 42 |.O.........&.F.B| > 009ffe40 b0 12 4b 8a ec 35 c0 88 df 4f 00 00 00 00 00 00 |..K..5...O......| Fixed now, I hope (not tested on 32bit BE, but the code was so stupid that it has to be the problem :-) Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html