[opensuse-autoinstall] How to set filesystem type
![](https://seccdn.libravatar.org/avatar/2542b82b31fe66751624365462e59f33.jpg?s=120&d=mm&r=g)
I'm using <partitioning_advanced> and <fstab> with my autoinstall for 11.3, Is it possible to force the filesystem for partitions declared to be formated ? I want them to be ext4 instead of ext3. <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/sda2</root_partition> <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">true</format> <mount>swap</mount> <mountby config:type="symbol">id</mountby> </partition> <partition> <format config:type="boolean">true</format> <mount>/</mount> <mountby config:type="symbol">id</mountby> </partition> <partition> <format config:type="boolean">false</format> <mount>/export/opt</mount> <mountby config:type="symbol">id</mountby> </partition> <partition> <format config:type="boolean">false</format> <mount>/export/home</mount> <mountby config:type="symbol">id</mountby> </partition> </partitions> </fstab> </partitioning_advanced> -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/d3a7a2fdfcb9da88e4d3d62171b51fd1.jpg?s=120&d=mm&r=g)
Le 2010-08-04 09:06, Henrik Schmidt a écrit :
I'm using<partitioning_advanced> and<fstab> with my autoinstall for 11.3, Is it possible to force the filesystem for partitions declared to be formated ? I want them to be ext4 instead of ext3.
This seems to be working: <partition> <create config:type="boolean">true</create> <crypt_fs config:type="boolean">false</crypt_fs> <filesystem config:type="symbol">ext4</filesystem> <filesystem_id config:type="integer">131</filesystem_id> <format config:type="boolean">true</format> <loop_fs config:type="boolean">false</loop_fs> <mount>/</mount> <mountby config:type="symbol">device</mountby> <partition_id config:type="integer">131</partition_id> <partition_nr config:type="integer">2</partition_nr> <resize config:type="boolean">false</resize> <size>max</size> </partition>
<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/sda2</root_partition> <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">true</format> <mount>swap</mount> <mountby config:type="symbol">id</mountby> </partition> <partition> <format config:type="boolean">true</format> <mount>/</mount> <mountby config:type="symbol">id</mountby> </partition> <partition> <format config:type="boolean">false</format> <mount>/export/opt</mount> <mountby config:type="symbol">id</mountby> </partition> <partition> <format config:type="boolean">false</format> <mount>/export/home</mount> <mountby config:type="symbol">id</mountby> </partition> </partitions> </fstab> </partitioning_advanced>
-- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/7507e57987c0eee77f9f82ae09c7e999.jpg?s=120&d=mm&r=g)
Hi,
On Wednesday, 04 August, 2010 at 06:36 PM, Henrik Schmidt <hbs@ks.informatik.uni-kiel.de> wrote: I'm using <partitioning_advanced> and <fstab> with my autoinstall for 11.3, Is it possible to force the filesystem for partitions declared to be formated ? I want them to be ext4 instead of ext3.
Yes you can. Look at "<filesystem>" tag in http://www.suse.de/~ug/autoyast_doc/CreateProfile.Partitioning.html#id335846 HTH, Srinidhi.
<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/sda2</root_partition> <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">true</format> <mount>swap</mount> <mountby config:type="symbol">id</mountby> </partition> <partition> <format config:type="boolean">true</format> <mount>/</mount> <mountby config:type="symbol">id</mountby> </partition> <partition> <format config:type="boolean">false</format> <mount>/export/opt</mount> <mountby config:type="symbol">id</mountby> </partition> <partition> <format config:type="boolean">false</format> <mount>/export/home</mount> <mountby config:type="symbol">id</mountby> </partition> </partitions> </fstab> </partitioning_advanced
-- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/43d28c61e1e0659972b2e139c34792d5.jpg?s=120&d=mm&r=g)
on Wednesday 04 August 2010 Henrik Schmidt wrote:
I'm using <partitioning_advanced> and <fstab> with my autoinstall for 11.3, Is it possible to force the filesystem for partitions declared to be formated ? I want them to be ext4 instead of ext3.
I did a quick look at the code and indeed, that's not possible in partitioning_advanced yet. I put that on my TODO for openSUSE 11.4 -- 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: "See You In Hell" by Suicide Commando -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
participants (4)
-
Henrik Schmidt
-
Pierre Girard
-
Srinidhi B
-
Uwe Gansert