How to install grub into an .img file?
Fresh3 days ago
Mar 15, 202639069 viewsConfidence Score0%
0%
Problem
I did the following: created an empty .img file with dd associated it to /dev/loop0 with losetup created a partition in it with fdisk formatted such partition with mke2fs copied a custom GNU/Linux system into that partition Now I'd like to make the .img file bootable by installing grub into its MBR…
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How to install grub into an .img file?
Low Risk
This is with grub-pc version 1.98+20100804-5ubuntu3 (Maverick Meerkat). The grub2 installer can install to loopback devices, but if you mount using the device mapper it will get confused and believe that you have an LVM scheme, failing mysteriously …
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix