-
Notifications
You must be signed in to change notification settings - Fork 19
Mount Raid Arrays After Ubuntu Server Install
If you created a RAID 5 array during the Ubuntu Server installation but it isn't showing up in your file system or CasaOS, this guide will help you "import" that storage, mount it safely, and make it permanent.
Even if the RAID was created during setup, the new OS needs to "discover" it. We use mdadm to scan the disks and assemble the virtual device.
# Scan all drives and reassemble any detected RAID arrays
sudo mdadm --assemble --scan
Note
This command tells the kernel to find the RAID metadata on your disks. It will usually create a device named /dev/md127 or /dev/md0.
Now, let's verify that the array is active and find its UUID. The UUID is a unique "fingerprint" that ensures we mount the correct disks every time.
# View your disk hierarchy
lsblk
# Get the UUID for your RAID device (replace md127 if yours is different)
sudo blkid /dev/md127
Expected Output: Look for TYPE="raid5" and copy the UUID="your-unique-id-here".
Linux needs a folder to "attach" the RAID to. We will create a professional path at /mnt/Main_Storage.
sudo mkdir -p /mnt/Main_Storage
To ensure your RAID mounts automatically when you reboot—and to prevent your server from crashing if a drive is missing—we must edit the File Systems Table (fstab).
- Open the config file:
sudo nano /etc/fstab
- Add this line to the bottom (using your UUID):
UUID=7b31a8a9-78c0-4660-a69a-f9334dcf45dd /mnt/Main_Storage ext4 defaults,nofail,x-systemd.device-timeout=10 0 2
-
nofail: If a drive dies or is unplugged, your ZimaBoard will still boot up so you can fix it. -
timeout=10: Tells the system not to wait more than 10 seconds for the RAID to appear during boot.
Never reboot without testing your fstab first! If there is a typo, this command will catch it.
# Attempt to mount everything in fstab
sudo mount -a
# Check if it worked
df -h | grep Main_Storage
Once the RAID is mounted at /mnt/Main_Storage, CasaOS will automatically see it.
- Open the CasaOS Dashboard.
- Go to the Files app.
- Main_Storage will now appear as a usable drive for your media and containers! 🎊
Want to see the health of your 18TB drives? Use these commands:
-
Check RAID Status:
cat /proc/mdstat -
Detailed Health Report:
sudo mdadm --detail /dev/md127