Grub problem after upgrade to OpenSuSE 12.2

Hello all,

After DVD update of OpenSuSE to version 12.2, i am facing a strange
behaviour.
At the first boot, grub says to me “Unable to mount partition”. After
some work, i have sucessifully booted the system from grub command line,
with this commands:

find /boot/grub/stage1
setup (hd0,0)
kernel = /boot/vmlinuz-3.4.11-2.16-desktop
initrd = /boot/initrd-3.4.11-2.16-desktop
boot

After that, i have noticied a strange thing: the root system is mounted
from /dev/md127 (previously is /dev/md1, and yes, is a software raid).

And, more strange problem, i have tryied to reinstall grub correctly
with yast. So, i have selected Bootloader from yast (it warns me
“Because of the partitioning, the boot loader cannot be installed
properly.”), and i select “Start from Scratch”. Then, i select “Propose
New Configuration”. One configuration is the following:

Section Name
Kernel-3.4.11-2.16-desktop▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
┌Section Settings──────────────────────────────────────────────────────┐
│ │
│ ] Do not verify Filesystem before Booting ] Enable SELinux │
│ Kernel Image [Browse…] │
│ /boot/vmlinuz-3.4.11-2.16-desktop▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │
│ Initial RAM Disk [Browse…] │
│ /boot/initrd-3.4.11-2.16-desktop▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │
│ Root Device Vga Mode │
│ ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒âText Mode▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒â │
│ Optional Kernel Command Line Parameter │
│ resume=/dev/md1 splash=silent quiet showopts▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │
│ │
└──────────────────────────────────────────────────────────────────────┘

Notice the Root Device empty. In the list i have:

/dev/md2
/dev/sda1
/dev/sda2
/dev/sda3
/dev/sdb1
/dev/sdb2
/dev/sdb3
tmpfs

But, the root device is /dev/md0, or i am wrong?

Anyway, i accept that config, and when tryies to install it, i have that
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 possi
completions of a device/filename. ]
grub> setup --stage2=/boot/grub/stage2 --force-lba (hd0) (hd0)
Error 17: Cannot mount selected partition
grub> quit

Then if i say to Yast to not retry the bootloader configuration, i found
this on my /boot/grub/menu.lst:

default 0
timeout 8
gfxmenu
##YaST - activate

###Don’t change this comment - YaST2 identifier: Original name: linux###
title openSUSE 12.2
kernel resume=/dev/md1 splash=silent quiet showopts vga=normal
initrd

###Don’t change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe – openSUSE 12.2
kernel showopts apm=off noresume edd=off powersaved=off nohz=off
highres=off processor.max_cstate=1 nomodeset x11failsafe vga=normal
initrd

###Don’t change this comment - YaST2 identifier: Original name: linux###
title Kernel-3.4.11-2.16-desktop
kernel resume=/dev/md1 splash=silent quiet showopts vga=normal
initrd

Is missing of some parts (kernel name, initrd name etc)… What’s up?

Btw, if i try to change the file /etc/grub.conf from:

setup --stage2=/boot/grub/stage2 --force-lba (hd0) (hd0)
quit

to:

setup --stage2=/boot/grub/stage2 --force-lba (hd0,0) (hd0,0)
quit

Then i manual re-install grub (grub-install), it seems to work:

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,0) (hd0,0)
Checking if “/boot/grub/stage1” exists… yes
Checking if “/boot/grub/stage2” exists… yes
Checking if “/boot/grub/e2fs_stage1_5” exists… yes
Running “embed /boot/grub/e2fs_stage1_5 (hd0,0)”… failed (this is not
fatal)
Running “embed /boot/grub/e2fs_stage1_5 (hd0,0)”… failed (this is not
fatal)
Running "install --force-lba --stage2=/boot/grub/stage2
/boot/grub/stage1 (hd0,0) /boot/grub/stage2 p /boot/grub/menu.lst "…
succeeded
Done.
grub> quit

