Old debian raid mount in ubuntu?
Howdy all,
Let me start of by saying I am new to linux and still learning so please bare with me. Now my problem. I used to have debain install on my home server and ive now moved to the xbmc build of ubuntu (xbmcbuntu) I had a 6TB raid mounted as /home/media on the old debian setup. (which is quite full and I don't want to loss this data (2tbx3 raid 0)) I am waiting on a few more drives to set up raid 5 to be safe but this is a tale for some other day. Here is my Code:
fdisk-l Code:
fdisk -l If so can someone help me out here please as am scared I will mess up and loss all the data on the drives Cheers |
As long as you have mdadm installed on Ubuntu (I've a feeling it doesn't come as default) you should be able to mount the RAID as you would a normal disk. With the three drives plugged in they should show up separately and as a volume, probably called md0, which is the one you would mount.
This is assuming this is a purely software RAID. |
Quote:
|
Check that you have mdadm installed -- I think for some reason Ubuntu doesn't have it installed by default.
If you do have it installed then you may have to run "mdadm --assemble" to reassemble it (See point 7 in the page linked). http://ubuntuforums.org/showthread.php?t=408461 Usually when I've attached a RAID to a system with mdadm installed I've not had to assemble. |
Quote:
I got this Code:
mdadm --assemble Cheers |
Hey edit that I did it! WOW lol
I ran Code:
mdadm --assemble --scan Code:
mount -t auto /dev/md0 /home/media last question is there a way to make the mount code, auto mount on boot? with ubuntu? Cheers |
Two things:
1) If you don't want to lose the data, you should never have set up raid 0 in the first place. Despite its name, it is not "raid", meaning it is not redundant. In fact with a 3-drive raid 0, you're 3 times more likely to lose your data than with a single drive. RAID 0 has ONE use, to make disk I/O faster in applications where speed is critical and the data itself is of little importance. 2) If you don't want to lose the data, you should have been making regular backups since day 1. You can add the drive to /etc/fstab to get it to mount on boot. |
Quote:
Thanks for the fstab info do I just add this Code:
mount -t auto /dev/md0 /home/media |
Quote:
http://www.yolinux.com/TUTORIALS/Lin...HardDrive.html |
Quote:
Quote:
Code:
$ ls -l /dev/disk/by-uuid/ Code:
# RAID5, automount |
Quote:
Code:
/dev/md0 /home/media auto defaults 0 0 |
Quote:
A lot of sites recommend using UUID to reference the drive since the names can re-order as you add/remove drives, but you don't need to worry about this with the raid, so you're fine calling it /dev/md0 like you have. |
Quote:
so Code:
/dev/md0 /home/media ext4 defaults 0 0 |
Quote:
|
Quote:
|
All times are GMT -5. The time now is 10:40 AM. |