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

Re: keeping NTFS partitions

On 02/21/12 10:21, Marcus Moeller wrote:
Hi again.

I have to manage some dual-boot setups and to make sure that existing
NTFS partitions are kept and only non-NTFS partitions are deleted.

I've tried to achieve this, by adding the following early_command and
partman settings.

d-i partman/early_command string for i in 1 2 3 4 5 6 7 8; \
do if [ "`fdisk -l /dev/sda | grep /dev/sda$i | grep -v "HPFS/NTFS"`"
]; \
then echo -e "d\n$i\nw\n" | fdisk /dev/sda ; fi ; done; exit 0;

d-i partman-auto/init_automatically_partition select biggest_free
d-i partman-auto/choose_recipe select atomic

The non-ntfs partitions where deleted correctly, but sadly the installer
throws an error afterwards: Unable to satisfy all constraints on the

I have re-checked and the error also occurs, when I leave the
early-command out and manually delete all but the NTFS partition on

I have fiddled around for a while now and found a solution.

It seems to work when using:

d-i partman-auto/init_automatically_partition \
      select Guided - use the largest continuous free space

instead of:

d-i partman-auto/init_automatically_partition select biggest_free

Do you have any idea why is that?


Reply to: