[Parted-maintainers] Bug#1015829: parted-udeb 3.4/3.5 aligned partition fails to boot

throwawaySN55 throwawaySN55 at proton.me
Fri Jul 22 02:09:58 BST 2022


Package: parted-udeb
Version: 3.4-1


parted-udeb 3.2 MBR boots aligned and unaligned partitions

parted-udeb 3.4/3.5 MBR boots unaligned partition but fails to boot aligned partition


ALIGNED PARTITION

  parted --script /dev/sda mklabel msdos
  parted --script /dev/sda mkpart primary ext4 2048s 8191s
  parted --script /dev/sda set 1 boot on
  dd if=boot.bin of=/dev/sda1

parted-udeb 3.2: boot.bin at sector 2048, sda1 boots, partition table:

000001b0                                             80 20
000001c0  21 00 83 82 02 00 00 08  00 00 00 18 00 00 00 00
000001d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
000001e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00

parted-udeb 3.4/3.5: boot.bin at sector 2048, sda1 FAILS TO BOOT (hangs, no error message), partition table:

000001b0                                             80 04
000001c0  01 04 83 0f 02 10 00 08  00 00 00 18 00 00 00 00
000001d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
000001e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00


UNALIGNED PARTITION

  parted --script /dev/sda mklabel msdos
  parted --script /dev/sda mkpart primary ext4 1s 8191s
  parted --script /dev/sda set 1 boot on
  dd if=boot.bin of=/dev/sda1

parted-udeb 3.2: boot.bin at sector 1, sda1 boots, partition table:

000001b0                                             80 00
000001c0  02 00 83 82 02 00 01 00  00 00 ff 1f 00 00 00 00
000001d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
000001e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00

parted-udeb 3.4/3.5: boot.bin at sector 1, sda1 boots, partition table:

000001b0                                             80 00
000001c0  02 00 83 0f 02 10 01 00  00 00 ff 1f 00 00 00 00
000001d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
000001e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00



More information about the Parted-maintainers mailing list