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

Re: keeping NTFS partitions



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
partition.

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 forehand.

From calculation the free space seems to begin at block 250040286720. But from what I can see in the log file, the new partition should be created starting from 239907000001

250040286720-500107862015
 beginning 239907000001

Or am I wrong here?

Greets
Marcus


...

parted_server: Closing infifo and outfifo
parted_server: main_loop: iteration 43
parted_server: Opening infifo
/bin/perform_recipe: IN: PARTITIONS =dev=sda
parted_server: Read command: PARTITIONS
parted_server: command_partitions()
parted_server: Opening outfifo
parted_server: OUT: OK

parted_server: OUT: 1 32256-250040286719 250040254464 primary ntfs
/dev/sda1

parted_server: OUT: -1 250040286720-500107862015 250067575296 pri/log
free /dev/sda-1

parted_server: Partitions printed
parted_server: OUT:


parted_server: Closing infifo and outfifo
parted_server: main_loop: iteration 44
parted_server: Opening infifo
/bin/perform_recipe: IN: PARTITION_INFO =dev=sda 250040286720-500107862015
parted_server: Read command: PARTITION_INFO
parted_server: command_partition_info()
parted_server: Opening outfifo
parted_server: command_partition_info: info for partition with id
250040286720-500107862015
parted_server: partition_with_id(250040286720-500107862015)
parted_server: OUT: OK

parted_server: command_partition_info: partition found
parted_server: OUT: -1 250040286720-500107862015 250067575296 pri/log
free /dev/sda-1

parted_server: Closing infifo and outfifo
parted_server: main_loop: iteration 45
parted_server: Opening infifo
/bin/perform_recipe: IN: NEW_PARTITION =dev=sda logical ext3
250040286720-500107862015 beginning 239907000001
parted_server: Read command: NEW_PARTITION
parted_server: command_new_partition()
parted_server: Note =dev=sda as changed
parted_server: Opening outfifo
parted_server: requested partition with type logical
parted_server: requested partition with file system ext3
parted_server: OUT: Error

parted_server: OUT: Unable to satisfy all constraints on the partition.

parted_server: OUT:

parted_server: OUT: Cancel

parted_server: OUT:

/bin/perform_recipe: error_handler: exception with type Error
/bin/perform_recipe: error_handler: reading message
/bin/perform_recipe: paragraph: Unable to satisfy all constraints on the
partition.
/bin/perform_recipe: error_handler: reading options
/bin/perform_recipe: option: Cancel

...

Greets
Marcus




Reply to: