LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Kubuntu load dmraid on startup (https://www.linuxquestions.org/questions/linux-newbie-8/kubuntu-load-dmraid-on-startup-751148/)

Balana 08-29-2009 04:23 PM

Kubuntu load dmraid on startup
 
Hi all,

I recently installed a dual-boot of Kubuntu with Windows 7, which are both installed on partitions on a non-RAID disc. Separate from this drive and purely for data storage, I have an NTFS formatted RAID 5 array so I can access it in both Linux and Windows. The array is managed by Intel's controller on the motherboard. Yesterday I installed dmraid (RC14, as RC15 wasn't working for me, and after some research it seems I'm not the only one) and am able to manually mount/access the array with no problems. (I read through the FakeRaidHowto along with some various other sources, so I know about it.)

What I would like to do is set up my system so I don't have to 'dmraid -ay' and manually mount the array every time I boot up. I did step 10 of the fakeraidhowto under version 9.04 to add the dm-raid4-5 module into initramfs, and I've read up on adding an automatic mount entry to fstab (which I haven't done at this point). I'm still trying to figure out how to automatically substitute for the 'dmraid -ay' command.

What would be the best way to go about getting my array to mount automatically? Thanks in advance!

DragonSlayer48DX 08-29-2009 05:22 PM

Open System->Preferences->Sessions, and in the Startup Programs section, click Add. Choose a name and add a comment if you want, and type:

Code:

dmraid -ay
in the Command dialog box. Of course you'll need to edit fstab before you reboot so the drives will be mounted before the command is executed.

Cheers

Quakeboy02 08-29-2009 05:26 PM

It's doubtful that you actually have to put a specific command in there, since you've put dmraid in your initramfs. It's unlikely that the howto page would leave out something as critical as this. Have you actually tried looking in /dev/mapper to see if your devices exist? If they do, the just mount them.


All times are GMT -5. The time now is 11:04 AM.