Preseed Ubuntu / Debian – 分区:防止“分区1不从物理扇区边界开始”。

Ubuntu / Debian的工作正确 – 系统是可启动的。

但是, fdisk -l的结果如下:

 Disk /dev/sda: 50 GiB, 53687091200 bytes, 104857600 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: dos Disk identifier: 0x000e157a Device Boot Start End Sectors Size Id Type /dev/sda1 63 192779 192717 94.1M 83 Linux /dev/sda2 * 192780 1172744 979965 478.5M 83 Linux /dev/sda3 1172745 96470324 95297580 45.5G 83 Linux /dev/sda4 96470325 104856254 8385930 4G 82 Linux swap / Solaris Partition 1 does not start on physical sector boundary. Partition 2 does not start on physical sector boundary. Partition 3 does not start on physical sector boundary. Partition 4 does not start on physical sector boundary. 

我在当前的分区参数是:

 di partman-lvm/device_remove_lvm boolean true di partman-auto/purge_lvm_from_device boolean true di partman-md/device_remove_md boolean true di partman-lvm/confirm boolean true di partman/alignment select cylinder di partman/confirm boolean true di partman-basicfilesystems/no_swap boolean false di partman-partitioning/confirm_write_new_label boolean true di partman/choose_partition select finish di partman/confirm_nooverwrite boolean true di grub-installer/only_debian boolean true di grub-installer/bootdev string /dev/sda di partman-auto/disk string /dev/sda di partman-auto/method string regular di partman-auto/expert_recipe string \ boot-root :: \ 100 50 100 free \ $gptonly{ } \ $primary{ } \ $bios_boot{ } \ method{ biosgrub } \ . \ 500 50 500 ext2 \ $primary{ } $bootable{ } \ method{ format } format{ } \ use_filesystem{ } filesystem{ ext2 } \ mountpoint{ /boot } \ . \ 500 10000 1000000000 ext4 \ $primary{ } \ method{ format } format{ } \ use_filesystem{ } filesystem{ ext4 } \ mountpoint{ / } \ . \ 200% 500 200% linux-swap \ $primary{ } \ method{ swap } format{ } \ . 

如何避免Partition {n} does not start on physical sector boundary错误开始。 如何设置正确的起始扇区和扇区大小,同时预置?

改变你的di partman/alignment参数,而不是cylinder 。 这应该解决这个问题。