Now, my problem is: how i can have a working grub configuration at boot?
And, why my root is now /dev/md127?

Any help is welcome, i have now no idea to how to resolve it…

Cordially,

Claudio.

Could you paste (in tags code please) output of bootinfoscript (SourceForge.net: Boot Info Script - Project Web Hosting - Open Source Software) which gives good overview of various boot related parts?

why my root is now /dev/md127?

Does it really matter? New version of mdadm may have changed how it enumerates raid devices. As far as I understand, your root is mounted during boot after update?

Notice one thing, the /etc/grub.conf and /boot/grub/menu.lst is manually edited by me, because Yast gives strange results, as explained in my previous post. But anyway, that system don’t boot automatically.

                  
Boot Info Script 0.61      [1 April 2012]


============================= Boot Info Summary: ===============================

 => Grub Legacy (v0.97) is installed in the MBR of /dev/sda and looks on the
    same drive in partition #1 for /boot/grub/stage2 and /boot/grub/menu.lst.
 => Grub Legacy (v0.97) is installed in the MBR of /dev/sdb and looks on boot
    drive #1 in partition #1 for /boot/grub/stage2 and /boot/grub/menu.lst.

sda1: __________________________________________________________________________

    File system:       linux_raid_member
    Boot sector type:  Grub Legacy
    Boot sector info:  Grub Legacy (v0.97) is installed in the boot sector
                       of sda1 and looks at sector 5745279 of the same hard
                       drive for the stage2 file.  A stage2 file is at this
                       location on /dev/sdb.  Stage2 looks on partition #1
                       for /boot/grub/menu.lst.

sda2: __________________________________________________________________________

    File system:       linux_raid_member
    Boot sector type:  -
    Boot sector info:

sda3: __________________________________________________________________________

    File system:       linux_raid_member
    Boot sector type:  -
    Boot sector info:

sdb1: __________________________________________________________________________

    File system:       linux_raid_member
    Boot sector type:  Grub Legacy
    Boot sector info:  Grub Legacy (v0.97) is installed in the boot sector
                       of sdb1 and looks at sector 5745279 of the same hard
                       drive for the stage2 file.  A stage2 file is at this
                       location on /dev/sdb.  Stage2 looks on partition #1
                       for /boot/grub/menu.lst.

sdb2: __________________________________________________________________________

    File system:       linux_raid_member
    Boot sector type:  -
    Boot sector info:

sdb3: __________________________________________________________________________

    File system:       linux_raid_member
    Boot sector type:  -
    Boot sector info:

md127: _________________________________________________________________________

    File system:       ext3
    Boot sector type:  Grub Legacy
    Boot sector info:  Grub Legacy (v0.97) is installed in the boot sector
                       of md127 and looks at sector 5745279 of the same hard
                       drive for the stage2 file.  A stage2 file is at this
                       location on /dev/sdb.  Stage2 looks on partition #1
                       for /boot/grub/menu.lst.
    Operating System:  Welcome to openSUSE 12.2
                       "Mantis" - Kernel ().
    Boot files:        /boot/grub/menu.lst /boot/grub2/grub.cfg /etc/fstab

md2: ___________________________________________________________________________

    File system:       ext3
    Boot sector type:  -
    Boot sector info:
    Operating System:
    Boot files:

md1: ___________________________________________________________________________

    File system:       swap
    Boot sector type:  -
    Boot sector info:

============================ Drive/Partition Info: =============================

Drive: sda _____________________________________________________________________

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda1    *             63    20,980,889    20,980,827  fd Linux raid autodetect
/dev/sda2          20,980,890    25,173,854     4,192,965  fd Linux raid autodetect
/dev/sda3          25,173,855   312,576,704   287,402,850  fd Linux raid autodetect


Drive: sdb _____________________________________________________________________

Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sdb1    *             63    20,980,889    20,980,827  fd Linux raid autodetect
/dev/sdb2          20,980,890    25,173,854     4,192,965  fd Linux raid autodetect
/dev/sdb3          25,173,855   312,576,704   287,402,850  fd Linux raid autodetect


