I'm attempting to move my /boot
folder from the /
partition, to /dev/sdb
. The following script:
parted -s /dev/sdb mklabel msdos mkpart primary ext2 1M 100% set 1 boot on
mkfs.ext2 /dev/sdb1
mkdir /mnt/boot
mount /dev/sdb1 /mnt/boot
cd /boot
find . -depth -print0 | \
cpio --null --sparse --make-directories --pass-through --verbose /mnt/boot
cd /
umount /mnt/boot
mv /boot /boot.orig
mkdir /boot
echo "/dev/sdb1 /boot ext2 ro 0 2" >>/etc/fstab
mount /dev/sdb1 /boot
parted /dev/sda set 1 boot off
grub-install /dev/sdb
update-grub
reboot
produces this error:
error: file '/boot/grub/i386-pc/normal.mod' not found.
grub rescue>
Any ideas?
Edit: It appears that the above script works fine, if the original /boot
directory is on a separate partition (say /dev/sda2
). It only fails if it's on the same partition as the /
partition (/dev/sda1
).
I've tried many, many variations of the above script, on both Ubuntu 13.04 and Fedora 19, and have yet to avoid the file '/boot/grub/i386-pc/normal.mod' not found
error.
Any other ideas?