[opensuse] grub2-install question
For some reason my box decided to stop booting. All I get is "GRUB" at boot. I try re-installing grub as I've done in the past but no-go. # fdisk -l /dev/sda Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 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: gpt Disk identifier: 51CAE1F2-829B-4F9C-9CC7-CE6460E07AB8 Device Start End Sectors Size Type /dev/sda1 2048 20973567 20971520 10G Linux filesystem /dev/sda2 20973568 54527999 33554432 16G Linux swap /dev/sda3 54528000 473958399 419430400 200G Linux filesystem /dev/sda4 473958400 683673599 209715200 100G Linux filesystem /dev/sda5 683673600 976773134 293099535 139.8G Linux filesystem # mount /dev/sda3 /mnt # mount /dev/sda1 /mnt/boot # mount --bind /dev /mnt/dev # mount --bind /sys /mnt/sys # mount --bind /proc /mnt/proc # chroot /mnt #grub2-mkconfig -o /boot/grub2/grub.cfg Generating grub configuration file ... Found theme: /boot/grub2/themes/openSUSE/theme.txt Found linux image: /boot/vmlinuz-5.0.0-lcrs Found initrd image: /boot/initrd-5.0.0-lcrs Found linux image: /boot/vmlinuz-4.20.7-lcrs Found initrd image: /boot/initrd-4.20.7-lcrs WARNING: Failed to connect to lvmetad. Falling back to device scanning. Found openSUSE Leap 15.0 on /dev/sdd3 done # grub2-install /dev/sda1 Installing for i386-pc platform. grub2-install: warning: File system `ext2' doesn't support embedding. grub2-install: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged.. grub2-install: error: will not proceed with blocklists. Don't remember ever seeing the above error and this has worked in the past. What am I doing wrong? I still just get "GRUB" at boot. Thanks Mark -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Tue, Mar 5, 2019 at 12:30 PM Mark Hounschell
# grub2-install /dev/sda1 Installing for i386-pc platform. grub2-install: warning: File system `ext2' doesn't support embedding. grub2-install: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged.. grub2-install: error: will not proceed with blocklists.
Don't remember ever seeing the above error and this has worked in the past.
It could not work in the past.
What am I doing wrong? I still just get "GRUB" at boot.
Use "grub2-install --force". -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2019-03-05 5:35 a.m., Andrei Borzenkov wrote:
l not proceed with blocklists.
Don't remember ever seeing the above error and this has worked in the past.
I too encountered the above. Once upon a time it worked ... then 'something changed' and it behaved like the above. What the !!! well software gets updated. "Yes, it used to be, but we changed all that" seems to be a mantra of programmers.
It could not work in the past.
It could; it did but, the crux of the matter is that the past is irrelevant; what is relevant is that it doesn't work now and isn't going to.
What am I doing wrong? I still just get "GRUB" at boot. Use "grub2-install --force".
My solution was slightly different. I had adequate backups and my attitude, which has often been criticised here, of using LVM and making lots of divisions for not just things under /home and documentation and /srv but under /usr and such things that involve "local" and many of the settings under /etc ... Well, I not only used the 'failure' as an excuse to upgrade the OS but I bought a new drive to put it on as well. OK, so it was a wimp-out, but sometimes you need that little incentive to move on. Right now it will take a bit more than that to make me upgrade to "15", but that's OT here. Mark, you might want to consider a non-trivial move here rather than a repair. You might do, as I did back then, consider giving up completely on the extN family of file systems. I've had no regrets what so ever about that. I'm sure that someone on the list will also recommend giving up on GRUB as a bootloader. That is not an avenue I've explored though I do recall using LILO with early versions of Linux. https://www.tecmint.com/best-linux-boot-loaders/ https://www.slant.co/topics/4820/~linux-bootloaders https://wiki.archlinux.org/index.php/Systemd-boot http://refit.sourceforge.net/ https://wiki.archlinux.org/index.php/Clover I have no first-hand knowledge of any of these so YMMV. GRUB and GRUB2 have served me well, even as I say, needing a 'behind the scenes' equipment upgrade to match software upgrades. But isn't that so often the case? -- A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting frowned upon? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 3/5/19 8:26 AM, Anton Aylward wrote:
On 2019-03-05 5:35 a.m., Andrei Borzenkov wrote:
l not proceed with blocklists.
Don't remember ever seeing the above error and this has worked in the past.
I too encountered the above. Once upon a time it worked ... then 'something changed' and it behaved like the above. What the !!! well software gets updated. "Yes, it used to be, but we changed all that" seems to be a mantra of programmers.
It could not work in the past.
It could; it did but, the crux of the matter is that the past is irrelevant; what is relevant is that it doesn't work now and isn't going to.
I'm pretty sure the reason it doesn't work now is because the disk is using GPT instead of the older PC style labels. I still have some non-GPT systems where this works like it used to. You know, with extended partitions. Either way the --force took care of the issue for me. Regards Mark -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (4)
-
Andrei Borzenkov
-
Anton Aylward
-
Mark Hounschell
-
Mark Hounschell