LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-30-2009, 08:25 PM   #1
djspits
LQ Newbie
 
Registered: Oct 2009
Location: The Hague, The Netherlands
Distribution: Ubuntu 10.04 LTS
Posts: 15

Rep: Reputation: 0
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.
 
Old 10-30-2009, 08:45 PM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,991

Rep: Reputation: 76
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.
 
Old 10-31-2009, 05:33 AM   #3
djspits
LQ Newbie
 
Registered: Oct 2009
Location: The Hague, The Netherlands
Distribution: Ubuntu 10.04 LTS
Posts: 15

Original Poster
Rep: Reputation: 0
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?

Last edited by djspits; 10-31-2009 at 05:40 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
need help with mounting raid array zogthegreat Linux - Hardware 9 06-24-2009 08:13 PM
Adding an old software-RAID array to a software-RAID installation.. Boot problems GarethM Linux - Hardware 2 05-05-2008 04:16 PM
same raid array on 2 O.S. tataiermail Linux - Server 5 06-27-2007 10:22 AM
Help!! Mounting a raid array Cannedsoup Linux - Hardware 1 07-07-2003 07:26 PM
mkfs and mounting large (1.4TB) hardware raid array. Frustin Linux - General 1 05-20-2002 07:04 AM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration