Error: EINVAL: invalid argument, mkdir 'G:'

I fixed the issue the following way:

  1. Navigate to C:\Users\your.user\AppData\Roaming\obsidian
  2. Open obsidian.json file and modify the vault info (remove the extra vault and add open parameter to old vault)

Before:

{"vaults":{"21c9c2bd63f174oe":{"path":"G:\\My Drive\\Obsidian","ts":1699007656614},"1197c5d4383b03ef":{"path":"G:\\","ts":1700574436525,"open":true}}}

After:

{"vaults":{"21c9c2bd63f174oe":{"path":"G:\\My Drive\\Obsidian","ts":1699007656614,"open":true}}}
3 Likes