CentOS 7 grub2-install: File system ext2 doesn't support embedding

General support questions
Post Reply
orudie
Posts: 22
Joined: 2013/01/29 03:20:14

CentOS 7 grub2-install: File system ext2 doesn't support embedding

Post by orudie » 2022/08/10 11:38:12

Hi all!

I downloaded a disk.img from Linode which has CentOS7.
I created a new VM using this disk.img in Synology VM manager.
However, this disk does not boot CentOS7 because this disk is not bootable.
I am stuck in the middle of trying to reinstall grub2 using CentOS7 installation dvd ISO in rescue mode.

The steps I took so far are:

#boot VM from CentOS7 installation dvd ISO in rescue mode.
mount /dev/sda /mnt/sysimage
mount --bind /dev /mnt/sysimage/dev
mount --bind /proc /mnt/sysimage/proc
mount --bind /sys /mnt/sysimage/sys
chroot /mnt/sysimage
grub2-mkconfig -o /boot/grub2/grub.cfg
grub2-install /dev/sda

The last grub2-install /dev/sda command returns an error:
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 therefore is discouraged..
grub2-install: error: will not proceed with blocklists.

Attaching screenshots from the rescue mode.

rescue1
Image

rescue2
Image

rescue3
Image

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: CentOS 7 grub2-install: File system ext2 doesn't support embedding

Post by TrevorH » 2022/08/10 14:08:11

Why are you trying to do that rather than installing a copy of CentOS 7 from scratch?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

orudie
Posts: 22
Joined: 2013/01/29 03:20:14

Re: CentOS 7 grub2-install: File system ext2 doesn't support embedding

Post by orudie » 2022/08/10 17:33:47

Finally got grub2-install to work by adding --force option.

grub2-install /dev/sda --force
grub2-mkconfig -o /boot/grub2/grub.cfg

Post Reply