Problem setting up the partition table
Hello all, I'm setting up a SUSE autoinstallation environment for the first time, and things are going relatively smoothly, EXCEPT... when it comes time to set up the partition table, autoyast complains that it can't set up the swap space on /dev/hda5. This is perplexing, since I only specified three partitions, including the swap space. I've included the pertinent part of the xml config file below. Any tips would be greatly appreciated! Thanks, Eric Schwartz. <partitioning config:type=list> <drive> <device>/dev/hda</device> <initialize config:type=boolean>true</initialize> <partitions config:type=list> <partition> <crypt>twofish256</crypt> <filesystem config:type=symbol>ext3</filesystem> <format config:type=boolean>true</format> <loop_fs config:type=boolean>false</loop_fs> <mount>/boot</mount> <partition_id config:type=integer>131</partition_id> <partition_type>primary</partition_type> <size>40M</size> </partition> <partition> <crypt>twofish256</crypt> <filesystem config:type=symbol>swap</filesystem> <format config:type=boolean>true</format> <loop_fs config:type=boolean>false</loop_fs> <mount>swap</mount> <partition_id config:type=integer>130</partition_id> <size>350MB</size> </partition> <partition> <crypt>twofish256</crypt> <filesystem config:type=symbol>ext3</filesystem> <format config:type=boolean>true</format> <loop_fs config:type=boolean>false</loop_fs> <mount>/</mount> <partition_id config:type=integer>131</partition_id> <partition_type>primary</partition_type> <size>max</size> </partition> </partitions> <use>1,2,3</use> </drive> </partitioning>
I'm setting up a SUSE autoinstallation environment for the first time, and things are going relatively smoothly, EXCEPT... when it comes time to set up the partition table, autoyast complains that it can't set up the swap space on /dev/hda5. This is perplexing, since I only specified
i have seen the same error. though for me yast complains about one of the partitions which are defined in the autoyast xml file. i found that every time this error comes up, the dev entry for that partition was missing. switch to virtual console 2 and try 'ls -l hda?'. you will see hda1-9 but hda5 will be missing. (in your example, the swap partition is not declared as primary so yast is actually trying to create the extended partition hda5.)
Eric, In your xml, only first partition is set to primary, the reason why you swap on /dev/hda5 (hda2 is extended). I am not sure why you are using <use>1,2,3</use> If you have nothing to keep on the disk, you should use <use>all</use> which will delete everything on the disk and create the partitions from scratch. If you have something you want to keep on the disks, then the configuration below is wrong. Anas Eric Schwartz wrote:
Hello all,
I'm setting up a SUSE autoinstallation environment for the first time, and things are going relatively smoothly, EXCEPT... when it comes time to set up the partition table, autoyast complains that it can't set up the swap space on /dev/hda5. This is perplexing, since I only specified three partitions, including the swap space. I've included the pertinent part of the xml config file below. Any tips would be greatly appreciated!
Thanks, Eric Schwartz.
<partitioning config:type=list> <drive> <device>/dev/hda</device> <initialize config:type=boolean>true</initialize> <partitions config:type=list> <partition> <crypt>twofish256</crypt> <filesystem config:type=symbol>ext3</filesystem> <format config:type=boolean>true</format> <loop_fs config:type=boolean>false</loop_fs> <mount>/boot</mount> <partition_id config:type=integer>131</partition_id> <partition_type>primary</partition_type> <size>40M</size> </partition> <partition> <crypt>twofish256</crypt> <filesystem config:type=symbol>swap</filesystem> <format config:type=boolean>true</format> <loop_fs config:type=boolean>false</loop_fs> <mount>swap</mount> <partition_id config:type=integer>130</partition_id> <size>350MB</size> </partition> <partition> <crypt>twofish256</crypt> <filesystem config:type=symbol>ext3</filesystem> <format config:type=boolean>true</format> <loop_fs config:type=boolean>false</loop_fs> <mount>/</mount> <partition_id config:type=integer>131</partition_id> <partition_type>primary</partition_type> <size>max</size> </partition> </partitions> <use>1,2,3</use> </drive> </partitioning>
participants (3)
-
Anas Nashif
-
Eric Schwartz
-
Rajiv Aaron Manglani