Article 5SEHQ Mounting two HDD's as a RAID 1 in /etc/fstab

Mounting two HDD's as a RAID 1 in /etc/fstab

by
Chrislw324
from LinuxQuestions.org on (#5SEHQ)
I have a computer running ubuntu server with three drives.

sda is my boot drive. The two drives I made a RAID 1 are sdb and sdc.
I formatted the two drives with ext4 file system.
I then used mdadm to create a RAID 1 array with the name md1.

I now want to edit the /etc/fstab file to mount them, but what do I put in the device field?
Do I add one line and refer to the two drives by md1, or add two lines to /etc/fstab, one for sdb and one for sdc?

Is there anything wrong with creating a folder in / and mounting the drives there?latest?d=yIl2AUoC8zA latest?i=2gKjpKg3KYI:uc6Ls5d4N_o:F7zBnMy latest?i=2gKjpKg3KYI:uc6Ls5d4N_o:V_sGLiP latest?d=qj6IDK7rITs latest?i=2gKjpKg3KYI:uc6Ls5d4N_o:gIN9vFw
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments