I'm trying to switch to a new RAID5 array but can't get it to boot. My disks:
- /dev/sda: new RAID member
- /dev/sdb: Windows disk
- /dev/sdc: new RAID member
- /dev/sdd: old disk, currently using /dev/sdd3 as /
The RAID array is /dev/md0, which is comprised of /dev/sda1 and /dev/sdc1. I have copied the contents of /dev/sdd3 to /dev/md0, and can mount /dev/md0 and chroot into it. I did this:
Code:
sudo mount /dev/md0 /mnt/raid
sudo mount --bind /dev /mnt/raid/dev
sudo mount --bind /proc /mnt/raid/proc
sudo mount --bind /sys /mnt/raid/sys
sudo chroot /mnt/raid
update-grub
grub-install /dev/sda
This completes with no errors, and /boot/grub/grub.cfg looks correct [EDIT: No it doesn't. It has root='(md/0)' instead of root='(md0)']. For example, here's the first entry:
Code:
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.35-25-generic' --class ubuntu --class gnu-linu
x --class gnu --class os {
recordfail
insmod raid
insmod raid5rec
insmod mdraid
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(md/0)'
search --no-floppy --fs-uuid --set a928b10f-bc3a-43ea-a4e2-49b073a8375d
linux /boot/vmlinuz-2.6.35-25-generic root=UUID=a928b10f-bc3a-43ea-a4e
2-49b073a8375d ro quiet splash
initrd /boot/initrd.img-2.6.35-25-generic
}
The UUID a928b10f-bc3a-43ea-a4e2-49b073a8375d is /dev/md0.
However, when I try to boot from /dev/sda, I get:
Code:
error: file not found
grub rescue>
Bookmarks