CasaOS icon indicating copy to clipboard operation
CasaOS copied to clipboard

[Bug] Mount point change on reboot

Open rafamdf opened this issue 1 year ago • 4 comments

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:

  1. Reboot

Expected behavior

No changes on mountpoints after reboot.

Screenshots

Before reboot image

After reboot image

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.

rafamdf avatar Jul 25 '24 14:07 rafamdf

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.

FalkoJoseph avatar Aug 22 '24 20:08 FalkoJoseph

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.

stevedee78 avatar Dec 13 '24 10:12 stevedee78

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!

FalkoJoseph avatar Dec 23 '24 14:12 FalkoJoseph

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.

image image

Here are the paths from Jdownloader2:

image

stevedee78 avatar Dec 26 '24 11:12 stevedee78

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.

Image

stevedee78 avatar Feb 09 '25 11:02 stevedee78