[opensuse] 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 Prono. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Il 18/10/2012 17:36, Claudio ML ha scritto:
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 Prono.
Anyone for this? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Claudio ML wrote:
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).
I have seen something similar, i.e. also a RAID device md127. In my case it was caused by disk leftovers from a previous RAID which were (wrongly) detected at startup. I'm guessing that the 127 is really a -1, but I don't think it matters. I don't use grub myself, someone else will have to help with that. -- Per Jessen, Zürich (14.5°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (2)
-
Claudio ML
-
Per Jessen