Mounting Raid on Bootq

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post please read this

Mounting Raid on Bootq

Postby nkk on Mon Jan 30, 2012 5:43 pm

Hi,

I have a computer (as if that was not obvious.. :roll: ) that has one 32GB SSD to boot from and two 1TB hard drives in a simple raid 1.

How do I get the array to mount to, say, ~/Data on startup? I tried adding:

Code: Select all
UUID=860e0b12-965e-33c1-863f-599b2ff6603a /home/myName/Data ext4


to /etc/fstab, but that just stopped my booting entirely (left hanging for hours at the black screen right before login prompt).

Thanks,
Nkk
nkk
Level 1
Level 1
 
Posts: 12
Joined: Tue May 31, 2011 5:03 am

Linux Mint is funded by ads and donations.
 

Re: Mounting Raid on Bootq

Postby xenopeek on Mon Jan 30, 2012 6:27 pm

Well, you were in the right file :wink: Try this instead:
Code: Select all
UUID=860e0b12-965e-33c1-863f-599b2ff6603a /home/myName/Data ext4 defaults 0 2

You were missing the mandatory options, dump and pass parameters.
Forum Rules | IRC Rules
Image
Linux Mint 14 Nadia / 64-bit / Cinnamon
User avatar
xenopeek
Level 20
Level 20
 
Posts: 10883
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Mounting Raid on Bootq

Postby nkk on Sat Feb 04, 2012 2:33 pm

Ok...that almost worked. When I reboot it says :

There were errors checking ...with fsck.
I to ignore, s to skip etc

then

An error occured when trying to mount /home/myName/Data.
Press I to ignore, S to skip mounting, or M for manual recovery.

So....I am officially lost :(

For reference, here is my complete fstab:
Code: Select all
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
#
# / was on /dev/sda1 during installation
UUID=636de276-b929-4685-b250-ee309091a944 /               ext4    errors=remount-ro 0       1
#
# swap was on /dev/sda5 during installation
UUID=c01066f9-c225-459e-82fd-accb7f1503a6 none            swap    sw              0       0
#
#RAID 1 array mount to ~/Data
UUID=860e0b12-965e-33c1-863f-599b2ff6603a /home/myName/Data ext4 defaults 0 2



Also, I had two more general newbie-ish questions:

If I put a file called test in ~/Data (before I mount the array) and then the array is mounted, will I still see test? Does mounting to a mount point show only what was mounted? I imagine it does, but with my array not working I cannot test.

Also, if I were to mount the array as ~, would any of the defaults or dump or pass change?

Thanks again. I really appreciate this help,
Nkk

EDIT:

If I change the end to "defaults 0 0" then I do not get the fsck problem, but the errors mounting thing still happens.
nkk
Level 1
Level 1
 
Posts: 12
Joined: Tue May 31, 2011 5:03 am

Re: Mounting Raid on Bootq

Postby xenopeek on Sat Feb 04, 2012 3:28 pm

Whoops. Of course my suggestion doesn't work... I just fixed the fstab line you shared, but I somehow missed you wanted it in RAID. That is a whole different ballpark.

You should read the following two Wiki articles. I'm assuming you have no specialised RAID hardware, just a feature in your motherboard's BIOS. Using that is called fakeRAID (as the motherboard isn't a full hardware RAID implementation, hence fake RAID). The better solution is to go with Linux software RAID, as this is generally more stable and trustworthy. If you want RAID to work with Windows (or if you created it on Windows), you're stuck with fakeRAID...

https://help.ubuntu.com/community/FakeRaidHowto
https://help.ubuntu.com/community/Insta ... ftwareRAID
Forum Rules | IRC Rules
Image
Linux Mint 14 Nadia / 64-bit / Cinnamon
User avatar
xenopeek
Level 20
Level 20
 
Posts: 10883
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Mounting Raid on Bootq

Postby nkk on Sat Feb 04, 2012 5:10 pm

I am using Linux software raid via mdadm. Sorry for not stating that.

Under Ubuntu 10.04 I had this working (god knows that I am killing myself for not backing up that stupid fstab from there. I have a disk image but am sort of trying to avoid backing up my LM12 image and reflashing 10.04 just to get a file).

So...I installed LM12 and installed mdadm. Then I did
Code: Select all
mdadm --assembe --scan


And it assembled the array. Now, when I am logged in I can mount my array as 'New Volume' under '/media/New Volume'. However, I would like this array automatically mounted under ~/Data of even as ~ (if possible).

My setup is a 32GB SSD for booting and this Raid 1 (2x 1TB) array for all data/media.

Thanks,
Nkk
nkk
Level 1
Level 1
 
Posts: 12
Joined: Tue May 31, 2011 5:03 am

Re: Mounting Raid on Bootq

Postby nkk on Sat Feb 04, 2012 5:25 pm

Ok...I got it working. For those who may find this via Google or whatever, go http://www.linuceum.com/Server/srvRAIDAuto.php . That is what I did and it worked nicely.

Thanks to all who helped,
Nkk
nkk
Level 1
Level 1
 
Posts: 12
Joined: Tue May 31, 2011 5:03 am

Re: Mounting Raid on Bootq

Postby xenopeek on Sat Feb 04, 2012 5:28 pm

This seems to cover that. http://www.linuxhomenetworking.com/wiki ... ation_File

First the mdadm.conf file needs to be updated from the command you ran. Then create a fixed mount point. Then edit fstab. Examples are there, but I'm no RAID guru so check it please.
Forum Rules | IRC Rules
Image
Linux Mint 14 Nadia / 64-bit / Cinnamon
User avatar
xenopeek
Level 20
Level 20
 
Posts: 10883
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Linux Mint is funded by ads and donations.
 

Return to Other topics

Who is online

Users browsing this forum: Bing [Bot] and 3 guests