GRUB hangs during installation

Hi,

I have changed the hardware from three hard drives to only two hard drives slightly larger.
On sda is WINDOWS-7 and on sdb was and should now be completely re-installed
openSUSE 31.2.

The installation ran until reboot. During the rebooting GRUB2 appears and hung with the
following message:

Booting from local disk…
GRUB loading.
Welcome to GRUB!

error: no such device: dc345497-71c1-402d-b21b-4e8643710c68
Entering rescue mode…
grub rescue> _

Previously on several attempts openSUSE has searched the removed SAMSUNG hard drive.
Obviously, this hard drive is still being sought by grub - a strange behavior.

What can I do here?

Cheers,
Werner.

It depends on how you moved data. If your /boot/grub2 is still on the same filesystem type as before (i.e. it was on ext2 and it is now still on ext2 or even ext4) and new hard disk has the same partition table as old (MSDOS or GPT) you could load grub menu to continue boot and then fix grub. First do “ls”. It will show you list of recognized hard disks and partitions, like

(hd0) (hd0,msdos1) ... (hd1,msdos3)

Here hd0 and hd1 are drives; msdos1 etc are partitions on these drives. Now if you have /boot/grub2 on the second partition of the first drive it would be (hd0,msdos2)/boot/grub2. You can try to list content of filesystem - “ls (hd0,msdos2)/”, “ls (hd0,msdos2)/boot” etc to verify that it is indeed the right partition. When found, do


set prefix=(hd0,msdos2)/boot/grub2
insmod normal
normal

This should result in loading grub and showing boot menu … then come back and we’ll try to fix it for the future :slight_smile:

Thanks for the hint.

I have WINDOWS-7 an hard disk sda und openSUSE-13.2 on sdb.
First I have fully installed WINDOWS-7 on sda. sdb was switched off
(cables removed).
Then was openSUSE fully installed on sdb, with now disconnected sda.

Now both disks were reconnected. sdb was determined in BIOS as the
first drive. Here in openSUSE I reinstalled YaST => System => Bootloader.

After restarting the PC the GRUB menu appeared, with the ability to select
individual both operating systems.

I’m pleased.

Cheers,
Werner.