Re: BUG: fdisk, gpt broken on 32bit big endian systems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, May 30, 2014 at 05:31:00AM +0200, Ruediger Meier wrote:
> Hi,
> 
> This ...
> 
> $ 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......|
             ^^^^^^^^^^^ ^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^ 
                crc32     reserved           header LBA

The problem is the LBA, "ff ff ff ff ff ff ff ff" seems strange :-)

(Correct is ff4f,  (means 0x4fff * 512 + 512 = 10485760, 10MiB).

    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




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux