How To Mount a Raid Drive In Ubuntu?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1. First, install mdadm on your Ubuntu system by typing:
sudo apt-get install mdadm
2. Connect the RAID drive to your system.
3. Check the RAID drive for any existing RAID configurations by typing:
sudo mdadm –examine /dev/sdX
4. Create the RAID array on your system by typing:
sudo mdadm –create /dev/md0 –level=raid1 –raid-devices=2 /dev/sdX /dev/sdY
5. Format the RAID array with a file system of your choice by typing:
sudo mkfs.ext4 /dev/md0
6. Create a mount point for the RAID drive by typing:
sudo mkdir /mnt/raid
7. Mount the RAID array to the mount point by typing:
sudo mount /dev/md0 /mnt/raid
8. Update the /etc/fstab file to mount the RAID array on boot by typing:
sudo vi /etc/fstab
9. Add the following line to the /etc/fstab file:
/dev/md0 /mnt/raid ext4 defaults 0 0
10. Reboot your system to ensure the RAID array is mounted correctly.