SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Sure, although if you go to "search" on this forum and type "slackware raid dmraid" you will get some excellent step by step explanations, mostly by Erik_FL. There are a number of them going back quite some time.
I should mention that I mirror my RAID0 array with another disk, so that I actually dual boot Windows and Slackware on a mirror composed of a 320G disk and a RAID0 array composed of two 160G disks. Both mirrors have an MBR with a copy of GRUB, and the BIOS can boot either one. Both mirrors have three identical partitions: a Windows partition, a boot partition and an encrypted LUKS partition which contains swap and / using LVM for Slackware. Slackware uses dmraid in an initrd to initialize the RAID0 array, then mdadm to setup the mirror. Windows uses a driver to recognize the RAID0 array, then uses "Dynamic Disks" (LDM, not to be confused with Linux's LVM) to mirror the RAID0 drive to the other 320G drive.
It is, in fact, easiest to set up the whole RAID0 array if you have another disk to install from, rather than having to use the live CD. If you use a live CD, you'll have to have another place, a zip drive, or USB thumb drive (or floppy!) to store your boot files until you're ready to go. In my case, I installed on the regular disk first, then used sfdisk to copy over to the RAID0 array, resynced the mirrors and voila! You don't have to do it that way.
The Slackware help files detail how to setup RAID and LVM with encryption, using the mkinitrd script as shown in the above posts. All you have to do, in addition, is go into the /boot/initrd-tree directory after generating the initrd, modify the file "init" so that you have "dmraid -ay" near the beginning of the file. You will have to provide a copy of "dmraid" in /boot/initrd-tree/sbin with the necessary librairies (or make a statically linked version) and then re-run "mkinitrd" without any parameters. You can also modify the initrd to search for the LUKS key on a floppy, zip or USB drive or prompt you if there isn't one present.
Last edited by mostlyharmless; 02-02-2011 at 11:53 AM.
Sure, although if you go to "search" on this forum and type "slackware raid dmraid" you will get some excellent step by step explanations, mostly by Erik_FL. There are a number of them going back quite some time.
I should mention that I mirror my RAID0 array with another disk, so that I actually dual boot Windows and Slackware on a mirror composed of a 320G disk and a RAID0 array composed of two 160G disks. Both mirrors have an MBR with a copy of GRUB, and the BIOS can boot either one. Both mirrors have three identical partitions: a Windows partition, a boot partition and an encrypted LUKS partition which contains swap and / using LVM for Slackware. Slackware uses dmraid in an initrd to initialize the RAID0 array, then mdadm to setup the mirror. Windows uses a driver to recognize the RAID0 array, then uses "Dynamic Disks" (LDM, not to be confused with Linux's LVM) to mirror the RAID0 drive to the other 320G drive.
It is, in fact, easiest to set up the whole RAID0 array if you have another disk to install from, rather than having to use the live CD. If you use a live CD, you'll have to have another place, a zip drive, or USB thumb drive (or floppy!) to store your boot files until you're ready to go. In my case, I installed on the regular disk first, then used sfdisk to copy over to the RAID0 array, resynced the mirrors and voila! You don't have to do it that way.
The Slackware help files detail how to setup RAID and LVM with encryption, using the mkinitrd script as shown in the above posts. All you have to do, in addition, is go into the /boot/initrd-tree directory after generating the initrd, modify the file "init" so that you have "dmraid -ay" near the beginning of the file. You will have to provide a copy of "dmraid" in /boot/initrd-tree/sbin with the necessary librairies (or make a statically linked version) and then re-run "mkinitrd" without any parameters. You can also modify the initrd to search for the LUKS key on a floppy, zip or USB drive or prompt you if there isn't one present.
I think that you miss one point. I use fake raid and I think that during install the driver used was mdadm.
I have Windows already installed in a array Raid0.
You can use mdadm instead of dmraid in your initrd if you want. Mdadm 3.0 supports fakeraid for some chipsets. Did you look at the thread suggested by mRgoBlin? Windows uses it's own driver for each manufacturer; it doesn't matter about that.
Last edited by mostlyharmless; 02-02-2011 at 02:11 PM.
Grub 0.97 used to be in /extra, or you can find it anywhere, patch it to make splash screens, read dynamic disks, make a pot of coffee, etc. You only have to install it once.
There is also /usr/share/mkinitrd/mkinitrd_command_generator.sh that is able to generate a suitable initrd command or initrd.conf that you might find useful.
The best way I found was to run the 3 hdd raid-0 with windows and then install virtualbox and run slack from it. I dont like it but it gets the performance I want without all the driver install.
In my case I am running full slackware using (mainly) RAID 0. I only followed the instructions at README_RAID.txt that came with the Slackware ISO, and to make the initrd as per this thread... and that was all.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.