Hi, I'm trying to preseed a lenny installation. The harddisk has two partitions on it: /dev/sda1 is windows with ntfs and must be shrinked in order to get some space for debian and /dev/sda2 is recovery with fat and must stay untouched.
At the end, partitions shall look like this (partitions are listed in the same order as they will be on the harddisk): - sda1: primary, windows, ntfs, shrinked, keep data - sda3: primary, /boot, ext3 - sda4: extended - sda5: logical, LVM physical volume - sda6: logical, Swap - sda2: primary, recovery, fat, keep partitions as it is And now logical volumes for /, /home, /var, and so on. Because I can't get it working, I shrinked sda1 by hand, but still no luck. That's the partitioning section of my preseed file: ### Partitioning #d-i partman-auto/init_automatically_partition select biggest_free d-i partman-auto/disk string /dev/sda d-i partman-auto/method string lvm d-i partman-lvm/device_remove_lvm boolean true d-i partman-md/device_remove_md boolean true d-i partman-lvm/confirm boolean true d-i partman-auto/expert_recipe string \ test-lvm :: \ 512 512 512 ext3 \ $primary{ } \ $bootable{ } \ method{ format } \ format{ } \ label{ boot } \ use_filesystem{ } \ filesystem{ ext3 } \ mountpoint{ /boot } \ . \ 30000 1000000 1000000000 ext3 \ method{ lvm } \ vg_name{ system } \ . \ 5000 25000 2500+100% linux-swap \ method{ swap } \ use_filesystem{ } \ format{ } \ . \ 10000 100 10000 ext3 \ $lvmok{ } \ in_vg{ system } \ lv_name{ root } \ method{ format } \ format{ } \ label{ root } \ use_filesystem{ } \ filesystem{ ext3 } \ mountpoint{ / } \ . \ d-i partman/confirm_write_new_label boolean true d-i partman/choose_partition select finish d-i partman/confirm boolean true ### Partitioning end With this configuration, it will delete the existing partitions (bad), create new partitions as needed but then stops with the following error: "Unexpected error while creating volume group" and points me to syslog/console4. The only error there is: "partman-lvm: Device /dev/sda6 not found (or ignored by filtering)." But, /dev/sda6 exists and is of type Linux LVM, so where's the problem? If I change #d-i partman-auto/init_automatically_partition select biggest_free d-i partman-auto/disk string /dev/sda d-i partman-auto/method string lvm to d-i partman-auto/init_automatically_partition select biggest_free #d-i partman-auto/disk string /dev/sda #d-i partman-auto/method string lvm the result is, that original /dev/sda1 and /dev/sda2 stay unmodified (ok). But now lvm isn't used any more and / and any other logical volume will become a regular partition. I hope you can help me, to get at least so far that it will leave existing partitions untouched, create new partitions using the free space on the hdd and setup lvm correctly. If it's impossible to shrink the ntfs partition, I could live with that and shrink it on an other way. Tia, Henry -- To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org