"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/md1         a32061ed-e9aa-4458-85a7-ae0cac5f8923   swap
/dev/md127       a11786d9-5fb3-43b3-8c4c-ed062ba1437e   ext3
/dev/md2         bd514a64-0c5e-4f60-947c-11dfddac56f9   ext3
/dev/sda1        52bde6b6-b07b-c991-da93-0860fddca86a   linux_raid_member linux:0
/dev/sda2        47fa2125-12ec-9c3a-7903-fca8c0c95a5a   linux_raid_member linux:1
/dev/sda3        ec248eaf-03b4-1f8a-263e-2dec1255f3fa   linux_raid_member linux:2
/dev/sdb1        52bde6b6-b07b-c991-da93-0860fddca86a   linux_raid_member linux:0
/dev/sdb2        47fa2125-12ec-9c3a-7903-fca8c0c95a5a   linux_raid_member linux:1
/dev/sdb3        ec248eaf-03b4-1f8a-263e-2dec1255f3fa   linux_raid_member linux:2

================================ Mount points: =================================

Device           Mount_Point              Type       Options

/dev/md127       /                        ext3       (rw,relatime,errors=continue,user_xattr,acl,barrier=1,data=ordered)
/dev/md2         /var                     ext3       (rw,relatime,errors=continue,user_xattr,acl,barrier=1,data=ordered)


========================== md127/boot/grub/menu.lst: ===========================

--------------------------------------------------------------------------------
# Modified by YaST2. Last modification on Thu Oct 18 19:14:46 CEST 2012
# THIS FILE WILL BE PARTIALLY OVERWRITTEN by perl-Bootloader
# For the new kernel it try to figure out old parameters. In case we are not able to recognize it (e.g. change of flavor or strange install order ) it it use as fallback installation parameters from /etc/sysconfig/bootloader

default 0
timeout 8
gfxmenu
##YaST - activate

###Don't change this comment - YaST2 identifier: Original name: linux###
title Kernel-3.4.6-2.10-desktop
    root (hd0,0)
    kernel /boot/vmlinuz-3.4.11-2.16-desktop root=/dev/disk/by-id/a11786d9-5fb3-43b3-8c4c-ed062ba1437e    video=1280x1024 splash=silent quiet showopts vga=0x317
    initrd /boot/initrd-3.4.11-2.16-desktop

--------------------------------------------------------------------------------

========================== md127/boot/grub2/grub.cfg: ==========================

--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if  -s $prefix/grubenv ]; then
  load_env
fi
set default="${saved_entry}"

if  x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if  "${prev_saved_entry}" ]; then

  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if  -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  if  x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if  x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod part_msdos
insmod diskfilter
insmod mdraid1x
insmod ext2
set root='mduuid/52bde6b6b07bc991da930860fddca86a'
if  x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint='mduuid/52bde6b6b07bc991da930860fddca86a'  a11786d9-5fb3-43b3-8c4c-ed062ba1437e
else
  search --no-floppy --fs-uuid --set=root a11786d9-5fb3-43b3-8c4c-ed062ba1437e
fi
    font="/usr/share/grub2/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=POSIX
  insmod gettext
fi
terminal_output gfxterm
if  x${boot_once} = xtrue ]; then
  set timeout=0
