Results 1 to 10 of 24

Thread: Trouble installing grub on RAID array

Threaded View

  1. #1
    Join Date
    Apr 2007
    Beans
    107

    Trouble installing grub on RAID array

    I'm trying to switch to a new RAID5 array but can't get it to boot. My disks:
    1. /dev/sda: new RAID member
    2. /dev/sdb: Windows disk
    3. /dev/sdc: new RAID member
    4. /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>
    Last edited by parsim; February 5th, 2011 at 01:35 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •