[Ubuntu 10.04-amd64] Cannot setup GRUB on RAID 0 set up disks
Hi,
I've been all afternoon trying to install Ubuntu Lucid on my fakeRAID 0 configured (2) HDDs and am unable to set GRUB up. The fake RAID setup is provided by Intel Matrix Storage Manager, it is correctly enabled and the BIOS is also correctly set up -- in fact, I've managed to install Windows 7 with no significant hitch. After struggling with partioning the drives (had to follow advice I found on a very helpful guide online [0]), creating the filesystems AND getting Ubuntu's installer to actually do what it is supposed to do, I now cannot seem to set GRUB up. My system, as it stands, is unbootable at all; via live CD only. :-/ This is how the RAID0 dev is partitioned: Code:
# fdisk -l /dev/mapper/isw_ecdeiihbfi_Volume0 Having read a few posts and guides I found here and there [0][1][2], I started by removing grub and reinstalling it from scratch like so (after chrooting into the filesystem): Code:
# apt-get purge grub2 grub-pc grub Code:
# grub-install /dev/mapper/isw_ecdeiihbfi_Volume0 Code:
# cp /usr/lib/grub/x86_64-pc/* /boot/grub Code:
# cat /boot/grub/device.map Code:
# grub --no-curses In desperation I went ahead and tried setting it up in hd0,0 (commands root (hd0,0) && setup (hd0) ) but no luck. I am really at a complete loss here. I don't know what else to do and would very much appreciate some help. This has been a very frustrating experience so far full obstacles that never seem to go away no matter how many posts, guides or how-to tutorials I read. [0] https://help.ubuntu.com/community/Fa...20New%20System [1] http://ubuntuforums.org/showthread.php?t=1360445 [2] http://ubuntuforums.org/showpost.php...2&postcount=40 |
I don't know about GRUB2 but GRUB could not be installed on a RAID device, which is why a separate boot partition was required. This could be on another drive or one could use software RAID to create a RAID device that does not take up all of the space.
|
Replying to my own question as I found the solution roughly 5 minutes after posting it and thought it might be of help to anyone facing the same issue as I was.
It turns out the guides/posts I found were mostly right in almost every single way. I did have to make adjustments along the way -- i.e. use different tools at different steps like when creating the filesystems -- but the general direction described in them was spot on and allowed me to finally, after so much frustration, partition my RAID0 enabled disks, create the filesystems and install Ubuntu Lucid. I was failing to install and set GRUB up because apparently neither of the authors of the posts/guides had created a partition for /boot whereas I had, along with /home. As such, their guides only described chrooting into a root-centric filesystem (no /boot or any other partitions.) So, whenever I chrooted into my filesystem from the Live CD without first mounting my /boot partition, running whatever GRUB commands was not affecting my /boot partition. As such, the solution is obvious enough: I only had to mount my /boot before chrooting into my filesystem. Then it was only a matter of running the GRUB commands described in my OP and, voila, Ubuntu lives in RAID 0! I've even been able to install Windows, the 7th and dualboot! Just awesome. One note though. Running find /boot/grub/stage1 still didn't work for me so I had to guess what parameters to pass to root (hdx,y). It turns out that in my case (hd0,0) were the right parameters to pass as is in my OP but your mileage may vary (reason for my guess was /boot was the first partition I created before anything else.) So, all this hassle because of a newbie mistake! I really hope this may be of help to anyone out there as much as I found the posts/guides referenced in my OP helpful. |
All times are GMT -5. The time now is 03:41 AM. |