[gentoo-user] Re: grub-install: warning: File system `ext2' doesn't support embedding.
On 2020-12-14, the...@sys-concept.com wrote: > On 12/13/2020 09:05 PM, Grant Edwards wrote: >> On 2020-12-14, the...@sys-concept.com wrote: >> >>> I removed "vfat" boot partition and created/change it to ext2 >>> >>> But now when i try to install grub: >>> >>> grub-install /dev/nvme0n1p2 >>> Installing for i386-pc platform. >>> grub-install: warning: File system `ext2' doesn't support embedding. >>> grub-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.. >>> grub-install: error: will not proceed with blocklists. >>> >>> Is it something that is going to create problem? >> >> If you want to install grub in an ext2 partition, you'll need to use >> the --force option to get grub2 to use blocklists. After you've done >> that, you need to make the critical file immutable so that it can't be >> altered or moved: >> >> # chattr +i /boot/grub/i386-pc/core.img >> >> If you ever need to update grub, you'll have to unlock that file using >> 'chattr -i'. > > I don't think so. I'm sorry I screwed up and answered the question you asked. Won't happen again. > I just tried made typo. > Instead of running: > grub-install /dev/nvme0n1 > > I did: > grub-install /dev/nvme0n1p2 Which told Grub to install in a partition (which is evidently an ext2 filesystem). To do that, you have to use the --force option. For that to be reliably you have to make the core.img file immutable after you do the installation.
Re: [gentoo-user] Re: grub-install: warning: File system `ext2' doesn't support embedding.
On 12/13/2020 09:05 PM, Grant Edwards wrote: > On 2020-12-14, the...@sys-concept.com wrote: > >> I removed "vfat" boot partition and created/change it to ext2 >> >> But now when i try to install grub: >> >> grub-install /dev/nvme0n1p2 >> Installing for i386-pc platform. >> grub-install: warning: File system `ext2' doesn't support embedding. >> grub-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.. >> grub-install: error: will not proceed with blocklists. >> >> Is it something that is going to create problem? > > If you want to install grub in an ext2 partition, you'll need to use > the --force option to get grub2 to use blocklists. After you've done > that, you need to make the critical file immutable so that it can't be > altered or moved: > > # chattr +i /boot/grub/i386-pc/core.img > > If you ever need to update grub, you'll have to unlock that file using > 'chattr -i'. > > -- > Grant I don't think so. I just tried made typo. Instead of running: grub-install /dev/nvme0n1 I did: grub-install /dev/nvme0n1p2 It install without any errors. I've not done any installation for some time, a lot had changed. It is a good practice as next PC will be a production PC; so I know to stay away from "vfat" in boot partition.
[gentoo-user] Re: grub-install: warning: File system `ext2' doesn't support embedding.
On 2020-12-14, the...@sys-concept.com wrote: > I removed "vfat" boot partition and created/change it to ext2 > > But now when i try to install grub: > > grub-install /dev/nvme0n1p2 > Installing for i386-pc platform. > grub-install: warning: File system `ext2' doesn't support embedding. > grub-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.. > grub-install: error: will not proceed with blocklists. > > Is it something that is going to create problem? If you want to install grub in an ext2 partition, you'll need to use the --force option to get grub2 to use blocklists. After you've done that, you need to make the critical file immutable so that it can't be altered or moved: # chattr +i /boot/grub/i386-pc/core.img If you ever need to update grub, you'll have to unlock that file using 'chattr -i'. -- Grant