[CentOS] fdisk boot partition

Wed Jul 1 10:28:37 UTC 2020
J Martin Rushton <martinrushton56 at btinternet.com>

On 01/07/2020 08:42, Warren Young wrote:
> On Jun 30, 2020, at 1:25 PM, John Pierce <jhn.pierce at gmail.com> wrote:
>>
>> On Tue, Jun 30, 2020 at 12:12 PM Jerry Geis <jerry.geis at gmail.com> wrote:
>>
>>> I am trying to use CentOS 8 host to boot an image (OS X) that  I created
>>> using dd.
>>>
>>> First I tried fdisk -l image_file.img ...
>>
>>
>> fdisk has been deprecated for quite a long time, I think parted is the
>> preferred command line tool now.
> 
> Even to the extent that it works, it’d only support MBR partitioning, and you almost certainly want GPT for a macOS boot image.
> 
> …and then “bootable” flags go out the window anyway, because EFI doesn’t care about that.
fdisk has been updated:
   # fdisk /dev/sdb
   ...
   Welcome to fdisk (util-linux 2.23.2).
   ...
   Command (m for help): m
   Command action
   ...
     g   create a new empty GPT partition table
   ...

How good it is, I leave to others.

-- 
J Martin Rushton MBCS