[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>
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>
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>
1 <create config:type="boolean">false</create> <format config:type="boolean">false</format> </partition><!-- keep "Recovery", NTFS -->
<partition>
2 <create config:type="boolean">false</create> <format config:type="boolean">false</format> </partition><!-- resize "Windows 7", NTFS -->
<partition>
3 <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>
5 131 <create config:type="boolean">true</create> <format config:type="boolean">true</format>false <filesystem config:type="symbol">ext4</filesystem> <mountby config:type="device">id</mountby> <mount>/home</mount> <size>80GB</size> </partition><partition>
6 130 <create config:type="boolean">true</create> <format config:type="boolean">true</format>false <filesystem config:type="symbol">swap</filesystem> <mountby config:type="device">id</mountby> <mount>swap</mount> <size>4GB</size> </partition><partition>
7 131 <create config:type="boolean">true</create> <format config:type="boolean">true</format>false <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>
1 <create config:type="boolean">false</create> <format config:type="boolean">false</format> </partition><!-- keep "Recovery", NTFS -->
<partition>
2 <create config:type="boolean">false</create> <format config:type="boolean">false</format> </partition><!-- resize "Windows 7", NTFS -->
<partition>
3 <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