Grub com RAID1 em um sistema funcionando

Link: http://www.howtoforge.com/software-raid1-grub-boot-debian-etch-p2

 Monte primeiro um RAID1 e verifique se esta operacional:

cat /proc/mdstat

Depois monte a partição:

mkdir /mnt/raid
mount /dev/md0 /mnt/raid

Copie os arquivos :

cp -dpRx / /mnt/raid 

Ajuste /mnt/raid/etc/fstab para ter como root o Raid = /dev/md0

/dev/md0 / ext3 defaults,errors=remount-ro 0 1 

Ajuste /mnt/raid/etc/mtab para ter como root o Raid = /dev/md0

/dev/md0 / ext3 rw,errors=remount-ro 0 0

Ajuste o Grub /mnt/raid/boot/grub/menu.lst

[...]
default 0
fallback 1
[...]
# kopt=root=/dev/md0 ro
[...]
title Ubuntu RAID (hd1)
root (hd1,0)
kernel /vmlinuz root=/dev/md0 ro
initrd /initrd.img
title Ubuntu RAID (hd2)
root (hd2,0)
kernel /vmlinuz root=/dev/md0 ro
initrd /initrd.img

title Ubuntu (disco 1 - emergency)
root (hd1,0)
kernel /vmlinuz root=/dev/sdb1 ro single
initrd /initrd.img

title Ubuntu (disco 2 - emergency)
root (hd2,0)
kernel /vmlinuz root=/dev/sdc1 ro single
initrd /initrd.img

Instale o Grub no Raid:

grub
root (hd1,0)
setup (hd1)
root (hd2,0)
setup (hd2)
quit
Outro Link: http://www.gordontillman.info/computers/49-operating-systems/79-setting-up-raid1-on-my-ubuntu-machine 



link:  https://help.ubuntu.com/community/Grub2?action=show&redirect=GRUB2#Copy_LiveCD_Files 

Sistemas como grub 2 devem utilizar outros comandos:
  1. In a Live-CD session run: sudo fdisk -l to determine the disk name X and the partition number Y of your Ubuntu installation - should be of form /dev/sdXY.
  2. run sudo mount /dev/sdXY /mnt
  3. run sudo grub-install --root-directory=/mnt/boot /dev/sdX
  4. Reboot.
  5. Update the grub menu: sudo update-grub


Comments