I installed openSUSE Leap from a USBLive. After finishing successfully the installation process, I did not reboot. I did shutdown my laptop, I removed the USB and then, I turned on my laptop, I entered the BIOS, I changed the boot disks order to boot from the HDD first. But then, when my laptop boots up, it stops at the grub2 prompt (grub>).
Reading about this issue, I could understand that GRUB2 can’t find its configuration files.
Overview of my Disk and Partition-layout:
Disk /dev/sda: 698.7 GiB, 750156374016 bytes, 1465149168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: C602CE13-BEAE-4F4A-82D2-94449262634C
Device Start End Sectors Size Type
/dev/sda1 2048 1050623 1048576 512M EFI System
/dev/sda2 1050624 84951039 83900416 40G Microsoft basic data
/dev/sda3 1452814336 1465147391 12333056 5.9G Linux swap
/dev/sda4 84951040 1452814335 1367863296 652.3G Microsoft basic data
Partition table entries are not in disk order.
Disk /dev/sdb: 7.3 GiB, 7803174912 bytes, 15240576 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x20ca2c8b
Device Boot Start End Sectors Size Id Type
/dev/sdb1 3780 11339 7560 3.7M ef EFI (FAT-12/16/32)
/dev/sdb2 * 11340 9078783 9067444 4.3G 17 Hidden HPFS/NTFS
Model: ATA Hitachi HTS54757 (scsi)
Disk /dev/sda: 750GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 538MB 537MB fat32 boot
2 538MB 43.5GB 43.0GB btrfs primary legacy_boot
4 43.5GB 744GB 700GB xfs primary
3 744GB 750GB 6315MB linux-swap(v1)
Model: Kingston DT 101 G2 (scsi)
Disk /dev/sdb: 7803MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1935kB 5806kB 3871kB primary type=ef
2 5806kB 4648MB 4643MB primary boot, hidden, type=17
Well, I’ve been trying re-install grub2. From the bash shell, I did the following:
sudo mount /dev/sda2 /mnt
sudo moun --bind /dev /mnt/dev &&
sudo moun --bind /dev/pts /mnt/dev/pts &&
sudo moun --bind /proc /mnt/proc &&
sudo moun --bind /sys /mnt/sys
sudo chroot /mnt
Then when I type:
# grub2-mkconfig -o /boot/grub2/grub.cfg
but I get the following:
Generating grub configuration file ...
Found theme: /boot/grub2/themes/openSUSE/theme.txt
Found linux image: /boot/vmlinuz-4.1.12-1-default
Found initrd image: /boot/initrd-4.1.12-1-default
/run/lvm/lvmetad.socket: connect failed: No such file or directory
WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
done
When I type:
# grub2-install /dev/sda
I get …
Installing for i386-pc platform.
grub2-install: warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible.
grub2-install: error: filesystem `btrfs' doesn't support blocklists.
Well, I don’t know what to do, ¿Any help? …