![](https://seccdn.libravatar.org/avatar/1a156c54a97122602d837e5e66e4f955.jpg?s=120&d=mm&r=g)
As there is no reply yet and having tested some more scenarios, I want to make the following addition: After decreasing the size of the last partition (sda3, Windows) a little bit manually (just for testing) and adding an extended partition 4 with some logical partitions (5, 6 and 7), the following seems to work - at first view: <partitioning config:type="list"> <drive> <device>/dev/sda</device> <use>all</use> <partitions config:type="list"> <!-- keep "Dell Utility", FAT --> <partition> <partition_nr config:type="integer">1</partition_nr> <create config:type="boolean">false</create> <format config:type="boolean">false</format> </partition> <!-- keep "Recovery", NTFS --> <partition> <partition_nr config:type="integer">2</partition_nr> <create config:type="boolean">false</create> <format config:type="boolean">false</format> </partition> <!-- resize "Windows 7", NTFS --> <partition> <partition_nr config:type="integer">3</partition_nr> <create config:type="boolean">false</create> <format config:type="boolean">false</format> <resize config:type="boolean">true</resize> <size>72GB</size> </partition> <!-- new logical partions in extended partition (system) --> <partition> <partition_nr config:type="integer">5</partition_nr> <partition_id config:type="integer">131</partition_id> <create config:type="boolean">true</create> <format config:type="boolean">true</format> <crypt_fs config:type="boolean">false</crypt_fs> <filesystem config:type="symbol">ext4</filesystem> <mountby config:type="device">id</mountby> <mount>/</mount> <size>max</size> </partition> </partitions> </drive> </partitioning> BUT: The diskspace won by shrinking partition 3 (Windows) stays unused. Only the space of the already existing partition 4 (with 5, 6 and 7) is reused for the new partition 5 (in new, bigger extended partition 4). The space won by resizing is marked as "Unpartitioned Space". So this seems to be the reason for the error and stop of the installation process in the original scenario: As partition 3 with Windows fills the harddisk completely till the end, autoyast obviously cannot create another partition (4) as there is no more space left, even after shrinking. So using autoyast methods, is there any possibility to reuse the freed diskspace directly after shrinking? Or has anybody an different method to do that? OK, maybe I could use a pre-script for resizing the windows partition and use autoyast for creating the new partitions. But, then the windows partition is always resizied, even if I don't start the real installation process by pressing "install". And that's not exactly what I want & need. Regards, Guenther Haas Guenther Haas wrote:
Hi all!
Having a lot of notebooks with existing Windows installation on which I have to install openSUSE 11.2, I have tried to resize the Windows partition automatically with autoyast before creating the linux partitions.
Is this possible? Using the following doesn't work and y2log doesn't really answer my question why:
<partitions config:type="list">
<!-- keep "Dell Utility", FAT -->
<partition> <partition_nr config:type="integer">1</partition_nr> <create config:type="boolean">false</create> <format config:type="boolean">false</format> </partition>
<!-- keep "Recovery", NTFS -->
<partition> <partition_nr config:type="integer">2</partition_nr> <create config:type="boolean">false</create> <format config:type="boolean">false</format> </partition>
<!-- resize "Windows 7", NTFS -->
<partition> <partition_nr config:type="integer">3</partition_nr> <create config:type="boolean">false</create> <format config:type="boolean">false</format> <resize config:type="boolean">true</resize> <size>72GB</size> </partition>
<!-- new logical partions in extended partition (system) -->
<partition> <partition_nr config:type="integer">5</partition_nr> <partition_id config:type="integer">131</partition_id> <create config:type="boolean">true</create> <format config:type="boolean">true</format> <crypt_fs config:type="boolean">false</crypt_fs> <filesystem config:type="symbol">ext4</filesystem> <mountby config:type="device">id</mountby> <mount>/home</mount> <size>80GB</size> </partition>
<partition> <partition_nr config:type="integer">6</partition_nr> <partition_id config:type="integer">130</partition_id> <create config:type="boolean">true</create> <format config:type="boolean">true</format> <crypt_fs config:type="boolean">false</crypt_fs> <filesystem config:type="symbol">swap</filesystem> <mountby config:type="device">id</mountby> <mount>swap</mount> <size>4GB</size> </partition>
<partition> <partition_nr config:type="integer">7</partition_nr> <partition_id config:type="integer">131</partition_id> <create config:type="boolean">true</create> <format config:type="boolean">true</format> <crypt_fs config:type="boolean">false</crypt_fs> <filesystem config:type="symbol">ext4</filesystem> <mountby config:type="device">id</mountby> <mount>/</mount> <size>max</size> </partition>
</partitions> </drive> </partitioning>
Using olny the first part works, although I thought, autoyast would complain about the missing linux partition. But it works, at least until starting the real installation:
<partitions config:type="list">
<!-- keep "Dell Utility", FAT -->
<partition> <partition_nr config:type="integer">1</partition_nr> <create config:type="boolean">false</create> <format config:type="boolean">false</format> </partition>
<!-- keep "Recovery", NTFS -->
<partition> <partition_nr config:type="integer">2</partition_nr> <create config:type="boolean">false</create> <format config:type="boolean">false</format> </partition>
<!-- resize "Windows 7", NTFS -->
<partition> <partition_nr config:type="integer">3</partition_nr> <create config:type="boolean">false</create> <format config:type="boolean">false</format> <resize config:type="boolean">true</resize> <size>72GB</size> </partition>
</partitions> </drive> </partitioning>
As soon as I add an additional partition, which uses the new diskspace, won by resizing the existing Windows 7 partition, the whole installations stops with an error. Even if I only ad one partition of the three given above.
Any idea?
Next idea was, that I could only have the resizing part in the autoyast config, then manually add the linux partitions before starting the real installation and after that checking /var/adm/autoinstall/cache/installedSystem.xml so see, what I have to enter in my autoyast config. But this doesn't work. There, I can only find what already was given in the configuration, not what I changed later manually. So it's not really the config of the "installedSystem". :-(
Regards,
-- Guenther Haas, Ulm University, Institute TAIT, guenther.haas@gmx.de -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org