On 2019-01-13, Andrew Udvare wrote: >> On 2019-01-13, at 07:49, (Nuno Silva) <[email protected]> wrote: >> >> I am trying to create an Apple partition map with a block size of 4096 >> bytes, but I can't find an option to change the block size in mac-fdisk, >> which defaults to 512 bytes. >> >> Does anybody know of a utility that can create and modify such partition >> maps under Gentoo? > > > Quick look and it seems that for mac-fdisk the 512 size is hard-coded: > > https://github.com/glaubitz/mac-fdisk-debian/blob/bda743065fa2c75a83fec60166bc2e317059ef7a/io.h#L32
That code appears to be version 0.4 from early 1997. Under Gentoo, the README file installed at /usr/share/doc/mac-fdisk-0.1_p18/ mentions 0.4 as well. According to a changelog at apple.com[1], variable block size support was added after that, and should be present in version 0.5. [1] https://opensource.apple.com/source/pdisk/pdisk-9/HISTORY.auto.html If there is no other utility that can do this, I'll have a look at the newer source code from apple.com... -- Nuno Silva

