LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mounting a raid array at startup (https://www.linuxquestions.org/questions/linux-newbie-8/mounting-a-raid-array-at-startup-765680/)

djspits 10-30-2009 07:25 PM

mounting a raid array at startup
 
I'm using Ubuntu 9.3 on an AMD64.
I have created a software RAID-1 array from two external usb harddisks.
Now, I want to mount the md device automatically when the machine is turned on.

It's amazingly difficult. I have found three options:

1) /etc/fstab (just doesn't work, don't know why)
2) automount, autofs (not realy meant for this purpose)
3) some script that's run at startup

The last option is what I'm currently working on. The problem is, of course, that only root can mount anything which renders a lot of natural places to do this useless. Like /etc/profile, /etc/bash-login and brethren.

I'm stuck.

Any suggestions, anyone?

Greetings, DJ.

rjlee 10-30-2009 07:45 PM

If you're going with option 3, I'd add the mountpoints to the end of the /etc/rc.local script, so it gets mounted right at the end of the boot process.

djspits 10-31-2009 04:33 AM

Is it that easy? Yes, it is.

Thank you very much!

----

At least something is running now. Is my option 3 the option you would choose?
Which method would be the preferred way?


All times are GMT -5. The time now is 07:33 PM.