Gentoo Archives: gentoo-user

From: Andrew Udvare <audvare@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: mac-fdisk with different block size
Date: Sun, 13 Jan 2019 15:43:51
Message-Id: 36C2A0FE-54F3-4E06-AFD1-D9C484D72713@gmail.com
In Reply to: [gentoo-user] Re: mac-fdisk with different block size by nunojsilva@ist.utl.pt
1 > On Jan 13, 2019, at 09:24, (Nuno Silva) <nunojsilva@×××××××.pt> wrote:
2 >
3 > On 2019-01-13, Andrew Udvare wrote:
4 >
5 >>> On 2019-01-13, at 07:49, (Nuno Silva) <nunojsilva@×××××××.pt> wrote:
6 >>>
7 >>> I am trying to create an Apple partition map with a block size of 4096
8 >>> bytes, but I can't find an option to change the block size in mac-fdisk,
9 >>> which defaults to 512 bytes.
10 >>>
11 >>> Does anybody know of a utility that can create and modify such partition
12 >>> maps under Gentoo?
13 >>
14 >>
15 >> Quick look and it seems that for mac-fdisk the 512 size is hard-coded:
16 >>
17 >> https://github.com/glaubitz/mac-fdisk-debian/blob/bda743065fa2c75a83fec60166bc2e317059ef7a/io.h#L32
18 >
19 >
20 > That code appears to be version 0.4 from early 1997. Under Gentoo, the
21 > README file installed at /usr/share/doc/mac-fdisk-0.1_p18/ mentions 0.4
22 > as well.
23 >
24 > According to a changelog at apple.com[1], variable block size support
25 > was added after that, and should be present in version 0.5.
26
27 On actual macOS latest, there's a -b option for block size.

Replies

Subject Author
[gentoo-user] Re: mac-fdisk with different block size nunojsilva@×××××××.pt