elif sleep --interruptible 0 ; then
  set timeout=8
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'openSUSE 12.2' --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-a11786d9-5fb3-43b3-8c4c-ed062ba1437e' {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_msdos
        insmod part_msdos
        insmod diskfilter
        insmod mdraid1x
        insmod ext2
        set root='mduuid/52bde6b6b07bc991da930860fddca86a'
        if  x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint='mduuid/52bde6b6b07bc991da930860fddca86a'  a11786d9-5fb3-43b3-8c4c-ed062ba1437e
        else
          search --no-floppy --fs-uuid --set=root a11786d9-5fb3-43b3-8c4c-ed062ba1437e
        fi
        echo    'Loading Linux 3.4.11-2.16-desktop ...'
        linux   /boot/vmlinuz-3.4.11-2.16-desktop root=UUID=a11786d9-5fb3-43b3-8c4c-ed062ba1437e   resume=/dev/md1 splash=silent quiet showopts
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd-3.4.11-2.16-desktop
}
submenu 'Advanced options for openSUSE 12.2' $menuentry_id_option 'gnulinux-advanced-a11786d9-5fb3-43b3-8c4c-ed062ba1437e' {
        menuentry 'openSUSE 12.2, with Linux 3.4.11-2.16-desktop' --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.4.11-2.16-desktop-advanced-a11786d9-5fb3-43b3-8c4c-ed062ba1437e' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_msdos

                insmod part_msdos
                insmod diskfilter
                insmod mdraid1x
                insmod ext2
                set root='mduuid/52bde6b6b07bc991da930860fddca86a'
                if  x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint='mduuid/52bde6b6b07bc991da930860fddca86a'  a11786d9-5fb3-43b3-8c4c-ed062ba1437e
                else
                  search --no-floppy --fs-uuid --set=root a11786d9-5fb3-43b3-8c4c-ed062ba1437e
                fi
                echo    'Loading Linux 3.4.11-2.16-desktop ...'
                linux   /boot/vmlinuz-3.4.11-2.16-desktop root=UUID=a11786d9-5fb3-43b3-8c4c-ed062ba1437e   resume=/dev/md1 splash=silent quiet showopts
                echo    'Loading initial ramdisk ...'
                initrd  /boot/initrd-3.4.11-2.16-desktop
        }
        menuentry 'openSUSE 12.2, with Linux 3.4.11-2.16-desktop (recovery mode)' --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.4.11-2.16-desktop-recovery-a11786d9-5fb3-43b3-8c4c-ed062ba1437e' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_msdos
                insmod part_msdos
                insmod diskfilter
                insmod mdraid1x
                insmod ext2
                set root='mduuid/52bde6b6b07bc991da930860fddca86a'
                if  x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint='mduuid/52bde6b6b07bc991da930860fddca86a'  a11786d9-5fb3-43b3-8c4c-ed062ba1437e
                else
                  search --no-floppy --fs-uuid --set=root a11786d9-5fb3-43b3-8c4c-ed062ba1437e
                fi
                echo    'Loading Linux 3.4.11-2.16-desktop ...'
                linux   /boot/vmlinuz-3.4.11-2.16-desktop root=UUID=a11786d9-5fb3-43b3-8c4c-ed062ba1437e  showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset  x11failsafe
                echo    'Loading initial ramdisk ...'
                initrd  /boot/initrd-3.4.11-2.16-desktop
        }
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###



Follows to the next post…



### BEGIN /etc/grub.d/20_ppc_terminfo ###

### END /etc/grub.d/20_ppc_terminfo ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if  -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif  -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

### BEGIN /etc/grub.d/90_persistent ###
### END /etc/grub.d/90_persistent ###
--------------------------------------------------------------------------------

=============================== md127/etc/fstab: ===============================

--------------------------------------------------------------------------------
        /dev/md1             swap                 swap       defaults              0 0
        /dev/md0             /                    ext3       acl,user_xattr        1 1
        /dev/md2             /var                 ext3       acl,user_xattr        1 2
        proc                 /proc                proc       defaults              0 0
        sysfs                /sys                 sysfs      noauto                0 0
        debugfs              /sys/kernel/debug    debugfs    noauto                0 0
        usbfs                /proc/bus/usb        usbfs      noauto                0 0
        devpts               /dev/pts             devpts     mode=0620,gid=5       0 0
--------------------------------------------------------------------------------

