Hello all,
I'm testing a new autoyast.xml for OpenSUSE 11.3 and at the end of stage1 of the installation I'm getting this error:
GNU GRUB version 0.97 (640K lower / 3072K upper memory)
[ Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists the possible completions of a device/filename.]
grub> setup --stage2=/boot/grub/stage2 --force-lba (hd0) (hd0,4) Error 21: Selected disk does not exist grub> quit
This is quite strange, because all partitions were created successfully without any complains, but grub seems unable to install in der MBR.
I found that in the grub "disk order settings" "/dev/sda" is defined - this doesn't seem to work anny more in 11.3? Changing to "/dev/disk/by-id/ata-XXX" by hand solved that, but breaks the complete auto installation process - is there another solution?
The bootloader part of my autoyast.xml looks like this:
<bootloader> <device_map config:type="list"> <device_map_entry> <firmware>hd0</firmware> <linux>/dev/sda/</linux> </device_map_entry> </device_map> <global> <activate>true</activate> <default>Desktop -- openSUSE 11.3 -- 2.6.34-12</default> <generic_mbr>true</generic_mbr> <gfxmenu>(hd0,4)/message</gfxmenu> <lines_cache_id>4</lines_cache_id> <timeout config:type="integer">8</timeout> </global> <initrd_modules config:type="list"> <initrd_module> <module>thermal</module> </initrd_module> <initrd_module> <module>ata_piix</module> </initrd_module> <initrd_module> <module>ata_generic</module> </initrd_module> <initrd_module> <module>piix</module> </initrd_module> <initrd_module> <module>ide_pci_generic</module> </initrd_module> <initrd_module> <module>processor</module> </initrd_module> <initrd_module> <module>fan</module> </initrd_module> <initrd_module> <module>ahci</module> </initrd_module> <initrd_module> <module>pata_atiixp</module> </initrd_module> <initrd_module> <module>atiixp</module> </initrd_module> </initrd_modules> <loader_type>grub</loader_type> <sections config:type="list"> <section> <append>resume=/dev/sda6 splash=silent quiet crashkernel= showopts</append> <image>(hd0,4)/vmlinuz-2.6.34-12-desktop</image> <initial>1</initial> <initrd>(hd0,4)/initrd-2.6.34-12-desktop</initrd> <lines_cache_id>0</lines_cache_id> <name>Desktop -- openSUSE 11.3 --</name> <original_name>linux</original_name> <root>/dev/sda7</root> <type>image</type> <vgamode>0x31a</vgamode> </section> <section> <append>showopts apm=off noresume nosmp maxcpus=0 edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 x11failsafe</append> <image>(hd0,4)/vmlinuz-2.6.34-12-desktop</image> <initrd>(hd0,4)/initrd-2.6.34-12-desktop</initrd> <lines_cache_id>1</lines_cache_id> <name>Failsafe -- openSUSE 11.3 --</name> <original_name>failsafe</original_name> <root>/dev/sda7</root> <type>image</type> <vgamode>0x31a</vgamode> </section> </sections> </bootloader>
Any ideas? Thanks!
Regards, Ivan
on Wednesday 18 August 2010 Ivan De Masi wrote:
I found that in the grub "disk order settings" "/dev/sda" is defined - this doesn't seem to work anny more in 11.3? Changing to "/dev/disk/by-id/ata-XXX" by hand solved that, but breaks the complete auto installation process - is there another solution?
if you set <mountby> to "id" in the <partitioning>, the bootloader should configure it to id too. Did you try that? If you hardcode /dev/sda in the <bootloader> section, that won't help of course.
Am 19.08.2010 17:21, schrieb Uwe Gansert:
on Wednesday 18 August 2010 Ivan De Masi wrote:
I found that in the grub "disk order settings" "/dev/sda" is defined - this doesn't seem to work anny more in 11.3? Changing to "/dev/disk/by-id/ata-XXX" by hand solved that, but breaks the complete auto installation process - is there another solution?
if you set<mountby> to "id" in the<partitioning>, the bootloader should configure it to id too. Did you try that? If you hardcode /dev/sda in the<bootloader> section, that won't help of course.
Hello,
yes, <mountby> is set to "id" in the <partitioning>.
In my "autoinst" for OpenSuse 11.2 that worked fine with the following grub config:
<bootloader> <device_map config:type="list"> <device_map_entry> <firmware>hd0</firmware> <linux>/dev/sda/</linux> </device_map_entry> </device_map> <global> <activate>true</activate> <boot_boot>true</boot_boot> <boot_extended>true</boot_extended> <boot_mbr>true</boot_mbr> <default>Desktop -- openSUSE 11.2 --</default> <generic_mbr>true</generic_mbr> <gfxmenu>/boot/message</gfxmenu> <lines_cache_id>2</lines_cache_id> <timeout config:type="integer">8</timeout> </global> ... <loader_type>grub</loader_type> <sections config:type="list"> <section> <append>resume=/dev/sda6 splash=silent quiet showopts</append> <image>/boot/vmlinuz-2.6.31.12-0.1-desktop</image> <initial>1</initial> <initrd>/boot/initrd-2.6.31.12-0.1-desktop</initrd> <lines_cache_id>0</lines_cache_id> <name>Desktop -- openSUSE 11.2 - 2.6.31.12-0.1</name> <original_name>linux</original_name> <root>/dev/sda7</root> <type>image</type> <vgamode>0x31a</vgamode> </section> <section> <append>showopts apm=off noresume nosmp maxcpus=0 edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 x11failsafe</append> <image>/boot/vmlinuz-2.6.31.12-0.1-desktop</image> <initrd>/boot/initrd-2.6.31.12-0.1-desktop</initrd> <lines_cache_id>1</lines_cache_id> <name>Failsafe -- openSUSE 11.2 - 2.6.31.12-0.1</name> <original_name>failsafe</original_name> <root>/dev/sda7</root> <type>image</type> <vgamode>0x31a</vgamode> </section> </sections> </bootloader>
For OpenSuse 11.3 I copied that part (except the <image> and <initrd> part):
<bootloader> <device_map config:type="list"> <device_map_entry> <firmware>hd0</firmware> <linux>/dev/sda/</linux> </device_map_entry> </device_map> <global> <activate>true</activate> <boot_boot>true</boot_boot> <boot_extended>true</boot_extended> <boot_mbr>true</boot_mbr> <default>Desktop -- openSUSE 11.3 -- 2.6.34-12</default> <generic_mbr>true</generic_mbr> <gfxmenu>/boot/message</gfxmenu> <lines_cache_id>2</lines_cache_id> <timeout config:type="integer">8</timeout> </global> ... <loader_type>grub</loader_type> <sections config:type="list"> <section> <append>resume=/dev/sda6 splash=silent quiet crashkernel= showopts</append> <image>/boot/vmlinuz-2.6.34-12-desktop</image> <initial>1</initial> <initrd>/boot/initrd-2.6.34-12-desktop</initrd> <lines_cache_id>0</lines_cache_id> <name>Desktop -- openSUSE 11.3 --</name> <original_name>linux</original_name> <root>/dev/sda7</root> <type>image</type> <vgamode>0x311</vgamode> </section> <section> <append>showopts apm=off noresume nosmp maxcpus=0 edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 x11failsafe</append> <image>/boot/vmlinuz-2.6.34-12-desktop</image> <initrd>/boot/initrd-2.6.34-12-desktop</initrd> <lines_cache_id>1</lines_cache_id> <name>Failsafe -- openSUSE 11.3 --</name> <original_name>failsafe</original_name> <root>/dev/sda7</root> <type>image</type> <vgamode>0x311</vgamode> </section> </sections> </bootloader>
The <partitioning> in 11.3 look like this:
<partitioning config:type="list"> <drive> <device>/dev/sda</device> <initialize config:type="boolean">true</initialize> <partitions config:type="list"> <partition> <create config:type="boolean">true</create> <crypt_fs config:type="boolean">false</crypt_fs> <filesystem config:type="symbol">ext3</filesystem> <format config:type="boolean">true</format> <fstopt>acl,user_xattr</fstopt> <loop_fs config:type="boolean">false</loop_fs> <mount>/boot</mount> <mountby config:type="symbol">id</mountby> <partition_id config:type="integer">131</partition_id> <partition_nr config:type="integer">5</partition_nr> <raid_options/> <resize config:type="boolean">false</resize> <size>150M</size> </partition> <partition> <create config:type="boolean">true</create> <crypt_fs config:type="boolean">false</crypt_fs> <filesystem config:type="symbol">swap</filesystem> <format config:type="boolean">true</format> <fstopt>defaults</fstopt> <loop_fs config:type="boolean">false</loop_fs> <mount>swap</mount> <mountby config:type="symbol">id</mountby> <partition_id config:type="integer">130</partition_id> <partition_nr config:type="integer">6</partition_nr> <raid_options/> <resize config:type="boolean">false</resize> <size>auto</size> </partition> <partition> <create config:type="boolean">true</create> <crypt_fs config:type="boolean">false</crypt_fs> <filesystem config:type="symbol">ext4</filesystem> <format config:type="boolean">true</format> <fstopt>acl,user_xattr</fstopt> <loop_fs config:type="boolean">false</loop_fs> <mount>/</mount> <mountby config:type="symbol">id</mountby> <partition_id config:type="integer">131</partition_id> <partition_nr config:type="integer">7</partition_nr> <raid_options/> <resize config:type="boolean">false</resize> <size>15GB</size> </partition> <partition> <create config:type="boolean">true</create> <crypt_fs config:type="boolean">false</crypt_fs> <filesystem config:type="symbol">ext4</filesystem> <format config:type="boolean">true</format> <loop_fs config:type="boolean">false</loop_fs> <mountby config:type="symbol">device</mountby> <partition_id config:type="integer">131</partition_id> <partition_nr config:type="integer">8</partition_nr> <raid_options/> <resize config:type="boolean">false</resize> <size>10GB</size> </partition> <partition> <create config:type="boolean">true</create> <crypt_fs config:type="boolean">false</crypt_fs> <filesystem config:type="symbol">ext4</filesystem> <format config:type="boolean">true</format> <fstopt>acl,user_xattr</fstopt> <loop_fs config:type="boolean">false</loop_fs> <mount>/usr</mount> <mountby config:type="symbol">id</mountby> <partition_id config:type="integer">131</partition_id> <partition_nr config:type="integer">9</partition_nr> <raid_options/> <resize config:type="boolean">false</resize> <size>10GB</size> </partition> <partition> <create config:type="boolean">true</create> <crypt_fs config:type="boolean">false</crypt_fs> <filesystem config:type="symbol">ext4</filesystem> <format config:type="boolean">true</format> <fstopt>acl,user_xattr</fstopt> <loop_fs config:type="boolean">false</loop_fs> <mount>/var</mount> <mountby config:type="symbol">id</mountby> <partition_id config:type="integer">131</partition_id> <partition_nr config:type="integer">10</partition_nr> <raid_options/> <resize config:type="boolean">false</resize> <size>5GB</size> </partition> </partitions>
But it's not working. I'm not sure what else to change :-/
Regards, Ivan
Am 23.08.2010 16:35, schrieb Ivan De Masi:
Am 19.08.2010 17:21, schrieb Uwe Gansert:
on Wednesday 18 August 2010 Ivan De Masi wrote:
I found that in the grub "disk order settings" "/dev/sda" is defined - this doesn't seem to work anny more in 11.3? Changing to "/dev/disk/by-id/ata-XXX" by hand solved that, but breaks the complete auto installation process - is there another solution?
if you set<mountby> to "id" in the<partitioning>, the bootloader should configure it to id too. Did you try that? If you hardcode /dev/sda in the<bootloader> section, that won't help of course.
Hello,
yes, <mountby> is set to "id" in the <partitioning>.
In my "autoinst" for OpenSuse 11.2 that worked fine with the following grub config:
<bootloader> <device_map config:type="list"> <device_map_entry> <firmware>hd0</firmware> <linux>/dev/sda/</linux> </device_map_entry> </device_map> <global> <activate>true</activate> <boot_boot>true</boot_boot> <boot_extended>true</boot_extended> <boot_mbr>true</boot_mbr> <default>Desktop -- openSUSE 11.2 --</default> <generic_mbr>true</generic_mbr> <gfxmenu>/boot/message</gfxmenu> <lines_cache_id>2</lines_cache_id> <timeout config:type="integer">8</timeout> </global> ... <loader_type>grub</loader_type> <sections config:type="list"> <section> <append>resume=/dev/sda6 splash=silent quiet showopts</append> <image>/boot/vmlinuz-2.6.31.12-0.1-desktop</image> <initial>1</initial> <initrd>/boot/initrd-2.6.31.12-0.1-desktop</initrd> <lines_cache_id>0</lines_cache_id> <name>Desktop -- openSUSE 11.2 - 2.6.31.12-0.1</name> <original_name>linux</original_name> <root>/dev/sda7</root> <type>image</type> <vgamode>0x31a</vgamode> </section> <section> <append>showopts apm=off noresume nosmp maxcpus=0 edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 x11failsafe</append> <image>/boot/vmlinuz-2.6.31.12-0.1-desktop</image> <initrd>/boot/initrd-2.6.31.12-0.1-desktop</initrd> <lines_cache_id>1</lines_cache_id> <name>Failsafe -- openSUSE 11.2 - 2.6.31.12-0.1</name> <original_name>failsafe</original_name> <root>/dev/sda7</root> <type>image</type> <vgamode>0x31a</vgamode> </section> </sections> </bootloader>
For OpenSuse 11.3 I copied that part (except the <image> and <initrd> part):
<bootloader> <device_map config:type="list"> <device_map_entry> <firmware>hd0</firmware> <linux>/dev/sda/</linux> </device_map_entry> </device_map> <global> <activate>true</activate> <boot_boot>true</boot_boot> <boot_extended>true</boot_extended> <boot_mbr>true</boot_mbr> <default>Desktop -- openSUSE 11.3 -- 2.6.34-12</default> <generic_mbr>true</generic_mbr> <gfxmenu>/boot/message</gfxmenu> <lines_cache_id>2</lines_cache_id> <timeout config:type="integer">8</timeout> </global> ... <loader_type>grub</loader_type> <sections config:type="list"> <section> <append>resume=/dev/sda6 splash=silent quiet crashkernel= showopts</append> <image>/boot/vmlinuz-2.6.34-12-desktop</image> <initial>1</initial> <initrd>/boot/initrd-2.6.34-12-desktop</initrd> <lines_cache_id>0</lines_cache_id> <name>Desktop -- openSUSE 11.3 --</name> <original_name>linux</original_name> <root>/dev/sda7</root> <type>image</type> <vgamode>0x311</vgamode> </section> <section> <append>showopts apm=off noresume nosmp maxcpus=0 edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 x11failsafe</append> <image>/boot/vmlinuz-2.6.34-12-desktop</image> <initrd>/boot/initrd-2.6.34-12-desktop</initrd> <lines_cache_id>1</lines_cache_id> <name>Failsafe -- openSUSE 11.3 --</name> <original_name>failsafe</original_name> <root>/dev/sda7</root> <type>image</type> <vgamode>0x311</vgamode> </section> </sections> </bootloader>
The <partitioning> in 11.3 look like this:
<partitioning config:type="list"> <drive> <device>/dev/sda</device> <initialize config:type="boolean">true</initialize> <partitions config:type="list"> <partition> <create config:type="boolean">true</create> <crypt_fs config:type="boolean">false</crypt_fs> <filesystem config:type="symbol">ext3</filesystem> <format config:type="boolean">true</format> <fstopt>acl,user_xattr</fstopt> <loop_fs config:type="boolean">false</loop_fs> <mount>/boot</mount> <mountby config:type="symbol">id</mountby> <partition_id config:type="integer">131</partition_id> <partition_nr config:type="integer">5</partition_nr> <raid_options/> <resize config:type="boolean">false</resize> <size>150M</size> </partition> <partition> <create config:type="boolean">true</create> <crypt_fs config:type="boolean">false</crypt_fs> <filesystem config:type="symbol">swap</filesystem> <format config:type="boolean">true</format> <fstopt>defaults</fstopt> <loop_fs config:type="boolean">false</loop_fs> <mount>swap</mount> <mountby config:type="symbol">id</mountby> <partition_id config:type="integer">130</partition_id> <partition_nr config:type="integer">6</partition_nr> <raid_options/> <resize config:type="boolean">false</resize> <size>auto</size> </partition> <partition> <create config:type="boolean">true</create> <crypt_fs config:type="boolean">false</crypt_fs> <filesystem config:type="symbol">ext4</filesystem> <format config:type="boolean">true</format> <fstopt>acl,user_xattr</fstopt> <loop_fs config:type="boolean">false</loop_fs> <mount>/</mount> <mountby config:type="symbol">id</mountby> <partition_id config:type="integer">131</partition_id> <partition_nr config:type="integer">7</partition_nr> <raid_options/> <resize config:type="boolean">false</resize> <size>15GB</size> </partition> <partition> <create config:type="boolean">true</create> <crypt_fs config:type="boolean">false</crypt_fs> <filesystem config:type="symbol">ext4</filesystem> <format config:type="boolean">true</format> <loop_fs config:type="boolean">false</loop_fs> <mountby config:type="symbol">device</mountby> <partition_id config:type="integer">131</partition_id> <partition_nr config:type="integer">8</partition_nr> <raid_options/> <resize config:type="boolean">false</resize> <size>10GB</size> </partition> <partition> <create config:type="boolean">true</create> <crypt_fs config:type="boolean">false</crypt_fs> <filesystem config:type="symbol">ext4</filesystem> <format config:type="boolean">true</format> <fstopt>acl,user_xattr</fstopt> <loop_fs config:type="boolean">false</loop_fs> <mount>/usr</mount> <mountby config:type="symbol">id</mountby> <partition_id config:type="integer">131</partition_id> <partition_nr config:type="integer">9</partition_nr> <raid_options/> <resize config:type="boolean">false</resize> <size>10GB</size> </partition> <partition> <create config:type="boolean">true</create> <crypt_fs config:type="boolean">false</crypt_fs> <filesystem config:type="symbol">ext4</filesystem> <format config:type="boolean">true</format> <fstopt>acl,user_xattr</fstopt> <loop_fs config:type="boolean">false</loop_fs> <mount>/var</mount> <mountby config:type="symbol">id</mountby> <partition_id config:type="integer">131</partition_id> <partition_nr config:type="integer">10</partition_nr> <raid_options/> <resize config:type="boolean">false</resize> <size>5GB</size> </partition> </partitions>
But it's not working. I'm not sure what else to change :-/
Regards, Ivan
Hello,
so I'm still searching for a solution. Not clear why this works with 11.2 and with 11.3 not...
No idea?
Thanks!
Regards, Ivan
on Tuesday 07 September 2010 Ivan De Masi wrote:
so I'm still searching for a solution. Not clear why this works with 11.2 and with 11.3 not...
can you send me the /var/log/YaST2 directory in a tgz please?
Am 07.09.2010 13:54, schrieb Uwe Gansert:
on Tuesday 07 September 2010 Ivan De Masi wrote:
so I'm still searching for a solution. Not clear why this works with 11.2 and with 11.3 not...
can you send me the /var/log/YaST2 directory in a tgz please?
Hi Uwe,
I'll do so, thanks for your help! I'll send it directly to you.
Regards, Ivan
on Tuesday 07 September 2010 Ivan De Masi wrote:
I'll do so, thanks for your help! I'll send it directly to you.
can you try (<general> section!):
<general> ... <storage> <partition_alignment config:type="symbol">align_cylinder</partition_alignment> </storage> </general>
there seems to be something weird with the partitioning. http://www.suse.de/~ug/autoyast_doc/configuration.html#CreateProfile.General
Am 07.09.2010 17:06, schrieb Uwe Gansert:
on Tuesday 07 September 2010 Ivan De Masi wrote:
I'll do so, thanks for your help! I'll send it directly to you.
can you try (<general> section!):
<general> ... <storage> <partition_alignment config:type="symbol">align_cylinder</partition_alignment> </storage> </general>
there seems to be something weird with the partitioning. http://www.suse.de/~ug/autoyast_doc/configuration.html#CreateProfile.General
Hi Uwe,
thanks! I tried that - it didn't solve the problem, BUT I found out now what happend:
My rules.xml pointed to another (incomplete) profile, where this part
<boot_boot>true</boot_boot> <boot_extended>true</boot_extended> <boot_mbr>true</boot_mbr>
was missing :-(
The installation could not wirk without that - I'm sorry for the trouble I produced regarding this problem!!
Regards, Ivan
Am 19.08.2010 17:21, schrieb Uwe Gansert:
If you hardcode /dev/sda in the<bootloader> section, that won't help of course.
So I checked my original autoinst.xml.
<device_map_entry> <firmware>hd0</firmware>
<linux>/dev/disk/by-id/ata-Hitachi_HDS721680PLA380_PVE201Z8T78N9M</linux> </device_map_entry>
I changed the <linux> entry to "/dev/sda/" because on other machines the id of the disk is different. So with that config in 11.2 I had no trouble. I don't know yet another way to cope with different disk-ids...
Regards, Ivan
autoinstall@lists.opensuse.org