/usr/sbin/grub-setup: warn: Attempting to install GRUB to a partitionless disk or to a partition. This is a BAD idea.. /usr/sbin/grub-setup: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged.. /usr/sbin/grub-setup: error: cannot read `/grub/core.img' correctly. This renders the box unbootable. Fixed by downgrading to 1.99-17: Nastavuji balÃk grub-common (1.99-17) ⦠Nastavuji balÃk grub2-common (1.99-17) ⦠Nastavuji balÃk grub-pc-bin (1.99-17) ⦠Nastavuji balÃk grub-pc (1.99-17) ⦠/usr/sbin/grub-setup: warn: Attempting to install GRUB to a partitionless disk or to a partition. This is a BAD idea.. /usr/sbin/grub-setup: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged.. Installation finished. No error reported.
The above error about inability to read core.img got replaced with "error: non-sector-aligned data is found in the core file" somewhere between 1.99-19 and 1.99-20 (which got fixed 1.99-21 - #666992) so this I guess may be closed). (For people hitting the same, I could work around it by reformatting /boot to ext3 on *some* of the affected systems. NFC. Running grub-setup with --debug showed that it really was unable to find the file, would suggest some cryptic bug in ext2.mod. Systems with grub installed to MBR were unaffected, however that is not really an option for everyone, e.g. cannot be used on dual-boot boxes using Bitlocker-encrypted Vista/W7 system partition.)
The fix in 1.99-21 was just to fix the regression in 1.99-19. Did it really fix this bug as well? I wasn't expecting it to.
This is still happening with version 1.99-21 which recently hit testing. After the upgrade the system can no longer boot and I'm unable to install grub on the MBR.
I have the same issue when /boot is a separate ext2 partition. If I change it to ext4, grub-install will succeed. Package: grub-pc Architecture: amd64 Version: 1.99-27+deb7u2
I have the same issue when /boot is a separate ext2 partition. If I change it to ext4, grub-install will succeed. Package: grub-pc Architecture: amd64 Version: 1.99-27+deb7u2