=================== md127: Location of files loaded by Grub: ===================

           GiB - GB             File                                 Fragment(s)

   2.632846832 = 2.826997760    boot/grub/menu.lst                             1
   2.739631653 = 2.941657088    boot/grub/stage2                               2
   2.672336578 = 2.869399552    boot/grub2/grub.cfg                            2
   2.702449799 = 2.901733376    boot/initrd                                   10
   2.702449799 = 2.901733376    boot/initrd-3.4.11-2.16-desktop               10

   2.732261658 = 2.933743616    boot/vmlinuz                                   5
   2.732261658 = 2.933743616    boot/vmlinuz-3.4.11-2.16-desktop               5

=============================== StdErr Messages: ===============================

  No volume groups found


On 2012-10-22 10:36, Claudio75 wrote:
>
> Hello all,
>
> After DVD update of OpenSuSE to version 12.2, i am facing a strange
> behaviour.

Just a note. I don’t know the answer to your questions, but some of your
post is difficult to read because you did not use code tags for the
computer text, and it wraps.

Posting in
Code Tags - A Guide


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

On 2012-10-23 15:43, Carlos E. R. wrote:
> On 2012-10-22 10:36, Claudio75 wrote:

> Posting in
> Code Tags - A Guide

Oops, this came out in the post too late. You already know.


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

Sorry, but i can’t edit my first post…is not possible on this forum?

I suspect I know why and it is probably a reason why bootloader configuration fails, but could you please show some more information:

  • output of “mdadm -D /dev/md127”
  • /etc/mdadm.conf (if you have one)

I guess root= line is not offered because it missing in /etc/fstab and it also causes other confusion.

here is the mdadm -D /dev/md127 output:


mdadm -D /dev/md127
/dev/md127:
        Version : 1.0
  Creation Time : Thu Mar 25 12:47:08 2010
     Raid Level : raid1
     Array Size : 10490340 (10.00 GiB 10.74 GB)
  Used Dev Size : 10490340 (10.00 GiB 10.74 GB)
   Raid Devices : 2
  Total Devices : 2
    Persistence : Superblock is persistent

  Intent Bitmap : Internal

    Update Time : Tue Oct 23 19:37:37 2012
          State : active
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           Name : linux:0
           UUID : 52bde6b6:b07bc991:da930860:fddca86a
         Events : 138

    Number   Major   Minor   RaidDevice State
       0       8        1        0      active sync   /dev/sda1
       1       8       17        1      active sync   /dev/sdb1


And the content of /etc/mdadm.conf


DEVICE partitions
ARRAY /dev/md0 level=raid1 UUID=52bde6b6:b07bc991:da930860:fddca86a
ARRAY /dev/md1 level=raid1 UUID=47fa2125:12ec9c3a:7903fca8:c0c95a5a
ARRAY /dev/md2 level=raid1 UUID=ec248eaf:03b41f8a:263e2dec:1255f3fa

OK, you will need to fix initrd to properly create md0 instead of md127. Please unpack it and show mdadm.conf from it. Either it is missing, or contains wrong number.
As root:

mkdir /var/tmp/initrd
cd /var/tmp/initrd
zcat /boot/initrd-3.4.11-2.16-desktop | cpio -imduv

and show etc/mdadm.conf (notice missing slash - it should be from current directory).

On 2012-10-23 17:26, Claudio75 wrote:
>
> Sorry, but i can’t edit my first post…is not possible on this forum?

Nope

As documented somewhere, I’m sure. :slight_smile:


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

Here is my etc/mdadm.conf (from initrd)


AUTO -all
ARRAY /dev/md127 metadata=1.0 name=linux:0 UUID=52bde6b6:b07bc991:da930860:fddca86a

Yes, as expected. So edit etc/mdadm.conf, replace /dev/md127 with /dev/md0 and recreate initrd:

find . ! -name "*~" | cpio --quiet -H newc --create | gzip -9 > /boot/initrd_md0

reboot and select this /boot/initrd_md0 when booting. It should now come up with /dev/md0. And I expect that now YaST2 bootloader module will not be confused anymore.

man lsinitrd

:wink:

But @arvidjaar, do you have any suggestion regarding the issue described in this post: http://forums.opensuse.org/english/other-forums/development/programming-scripting/449058-upgrading-ati-driver-atiupgrade-25.html#post2499206 ?

