I have searched the forum for answers, and this isn’t something covered in the forum or debugging steps.
What I’m trying to do
I am trying to move my vault from one directory on my computer, to a different directory, as I am reorganising everything on here.
Things I have tried
Moving it manually, but this is breaking things in my vault for some reason (plugins, formatting, visual customisation like custom interface icons).
Moving it through the vault manager, and selecting ‘move vault’. This would be my preferred way of moving it, and also where the main problem occurs as I get the following error each time I try: “Failed to move vault. Error: EXDEV: cross-device link not permitted, rename (current directory file path) → (destination directory file path)”.
As I said, there is very little information out there on this problem. I’d like to know why ‘move vault’ isn’t working, and how to fix it/move my vault safely.
I believe this may be due to moving across partitions (which I could be completely wrong, doesn’t work via the vault manager.)
My suggestion would just be manually move the entire vault folder to your desired location, and then just open as a new vault, all of your settings will persist as long as your .obsidian/ folder comes with it.
Windows can’t perform a simple rename/move via system call because it’s on a different volume. Windows doesn’t support “rename” across drives - it has to copy then delete.
Use ctrl+c ctrl+v or
powershell
Copy-Item “C:\OldVaultPath” -Destination “D:\NewVaultPath” -Recurse
Similar is in Linux. “oldpath and newpath are not on the same mounted filesystem. (Linux permits a filesystem to be mounted at multiple points, but rename() does not work across different mount points, even if the same filesystem is mounted on both.)”
I.e. you can’t move between file-systems with a system call, so what mv does is a user-space copy and delete.
Use terminal:
cp -r /old/path/to/vault /new/path/to/vault
Just moved my vault to new drive wo any problems. all settings, plugins preserved. Copy the entire vault folder (including ‘.obsidian’ it is hidden if it is in eg windows explorer) e.g. use command line for that. verify that ‘.obsidian/snippets/’ and ‘.obsidian/plugins/’ were included.