CasaOS
CasaOS copied to clipboard
[Bug] Mount point change on reboot
Describe the bug
Whenever I reboot CasaOS, /sda1 mountpoint appends a -1 to original mountpoint. i.e. it changes to /mnt/Storage1-1. Every new reboot, I need to umount and mount again on correct mountpoint.
To Reproduce
Steps to reproduce the behavior:
- Reboot
Expected behavior
No changes on mountpoints after reboot.
Screenshots
Before reboot
After reboot
Additional context
I have a Zimaboard with CasaOS installed over Debian on a 1tb USB SSD (/sdb) and a 8tb SATA SSD (/sda) for data storage. /sda1 is mounted on /mnt/Storage1 and shared over the network. Internal eMMC is disabled. Zimaboard purchased in Nov/2023.
Ran into a similar issue. I had Storage2, and it renamed it to Storage21 after a reboot, causing all of the apps to fail because their root directory changed.
Same with me, my SSD (USB) was first called ‘Intenso’ then ‘Intenso2’ and now ‘sdb1-usb-Intenso_Portable’. Some people would be happy to find a solution.
Same with me, my SSD (USB) was first called ‘Intenso’ then ‘Intenso2’ and now ‘sdb1-usb-Intenso_Portable’. Some people would be happy to find a solution.
I've changed the volume paths in e.g. Plex's configuration in CasaOS, and now they seem static. Even on a reboot, they won't change any longer.
I think my issue was that my previous host path was mapped to some sort of directory that changes on every reboot.
Here's my config:
Host: /media/devmon/Storage2/data/media Container: /data/media
Using the path /media/devmon/<volumeName> was the fix for me.
Previously I think I used something like /mnt/<volumeName>, which may have caused the issue.
But then again I'm not a linux expert. I just fooled around until it worked lol.
Edit: I decided to dig a little deeper and I found more information about this issue:
https://www.reddit.com/r/linux4noobs/comments/15y8ytz/why_are_my_disk_mounts_changing_at_reboot/
it says:
/mnt is temporary /media is permanent
So my fix was the right approach. ;-)
Hope this helps!
This is what my media path currently looks like. I only have one USB SSD in use. CasaOS sometimes uses sdb1... or sda1.... . After every reboot I have to change the paths in the containers. Im using a Raspberry Pi 5 8GB.
Here are the paths from Jdownloader2:
Can someone explain to me exactly what I need to do to solve the problem? At the moment it switches between sda1, sdb1 and sdc1. I have to change the container path each time.