I decided to ask before I do something stupid and wreck my files.
Here’s the deal.
I have 2 computers. Computer A has a single OS, Debian linux. It is sharing a couple of folders.
Computer B has had a single OS until now, Windows 11. And has been sharing the same folders with computer A.
But now I want to start dual-booting computer B, between W11 and Manjaro. This means that I want to share the same folders in both OSes of computer B.
Let’s remember that W11 has a single NTFS partition and that Manjaro will have two Ext4 partitions (/ and /home).
Let’s forget about computer A and focus on computer B. What do I need to do in order to make this work?
It’s true that Manjaro can mount NTFS, but W11…well, it could mount Ext4, but I don’t want to commit suicide trying to make that work.
So I thought about creating an extra FAT32 or exFAT partition and put those couple of shared folders on the extra partition. Both OSes would be able to access the same data.
But…would that be the supported way of doing it? Or should I have duplicate folders, one on the NTFS and one on the Ext4 for sharing data through syncthing?
Thanks in advance.
Cheers\
You can share the files from both OSes, but you also need to share the database and config (more or less; config could be different for the two as long as it’s equivalent for the folders). In practice it means something like a “portable” Syncthing setup living entirely on your shared FAT disk.
You got me a bit lost with the portable syncthing thing.
So, I’d have to OSes, with syncthing installed on both of them.
Now what exactly do I need to do? You said I should share the config, but in Windows I will have other shared folders that I won’t be sharing when I’m on Linux.
TIA
Cheers
However, in your case, it seems that you should just store those folders in a location that can be accessed from both OSs and then add them to Syncthing in each of them separately. When doing so, make sure to enable “Ignore Permissions” in the folder advanced settings as well.
In general, it’s recommended to enable “Ignore Permissions” when sharing files between different operating systems (which is Windows and Linux in your case).
Yes, my suggestion is a different approach, but you cannot share the config and database if you only want to re-use some of the folders (which is what the user here does).
In what kind of situation would it cause data loss?
I’ve tested the following scenario:
There are three devices - Synching 1, Syncthing 2, and Syncthing 3.
There is one storage device accessible from both Syncthing 1 and Syncthing 2.
I shared a folder located on the shared storage between Syncthing 1 and Syncthing 3.
I shared the same folder between Syncthing 2 and Syncthing 3.
At the same time, only Syncthing 1 or Syncthing 2 is running. Syncthing 3 is always running.
I made changes inside the folder when Syncthing 1 was running. It pushed those changes to Syncthing 3. Then, I shut Syncthing 1 down.
I turned Syncthing 2 on. It correctly detected that the folder state has changed on the disk and that it matched the state on Syncthing 3, so no further synchronisation was necessary.
In this scenario, the folder on the disk was re-used between Syncthing 1 and 2, but their configs and databases were all separate.
Yeah, so I’m not sure if I’m doing something different, but I’ve tried to force conflicts the way you described, however I’m not getting any. It just syncs with no issues here.