Gentoo Archives: gentoo-user

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