* [gentoo-user] mac-fdisk with different block size
@ 2019-01-13 12:49 Nuno Silva
2019-01-13 13:27 ` Andrew Udvare
0 siblings, 1 reply; 5+ messages in thread
From: Nuno Silva @ 2019-01-13 12:49 UTC (permalink / raw
To: gentoo-user
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?
--
Nuno Silva
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] mac-fdisk with different block size
2019-01-13 12:49 [gentoo-user] mac-fdisk with different block size Nuno Silva
@ 2019-01-13 13:27 ` Andrew Udvare
2019-01-13 14:24 ` [gentoo-user] " Nuno Silva
0 siblings, 1 reply; 5+ messages in thread
From: Andrew Udvare @ 2019-01-13 13:27 UTC (permalink / raw
To: gentoo-user
> On 2019-01-13, at 07:49, (Nuno Silva) <nunojsilva@ist.utl.pt> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* [gentoo-user] Re: mac-fdisk with different block size
2019-01-13 13:27 ` Andrew Udvare
@ 2019-01-13 14:24 ` Nuno Silva
2019-01-13 15:43 ` Andrew Udvare
0 siblings, 1 reply; 5+ messages in thread
From: Nuno Silva @ 2019-01-13 14:24 UTC (permalink / raw
To: gentoo-user
On 2019-01-13, Andrew Udvare wrote:
>> On 2019-01-13, at 07:49, (Nuno Silva) <nunojsilva@ist.utl.pt> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] Re: mac-fdisk with different block size
2019-01-13 14:24 ` [gentoo-user] " Nuno Silva
@ 2019-01-13 15:43 ` Andrew Udvare
2019-01-13 20:57 ` Nuno Silva
0 siblings, 1 reply; 5+ messages in thread
From: Andrew Udvare @ 2019-01-13 15:43 UTC (permalink / raw
To: gentoo-user
> On Jan 13, 2019, at 09:24, (Nuno Silva) <nunojsilva@ist.utl.pt> wrote:
>
> On 2019-01-13, Andrew Udvare wrote:
>
>>> On 2019-01-13, at 07:49, (Nuno Silva) <nunojsilva@ist.utl.pt> 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.
On actual macOS latest, there's a -b option for block size.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [gentoo-user] Re: mac-fdisk with different block size
2019-01-13 15:43 ` Andrew Udvare
@ 2019-01-13 20:57 ` Nuno Silva
0 siblings, 0 replies; 5+ messages in thread
From: Nuno Silva @ 2019-01-13 20:57 UTC (permalink / raw
To: gentoo-user
On 2019-01-13, Andrew Udvare wrote:
>> On Jan 13, 2019, at 09:24, (Nuno Silva) <nunojsilva@ist.utl.pt> wrote:
>>
>> On 2019-01-13, Andrew Udvare wrote:
>>
>>>> On 2019-01-13, at 07:49, (Nuno Silva) <nunojsilva@ist.utl.pt> 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.
>
> On actual macOS latest, there's a -b option for block size.
GNU parted does not seem to have an option to *change* the block size,
but it will use the drive's block size when creating a new Apple
partition table.
--
Nuno Silva
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-01-13 20:58 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-13 12:49 [gentoo-user] mac-fdisk with different block size Nuno Silva
2019-01-13 13:27 ` Andrew Udvare
2019-01-13 14:24 ` [gentoo-user] " Nuno Silva
2019-01-13 15:43 ` Andrew Udvare
2019-01-13 20:57 ` Nuno Silva
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox