[opensuse-autoinstall] openSUSE11.2: resize existing & create new partitions
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, Uni Ulm, Institut TAIT, guenther.haas@gmx.de
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
on Tuesday 02 February 2010 Guenther Haas wrote:
As there is no reply yet and having tested some more scenarios, I want to make the following addition:
sorry, I read your posting but I'm too busy with other stuff currently to reproduce. I'll take a look at it later but maybe not even this week.
OK, maybe I could use a pre-script for resizing the windows partition
I'd do that because it looks like there is a bug in autoyast if your observation is right.
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
that depends on how clever your pre-script is ;) -- ciao, Uwe Gansert Uwe Gansert SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Business: http://www.suse.de/~ug listening to: "Leaving Hollywood" by Diorama -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
on Tuesday 02 February 2010 Guenther Haas wrote:
BUT: The diskspace won by shrinking partition 3 (Windows) stays unused.
that's indeed a bug and I'm working on a fix now. Can you test that with a driverupdate when I'm done? Thanks for the report. -- ciao, Uwe Gansert Uwe Gansert SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Business: http://www.suse.de/~ug -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
Uwe Gansert wrote:
on Tuesday 02 February 2010 Guenther Haas wrote:
BUT: The diskspace won by shrinking partition 3 (Windows) stays unused.
that's indeed a bug and I'm working on a fix now. Can you test that with a driverupdate when I'm done?
Sure! I'm wishfully waiting for it. ;-) Do you already know how long it will take to finish the fix? At the moment I still have a notebook left for testing. 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
on Friday 19 February 2010 Guenther Haas wrote:
BUT: The diskspace won by shrinking partition 3 (Windows) stays unused.
that's indeed a bug and I'm working on a fix now. Can you test that with a driverupdate when I'm done?
Sure! I'm wishfully waiting for it. ;-)
thank you for testing that.
Do you already know how long it will take to finish the fix?
I have fixed it for SLES11 SP1 and openSUSE 11.3 A backport for openSUSE 11.2 can be found at http://www.suse.de/~ug/download later this day -- ciao, Uwe Gansert Uwe Gansert SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Business: http://www.suse.de/~ug -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
participants (2)
-
Guenther Haas
-
Uwe Gansert