Re: How do I install linux on a raid0?
On 08/18/2011 04:23 PM, Micha Feigin wrote: I just got a new w520 with two 500GB hard drives configured in raid0 (seems to be a bios based software raid0). Windows is already installed and running on it (and I need it to stay there unfortunately) and I'm trying to install linux along side it (debian unstable). I have a W700, which also has a similar controller. I'm happily running Gentoo Linux and Windows 7 backup OS there, on a striped raid setup. This is, indeed, fakeraid, so you have to have an initrd/initramfs and pass a few parameters to the kernel (which also has to have the support for this particular controller and the dmraid magic either as modules or built-in). Essentially, there is not much hardware support here, other than the metadata in the last sectors of both harddrives, everything is done at the main CPU. So you can use software RAID0/RAID1 with md instead of using the controller with dmraid and it might even be more robust. But I don't, for hysterical reasons (Windows). I use a separate /boot partition, but it's not required, I just play with a lot of kernels. The disklabel is the default msdos one, hasn't moved this one to GPT yet. Here is the unedited entry from my grub configuration file (Just in case, this is NOT grub2). title Gentoo Linux (3.0.0-git19) root (hd0,0) kernel /kernel-genkernel-x86_64-3.0.0-git19 root=/dev/ram0 real_root=/dev/mapper/isw_deficgecde_OEMRAID05 dodmraid ht=on resume=/dev/mapper/isw_deficgecde_OEMRAID02 nouveau.perflvl_wr= nouveau.perflvl=0 initrd /initramfs-genkernel-x86_64-3.0.0-git19 The important parts are, of course, the dodmraid, root and real_root paramethers. Try to get the partition numbering right otherwise funny things will occur. I rely on the Gentoo genkernel tool to make my initramfs, but it's really not a huge task to do it manually. If you need further help, mail me off-list. -- MichaelV ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
How do I install linux on a raid0?
I just got a new w520 with two 500GB hard drives configured in raid0 (seems to be a bios based software raid0). Windows is already installed and running on it (and I need it to stay there unfortunately) and I'm trying to install linux along side it (debian unstable). I got the installed running and it installed fine as it seems (although it looks like it messed up the partition table a bit as now I also have sda1 and sda2 that weren't there to begin with I think), but I can't get grub to install and rescue mode also won't boot into linux no matter what drive I choose as root. I did manage to mount the partition from /dev/matter/...05 and everything is installed on it, but again, no grub. Any ideas on how to get linux up and running (I need to boot into it somehow). I tried debian unstable installed from usb and debian live installed from usb, but neither goes past the grub step. I also tried following some instructions I found on the net saying to add dmraid=true to the command line during install and then again when grub fails when booting into recovery but no /dev/dm and no mounting the linux partition at that point so I can't continue. Any help will be appreciated. Thanks ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: How do I install linux on a raid0?
Micha Hi, From the little experience I had with this, I recall reading that these 'RAID controllers' on consumer level motherboards, aren't especially advised for use with linux. I don't know about Debian in this case, but here are the instructions for Ubuntu: https://help.ubuntu.com/community/FakeRaidHowto Personally I ended up using mdadm, but I didn't have the constriction of having to dual boot Windows as well. Have fun, Tom On Thu, Aug 18, 2011 at 3:23 PM, Micha Feigin mi...@post.tau.ac.il wrote: I just got a new w520 with two 500GB hard drives configured in raid0 (seems to be a bios based software raid0). Windows is already installed and running on it (and I need it to stay there unfortunately) and I'm trying to install linux along side it (debian unstable). I got the installed running and it installed fine as it seems (although it looks like it messed up the partition table a bit as now I also have sda1 and sda2 that weren't there to begin with I think), but I can't get grub to install and rescue mode also won't boot into linux no matter what drive I choose as root. I did manage to mount the partition from /dev/matter/...05 and everything is installed on it, but again, no grub. Any ideas on how to get linux up and running (I need to boot into it somehow). I tried debian unstable installed from usb and debian live installed from usb, but neither goes past the grub step. I also tried following some instructions I found on the net saying to add dmraid=true to the command line during install and then again when grub fails when booting into recovery but no /dev/dm and no mounting the linux partition at that point so I can't continue. Any help will be appreciated. Thanks __**_ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/**mailman/listinfo/linux-ilhttp://mailman.cs.huji.ac.il/mailman/listinfo/linux-il ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: How do I install linux on a raid0?
On Thu, Aug 18, 2011 at 3:23 PM, Micha Feigin mi...@post.tau.ac.il wrote: I just got a new w520 with two 500GB hard drives configured in raid0 (seems to be a bios based software raid0). I am a bit confused. If the RAID is BIOS-based then it sounds to me like it is HW RAID. In this case it should be transparent to Linux, grub, even DOS, shouldn't it? Is it some sort of fake RAID that is not a true HW RAID? In that case you may be out of luck or it may still work after some incantations and contortions. Windows is already installed and running on it (and I need it to stay there unfortunately) and I'm trying to install linux along side it (debian unstable). Are you trying to install Linux on the RAID itself or on another disk and use the RAID under it? Or on the RAID itself? It sounds like the latter, but I am not sure. Some details on your partition layout would help. I got the installed running and it installed fine I am not familiar with debian installation, but what did it show as the partition table during install? Did you modify it in any way? What does the partition table look like now? as it seems (although it looks like it messed up the partition table a bit as now I also have sda1 and sda2 that weren't there to begin with I think), but I can't get grub to install What exactly did you do and what didn't work? and rescue mode also won't boot into linux no matter what drive I choose as root. I did manage to mount the partition from /dev/matter/...05 and everything is installed on it, but again, no grub. Any ideas on how to get linux up and running (I need to boot into it somehow). My first guess is that you need to edit grub's device map as appropriate for your setup. However, this is a wild guess. It would help if you posted fdisk -l, mount table, details of your grub configuration, things that you have tried and the corresponding outputs... -- Oleg Goldshmidt | p...@goldshmidt.org o...@goldshmidt.org ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: How do I install linux on a raid0?
From what I've read up on, it seems like most non-server bioses do some sort of fake raid, where the raid is controlled from the bios but is actually a software raid (at least partially). Windows which came installed on the machine sees it (or reports it) as one disk (although it does call it oemraid). Linux seems a bit more confused. When I started it with dmraid=true, it sees it both as a strip drive (raid 0) and it seems that somewhat also as multiple disks. I have both /dev/sda and /dev/sdb and /dev/mapper/{really long name}. I can partition the drives and install the system to it, but then grub (grub2 actually) chokes. I can't mount the system properly under /target, calling grub-probe directly recognizes the partition as ext2 (although it is ext4) but calling grub-install says that grub-probe chokes. The system has 2 500gb disks in raid0 (strip) setup. The partition setup: #1 (primary) is windows 7 boot partition (1.17GB) #2 (primary) Windows 7 (600GB) free space for linux (will probably need to be logical) #3 (primary) lenovo recovery (15.6 GB) On 18-Aug-11 17:39, Oleg Goldshmidt wrote: On Thu, Aug 18, 2011 at 3:23 PM, Micha Feigin mi...@post.tau.ac.il mailto:mi...@post.tau.ac.il wrote: I just got a new w520 with two 500GB hard drives configured in raid0 (seems to be a bios based software raid0). I am a bit confused. If the RAID is BIOS-based then it sounds to me like it is HW RAID. In this case it should be transparent to Linux, grub, even DOS, shouldn't it? Is it some sort of fake RAID that is not a true HW RAID? In that case you may be out of luck or it may still work after some incantations and contortions. Windows is already installed and running on it (and I need it to stay there unfortunately) and I'm trying to install linux along side it (debian unstable). Are you trying to install Linux on the RAID itself or on another disk and use the RAID under it? Or on the RAID itself? It sounds like the latter, but I am not sure. Some details on your partition layout would help. I got the installed running and it installed fine I am not familiar with debian installation, but what did it show as the partition table during install? Did you modify it in any way? What does the partition table look like now? as it seems (although it looks like it messed up the partition table a bit as now I also have sda1 and sda2 that weren't there to begin with I think), but I can't get grub to install What exactly did you do and what didn't work? and rescue mode also won't boot into linux no matter what drive I choose as root. I did manage to mount the partition from /dev/matter/...05 and everything is installed on it, but again, no grub. Any ideas on how to get linux up and running (I need to boot into it somehow). My first guess is that you need to edit grub's device map as appropriate for your setup. However, this is a wild guess. It would help if you posted fdisk -l, mount table, details of your grub configuration, things that you have tried and the corresponding outputs... -- Oleg Goldshmidt | p...@goldshmidt.org mailto:o...@goldshmidt.org ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il