So how do I extract initrd using lsinitrd? That what was needed.

BTW problem is quite interesting but unfortunately time consuming to reproduce. MD super version 1.x includes hostname. If current hostname is different from superblock, it is assumed array it foreign, so number from super is ignored and some random unused numbers will be chosen (i.e. instead of /dev/md0 you get /dev/md/host-name:0 -> /dev/md127). When you perform offline update, you boot from DVD and hostname is of course different. So during update it becomes /dev/md127. Not so bad, but mkinitrd in openSUSE will set this name in stone in initrd. From now on it is extremely hard to change this number for root; almost the only way I can think of is to directly fix generated initrd (but not using mkinitrd because it will break it again :slight_smile: )

This appears a combination of problems in mkinitrd and YaST2. mkinitrd should reuse existing lines from /etc/mdraid.conf and YaST2 should make sure /etc/mdraid.conf from updated system is available at the right time.

On 2012-10-27 07:56, arvidjaar wrote:

> BTW problem is quite interesting but unfortunately time consuming to
> reproduce. MD super version 1.x includes hostname. If current hostname
> is different from superblock, it is assumed array it foreign, so number
> from super is ignored and some random unused numbers will be chosen
> (i.e. instead of /dev/md0 you get /dev/md/host-name:0 -> /dev/md127).
> When you perform offline update, you boot from DVD and hostname is of
> course different. So during update it becomes /dev/md127. Not so bad,
> but mkinitrd in openSUSE will set this name in stone in initrd. From now
> on it is extremely hard to change this number for root; almost the only
> way I can think of is to directly fix generated initrd (but not using
> mkinitrd because it will break it again :slight_smile: )

This is very interesting.

I hope it is reported in some bugzilla :-?


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” (Minas Tirith))

No idea. This should be reported by someone who has actual YaST2 logs from installation available. Otherwise it is pure (even if educated) guess. But the problem itself (not in relation to openSUSE update) is well known, just search for “md127” … :slight_smile:

Oh you wanted to extract it. I thought you just wanted to have a look at it.

Hi,
I have the exact problem as described here :(. I launched a live distro and mounted my boot and root partitions. I could not find anywhere the /etc/mdadm.conf . How I should create new one ? I use opensuse live cd to boot into the system now

Hi,
I managed to launch from live cd a terminal so
I mounted my boot partition. Inside there I found

the grub/menu.lst

# Modified by YaST2. Last modification on Mon Jan 14 17:49:18 CET 2013
# THIS FILE WILL BE PARTIALLY OVERWRITTEN by perl-Bootloader
# For the new kernel it try to figure out old parameters. In case we are not able to recognize it (e.g. change of flavor or strange install order ) it it use as fallback installation parameters from /etc/sysconfig/bootloader

default 2
timeout 8
##YaST - generic_mbr
gfxmenu (hd0,1)/message
##YaST - activate

###Don't change this comment - YaST2 identifier: Original name: linux###
title openSUSE 12.1 - 3.4.11-2.16 (default)
    root (hd0,1)
    kernel /vmlinuz-3.4.11-2.16-default root=/dev/sda3 splash=0 resume=/dev/sda6 splash=silent quiet showopts vga=0x31a
    initrd /initrd-3.4.11-2.16-default

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 12.1 - 3.4.11-2.16 (default)
    root (hd0,1)


I also followed the instructions, provided on first page to unpack the initrd

zcat /media/boot/initrd-3.4.11-2.16-desktop | cpio -imduv

Inside initrd’s etc/ there is no file called
mdadm.conf

and dev/ is empty (probably this explains a lot)

What else might be needed? Hm…
my /grub/device.map looks like that

(fd0)   /dev/fd0
(hd0)   /dev/disk/by-id/ata-WDC_WD20EVDS-63T3B0_WD-WCAVY6660374


What should I do now? How to make opensuse boot again?

Alex