Salve,
scusate se insisto sull'argomento...ho dato un occhiata in giro (
http://wiki.eyermonkey.com/My_Ubuntu_%287.10%29_Installation) ma mi sono perso un po' :-[ o meglio, la procedura per installare ubuntu su Raid mi e' chiara, non tanto chiara invece e' la parte relativa a Grub che poi e' quella che mi interessa.
Ci riprovo
2 Dischi Sata in Raid 0 (sda,sdb --> winXP)
1 disco Pata (tutto per Linux)
Se installo Ubuntu sul disco Pata come faccio a inserire Grub sul disco con Raid....nella procedura sopra linkata ho estrapolato quanto segue
Open grub
Code:
grub
This will take you to the grub command prompt where you will enter the following commands.
Code:
device (hd0) /dev/mapper/
(hd0) represents the first hard drive in my computer, the "raid disk", not the partitions
Code:
find /boot/grub/stage1
Take note of the output of this command. it should be something like "(hd0,4)"
Code:
root (hd0,4)
Change "(hd0,4)" to the output of the last command. What "(hd0,4)" means is "hard drive 1, partition 5".
Code:
setup (hd0)
quit
Now you should be back to the normal terminal (but still "chroot"'ed into the new installation with "sudo chroot /target"). You now need to set up the GRUB configuration file. Run:
Code:
update-grub
When prompted to create a new menu.lst file, enter "y" for yes.
We need to edit the menu.lst file and put some of our own modifications:
Code:
sudo nano /boot/grub/menu.lst
This will open a command line text editor. To save and exit, press CTRL+X, then press "y", then press "enter"
* 1 Now you need to edit menu.lst to be fully set up for your RAID (and your Windows partition if one exists). Scroll to the bottom of the file. You should see some sections talking about "root" and "kernel". Change any occurences of "(hd0,0)" to whatever you entered when you set up grub. Since my was 2, I entered replaced "(hd0,0)" with "(hd0,1)" (meaning "hard drive number 1, partition number 2").
* 2 If you want to add a section to be able to boot to windows, copy the last section from the snippet below.
* 3 Here is what the bottom section of my menu.lst looks like:
Code:
## ## End Default Options ##
title Ubuntu 7.10
root (hd0,4)
kernel /boot/vmlinuz-2.6.22-14-generic root=/dev/mapper/nvidia_ciaejcff5 ro quiet splash
initrd /boot/initrd.img-2.6.22-14-generic
title Ubuntu 7.10 (recovery mode)
root (hd0,4)
kernel /boot/vmlinuz-2.6.22-14-generic root=/dev/mapper/nvidia_ciaejcff5 ro single
initrd /boot/initrd.img-2.6.22-14-generic
### END DEBIAN AUTOMAGIC KERNELS LIST
title Windows XP
root (hd0,0)
chainloader +1
boot
In parole povere...dopo aver lanciato la Live di Ubuntu e configurato correttamente il Raid con dmraid, installo Ubuntu normalmente sul disco Pata ed infine eseguo la procedura sopra elencata per l'installazione di Grub con Raid ?!? ???