December 20, 20241 yr I have been having issues with my docker image filling up. I deleted orphaned images and volumes etc. which seemed to help, but the docker settings page was still saying there was no available space and my server kept freezing. So I started trying to check for issues in the docker image. I ran the scrub on the docker settings page, then I ran btrfs check --readonly /mnt/user/system/docker/docker.img and then attempted to balance the docker image. This is where it gets bad. I tried to mount the docker image to run the balance and used the command mount -o loop /mnt/user/system/docker/docker.img /mnt This replaced everything in my /mnt directory, so it looks like all my data is gone. I know what I did was incredibly stupid and careless. I was rushing and overtired and not thinking. But I don't even know where to start with trying to recover from this. Is there anything I can do to try and get the data back? Thankfully I do have cloud backups of the most important stuff, but I would still hate to lose the rest of the data (mostly media), and starting again from the backup would not be fun. Thanks in advance. tower-diagnostics-20241221-0038.zip
December 20, 20241 yr Community Expert Solution You could either umount the image you have just mounted or perhaps even simpler to just reboot your server.
December 20, 20241 yr Author Oh, that sounds hopeful! I was scared to reboot in case it made things worse. And yes I think I'll take the simple option of rebooting if it will work just as well. Here goes...
December 20, 20241 yr Author Oh my goodness. It's all there. Such a relief! Thank you so much! I guess the mount configs must be saved on the flash drive or something and restarting just resets them to that config? Now I think I will just recreate the docker image and stop trying to balance it to solve that problem.
December 20, 20241 yr Community Expert 47 minutes ago, Janddy said: Oh my goodness. It's all there. Such a relief! Thank you so much! I guess the mount configs must be saved on the flash drive or something and restarting just resets them to that config? Now I think I will just recreate the docker image and stop trying to balance it to solve that problem. Actually the ‘mount’ you did just hid the existing contents of the /mnt location. The reboot undid your manual mount and so the standard locations reappeared.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.