bug-xorriso
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-xorriso] Test Proposal for [bug #46716] Protective MBR partitio


From: Thomas Schmitt
Subject: Re: [Bug-xorriso] Test Proposal for [bug #46716] Protective MBR partition is not marked as bootable
Date: Sun, 20 Dec 2015 10:59:48 +0100

Hi,

i see that in my test proposal i forgot the Mac specific options

   -apm-block-size 2048 -hfsplus

They are not supposed to influence x86 BIOS or EFI.
Nevertheless it would be better to include them in the test.

 $ xorriso -as mkisofs \
      -o minimal-grub2-repacked.iso \
      -r \
      --modification-date='2015121916023100' \
      -b /boot/grub/i386-pc/eltorito.img \
      --grub2-mbr minimal-grub2.mbr \
      -c '/boot.catalog' \
      -b '/boot/grub/i386-pc/eltorito.img' \
         -no-emul-boot -boot-load-size 4 -boot-info-table --grub2-boot-info \
      -eltorito-alt-boot \
      -e '/efi.img' \
        -no-emul-boot \
     -append_partition 2 0xef /mnt/iso/efi.img \
     -apm-block-size 2048 \
     -hfsplus \
     /mnt/iso

(We would get into trouble with APM if GPT had blocksize 4 K.)

The result (after dd patching) is supposed to look like

  El Torito catalog  : 229  1
  El Torito cat path : /boot.catalog
  El Torito images   :   N  Pltf  B   Emul  Ld_seg  Hdpt  Ldsiz         LBA
  El Torito boot img :   1  BIOS  y   none  0x0000  0x00      4         230
  El Torito boot img :   2  UEFI  y   none  0x0000  0x00   5760         245
  El Torito img path :   1  /boot/grub/i386-pc/eltorito.img
  El Torito img opts :   1  boot-info-table grub2-boot-info
  El Torito img path :   2  /efi.img
  System area options: 0x00004200
  System area summary: MBR APM
  ISO image size/512 : 32804
  Partition offset   : 0
  MBR heads per cyl  : 64
  MBR secs per head  : 32
  MBR partition table:   N Status  Type        Start       Blocks
  MBR partition      :   1   0x80  0xee            1        32803
  MBR partition      :   2   0x00  0xef        32804         5760
  APM                :   N  Info
  APM block size     :      2048
  APM gap fillers    :      2
  APM partition name :   1  Gap0
  APM partition type :   1  ISO9660_data
  APM start and size :   1  16  68
  APM partition name :   2  HFSPLUS_Hybrid
  APM partition type :   2  Apple_HFS
  APM start and size :   2  84  7967
  APM partition name :   3  Gap1
  APM partition type :   3  ISO9660_data
  APM start and size :   3  8051  150


Have a nice day :) 

Thomas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]