Solution to RAID /boot issue in fc17?

Alan Cox alan at lxorguk.ukuu.org.uk
Sat Jun 2 19:52:51 UTC 2012


> Can you describe how you did this? Is this during the install and
> before reboot? Basically copy it, unmount, shorten it to begin at 4096
> with fdisk, remake filesystem, remount, then copy contents back?
> 
> Afterwards, you would re-run "grub2-install /dev/sda" correct?

Don't bother. You don't need to go through that mayhem.

grub2-install /dev/sda

if it whines and says you'll need to use a map file then fine. Make sure
there are no other errors reported, you've got the right disk etc and do

grub2-install -f /dev/sda

providing your /boot isnt on LVM, and you don't do anything insane like
run third party defrag tools on it then it will all just work.

If you ever do, then rerun grub2-install and all will be well.

Really the install should handle this. It's *stupid* having an installer
which solves the 'shortage of boot space' problem by leaving the user
silently with an unbootable box. It should ask permission if need be or
just use -f.

Alan


More information about the users mailing list