Flofian 3 Posted February 11, 2025 Posted February 11, 2025 Hi, I am currently running emby on windows on my home computer, since i cant really afford to have a separate server/nas especially since i really like the hardware encoding. But now i wanted to install Ubuntu in addition to windows, and i want to be able to switch between them and have my server running on both with all the data matching (e.g. what i already watched). i figured out how to set the programdata folder to somewhere else using a symlink, and the users at login all show up, but my library doesnt work since all the paths are windows specific. is there any reasonable way to achieve this? From my very rudementary testing it seems like the main problem is library.db, which contains the paths as string, from manually changing one of them, i can get it to actually work (i havent tested images yet, i didnt turn on the option to save them next to the files or whatever that was). Is anyone else in this situation? Because maybe i will try to make a python script to convert those databases
Luke 42077 Posted February 12, 2025 Posted February 12, 2025 Hi, officially there is no way to do this. I think you will need two separate server installations, but please let us know if you figure something out !
Solution darkassassin07 652 Posted February 12, 2025 Solution Posted February 12, 2025 I think you could potentially pull this off using docker on both windows and linux. I'm not sure how well that would work in practice; but containerizing the emby server would let you mount the files identically on both OSs using bind mounts. Something you could experiment with. 1
Flofian 3 Posted February 14, 2025 Author Posted February 14, 2025 Docker seems to work perfectly, i now have my windows installation migrated to docker, and mounted my drives the same way as i have them on my Linux. I still had to change the paths in my library.db to the right unix paths, but at least i only had to do it once with some sql and a bit of manual editing for the few paths that are stored in a json i the db. I now have my Files under D:\Videos under windows, but emby in docker thinks they are at /home/{username}/Public/mount/d/Videos, and my Linux just has my drives there anyways. I also had to set the programdata directory in docker to a certain path that worksboth on docker and on my real installation because i saw something that uses the full path to that directory instead of some %programdata% thing, and under linux i did that with a symlink. Now I can dualboot without any problems, thank you! 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now