[opensuse-autoinstall] How to keep a single partition ?
Hi, I want autoinstall with opensuse 10.3. HD is already partioned with SuSE 10.1, it has 4 primary partitions with reiserfs. 1. swap 1Gb 2. / 15Gb reiserfs 3. /export/opt 15Gb reiserfs 4. /export/home 43.5Gb (max) reiserfs I want to resize and reformat 1-3 with ext3 and keep data on 4. 1. swap 2Gb 2. / 20Gb ext3 3. /export/opt 9Gb ext3 4. /export/home 43.5Gb reiserfs <--- keep data ! I tried various configuration but I always get an error message: "Error while configuring partitions, Try again". I only get something workable if I create and format partition 4. too. I tried with and without the <keep_partition_num> and <usepart> lines. I tried with <use>all</use> too. I checked y2log but could not detect the problem. Can someone please help ? Here is one of the setups which don't work : <partitioning config:type="list"> <drive> <device>/dev/sda</device> <partitions config:type="list"> <partition> <create config:type="boolean">true</create> <filesystem config:type="symbol">swap</filesystem> <format config:type="boolean">true</format> <mount>swap</mount> <mountby config:type="symbol">id</mountby> <partition_id config:type="integer">130</partition_id> <partition_nr config:type="integer">1</partition_nr> <partition_type>primary</partition_type> <size>2gb</size> </partition> <partition> <create config:type="boolean">true</create> <filesystem config:type="symbol">ext3</filesystem> <format config:type="boolean">true</format> <mount>/</mount> <mountby config:type="symbol">id</mountby> <partition_id config:type="integer">131</partition_id> <partition_nr config:type="integer">2</partition_nr> <partition_type>primary</partition_type> <size>20gb</size> </partition> <partition> <create config:type="boolean">true</create> <filesystem config:type="symbol">ext3</filesystem> <format config:type="boolean">true</format> <mount>/export/opt</mount> <mountby config:type="symbol">id</mountby> <partition_id config:type="integer">131</partition_id> <partition_nr config:type="integer">3</partition_nr> <partition_type>primary</partition_type> <size>10gb</size> </partition> <partition> <create config:type="boolean">false</create> <format config:type="boolean">false</format> <mount>/export/home</mount> <partition_nr config:type="integer">4</partition_nr> <usepart config:type="integer">4</usepart> </partition> </partitions> <use>1,2,3</use> <keep_partition_num>4</keep_partition_num> </drive> </partitioning> -- Henrik Schmidt Christian-Albrechts-Universitaet zu Kiel Institut fuer Informatik +49 (431) 880 75 - 50 Fax or 43 Phone Olshausenstr. 40 http://www.ks.informatik.uni-kiel.de 24098 Kiel, Germany email: hbs@ks.informatik.uni-kiel.de -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
On Wed, 5 Dec 2007, Henrik Schmidt wrote:
<partition> <create config:type="boolean">true</create> <filesystem config:type="symbol">ext3</filesystem> <format config:type="boolean">true</format> <mount>/export/opt</mount> <mountby config:type="symbol">id</mountby> <partition_id config:type="integer">131</partition_id> <partition_nr config:type="integer">3</partition_nr> <partition_type>primary</partition_type> <size>10gb</size> </partition>
Of course I tried with size 9Gb for partition 3 to get same size for sum of partitions 1-3, not 10Gb as stated above. I did copy & paste from an old config. Henrik -- Henrik Schmidt Christian-Albrechts-Universitaet zu Kiel Institut fuer Informatik +49 (431) 880 75 - 50 Fax or 43 Phone Olshausenstr. 40 http://www.ks.informatik.uni-kiel.de 24098 Kiel, Germany email: hbs@ks.informatik.uni-kiel.de -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
On Wednesday 05 December 2007 15:53, Henrik Schmidt wrote:
On Wed, 5 Dec 2007, Henrik Schmidt wrote:
<partition> <create config:type="boolean">true</create> <filesystem config:type="symbol">ext3</filesystem> <format config:type="boolean">true</format> <mount>/export/opt</mount> <mountby config:type="symbol">id</mountby> <partition_id config:type="integer">131</partition_id> <partition_nr config:type="integer">3</partition_nr> <partition_type>primary</partition_type> <size>10gb</size> </partition>
Of course I tried with size 9Gb for partition 3 to get same size for sum of partitions 1-3, not 10Gb as stated above. I did copy & paste from an old config.
I've got a partition section like this. <partitioning_advanced> <fstab> <!-- Read data from existing fstab. If multiple root partitions are found, use the one specified below. Otherwise the first root partition is taken --> <root_partition>/dev/sda6</root_partition> <initialize config:type="boolean">false</initialize> <use_existing_fstab config:type="boolean">true</use_existing_fstab> <!-- all partitions found in fstab will be formatted and mounted by default unless a partition is listed below with different settings --> <partitions config:type="list"> <partition> <format config:type="boolean">false</format> <mount>/home</mount> </partition> <partition> <format config:type="boolean">true</format> <filesystem>ext3</filesystem> </partition> </partitions> </fstab> </partitioning_advanced> It will reformat root, but keep home, which sounds similar to what you want to do. -- Simon Crute IS&T. Bracknell. UK. -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
On Wed, 5 Dec 2007, Simon Crute wrote:
I've got a partition section like this.
<partitioning_advanced> <fstab> <!-- Read data from existing fstab. If multiple root partitions are found, use the one specified below. Otherwise the first root partition is taken --> <root_partition>/dev/sda6</root_partition> <initialize config:type="boolean">false</initialize> <use_existing_fstab config:type="boolean">true</use_existing_fstab> <!-- all partitions found in fstab will be formatted and mounted by default unless a partition is listed below with different settings --> <partitions config:type="list"> <partition> <format config:type="boolean">false</format> <mount>/home</mount> </partition> <partition> <format config:type="boolean">true</format> <filesystem>ext3</filesystem> </partition> </partitions> </fstab> </partitioning_advanced>
Thanks but I think this won't help me as I want to resize partions 1-3 and format with ext3 instead of reiserfs. Please read my first post. I already used something like you proposed and it works fine if all partions stay the same and you only want format or keep data. In my case partions 1 -3 three change in size but the sum of their size stays the same, therefore allowing me to keep patition 4 as it is. Hope I made myself clear and this is doable with autoyast. Henrik Schmidt -- Henrik Schmidt Christian-Albrechts-Universitaet zu Kiel Institut fuer Informatik +49 (431) 880 75 - 50 Fax or 43 Phone Olshausenstr. 40 http://www.ks.informatik.uni-kiel.de 24098 Kiel, Germany email: hbs@ks.informatik.uni-kiel.de -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
participants (2)
-
Henrik Schmidt
-
Simon Crute