-
Notifications
You must be signed in to change notification settings - Fork 19
Uninstall CASA OS Raid Help
If you found this guide helpful and are feeling extra appreciative, consider supporting the channel:
- Donate me a KO-FI: https://www.ko-fi.com/kltechvideos
- Follow on X (Twitter): https://x.com/kltechvideos (Help me beat the algorithm! π)
- Subscribe on YT (YouTube): https://www.youtube.com/@kltechvideos
- Checkout the Blog for more cool projects!: https://blog.kltechvideos.co.uk
- Don't forget to let me know what content you are watching or reading on my socials!
So, you uninstalled CasaOS? Don't panic! π
Your data is safe. CasaOS was just a "dashboard" or remote control for your drives. The actual storage engine (Linux software RAID) is still running under the hood. You just need to tell your operating system where to find it.
Follow these steps to get your files back.
You can also watch my video on uninstalling CasaOS safely here... https://youtu.be/1UQO0fDhegY?si=lIPSysuPhUzooINN
You need to open your Terminal (command line).
- If you are on the computer directly, open the Terminal app.
- If you are on another computer, SSH into your server.
We need to know what the system calls your RAID array. It is usually something like md0 or md127.
-
Run this command to list your storage devices:
lsblk -o NAME,SIZE,TYPE,FSTYPE
-
Look at the output. Find the row where the
TYPEsays raid or theFSTYPEsayslinux_raid_member. The parent name is what you want.Example Output:
NAME SIZE TYPE FSTYPE sda 4T disk linux_raid_member ββmd0 4T raid1 ext4 <-- THIS is what you are looking for (md0)
In Linux, drives don't just appear as "D:". You have to create a folder to act as a "door" to view the files.
- Create a new folder (we will call it
my_raid):(Type your password if asked. It won't show on screen while typing, that is normal! Just hit Enter.)sudo mkdir -p /mnt/my_raid
Now, let's connect your RAID device (md0) to that new folder.
-
Mount the drive (Replace
md0with the name you found in Step 1):sudo mount /dev/md0 /mnt/my_raid
-
Verify your files are there:
ls /mnt/my_raid
π If you see your files, you are back in business!
If you restart your computer now, you will lose the connection. Let's make it connect automatically on boot.
β οΈ Warning: Be careful typing here. We will use a "safety flag" so your computer doesn't get stuck if the drive is missing.
-
Get the UUID (Unique ID): Names like
md0can change. UUIDs never change.sudo blkid /dev/md0
Copy the text inside the quotes after
UUID=. (Example:a1b2c3d4-e5f6-4g7h...) -
Edit the system file:
sudo nano /etc/fstab
-
Add the configuration: Use your arrow keys to go to the very bottom of the file. Paste this line (replace the UUID with yours):
UUID=paste-your-uuid-here /mnt/my_raid ext4 defaults,nofail 0 0Note: The
nofailpart is crucial. It ensures your computer still boots up even if the hard drives have an error. -
Save and Exit:
- Press
Ctrl + OthenEnter(Save). - Press
Ctrl + X(Exit).
- Press
Your RAID is now a permanent part of your system, independent of CasaOS.