Guides › Drivers and hardware
Network drives
Connect a shared folder from another computer, a NAS, WebDAV, Nextcloud, Google Drive or OneDrive to a drive letter in Files, and reconnect it each time you sign in.
A network drive is a folder on another computer or on a NAS that you use as if it were a drive on your own PC. A NAS (network attached storage) is a box on your home or office network that holds files for everyone, such as a Synology, QNAP, TrueNAS or Unraid box.
In Sovereign OS you map the shared folder to a drive letter in the Files app. After that it works like any other drive in Files, in the Terminal and in Windows programs.
What it works with
- SMB shares: folders shared by Windows, Samba and the NAS systems built on Samba. Sovereign OS speaks SMB versions 2 and 3, and uses the highest version the server has. The older SMB 1 is not used.
- NFS shares: NFS version 3, which Linux servers and many NAS boxes offer. NFS version 4 is not supported yet.
Every SMB message is signed, and the connection is encrypted when the server asks for it. You can also make a drive always encrypted: see Require encryption.
You can name the server by its network name, its IP address, or a name like NAME.local.
Before you start
You need:
- the address of the shared folder;
- for SMB, the user name and password for the share, unless it allows guests;
- for NFS, your user number on the server, if it is not the same as on this PC.
Shared folder addresses look like this:
| Kind | How to type it | Example |
|---|---|---|
| SMB (Windows, Samba, most NAS) | \\server\share, or a folder inside it | \\nas\photos |
| NFS | nfs://server/export or server:/export | nfs://nas/volume1/media |
Map a network drive
- Open Files.
- Choose Computer in the list on the left.
- Next to Devices and drives, choose Map network drive.
- In Folder, type the address of the shared folder.
- For SMB, type the User name on the server. Leave it empty to connect as a guest. On a company domain, type it as
DOMAIN\name. - For SMB, type the Password. For NFS there is no password; instead, type your user number on the server, such as
1000or1000:100, or leave it empty to use your own. - Under Drive letter, keep Highest free letter or pick a letter.
- Tick Reconnect at sign-in if you want the drive back every time you sign in.
- Tick Require encryption if the drive must always be encrypted (see below).
- Choose Connect. You see "Connecting...".
- When it connects, Files opens the new drive and says "Connected to" the folder.
The drive now shows under Devices and drives with the folder's address and how much space is free.
Add a network folder (WebDAV, Nextcloud, Google Drive, OneDrive)
You can also add a folder that lives on the web. It gets a drive letter like any network drive.
- Open Files and choose Computer.
- Choose Add network folder.
- Pick the Kind, and fill in what it asks for (see the list below).
- Pick a Drive letter, and tick Reconnect at sign-in if you want it back each time.
- Choose Connect.
What each kind asks for:
- WebDAV: the folder's address, which starts with
https://, and your user name and password. - Nextcloud: the server, such as
cloud.example.com, your user name and an app password. Make the app password in Nextcloud under Settings > Security. - Google Drive: choose Sign in with Google, then sign in in the Browser window that opens.
- OneDrive: choose Sign in with Microsoft, then go to the address shown, on any device, and type the code shown.
Good to know:
- Only
https://addresses work, so your password is always sent encrypted. - If Google Drive or OneDrive says "Not set up yet on this build.", this version of Sovereign OS can't sign in to that service yet. Use WebDAV or Nextcloud for now.
- A file you save is sent to the server when you close it. One file can be up to 256 MB, and all the files being saved at once up to 512 MB (less on a PC with less than 2 GB of memory).
- A folder with more than 50,000 things in it can't be opened here.
- Google Docs, Sheets and Slides files are not shown. If two files in a Google Drive folder have the same name, only one is shown.
Require encryption
Encryption keeps people on the network from reading your files as they go to and from the server. Sovereign OS encrypts a network drive by itself when the server or the share asks for it. To be sure a drive is never used without encryption, tick Require encryption when you map it.
- The server must use SMB 3. Windows 8 and later, Samba 4 and today's NAS boxes do.
- If the server can't encrypt (an old server with SMB 2 only, or a guest sign-in), the drive is not connected, and Files tells you why. Nothing is sent to the server without encryption.
- The choice is kept with the drive, so it applies every time it reconnects.
- NFS drives can't be encrypted, so the box is not shown for them.
Sovereign OS uses AES with 128 or 256-bit keys (GCM or CCM), whichever the server picks. After you connect, Files shows which one, for example "Connected to \\nas\photos, encrypted with AES-128-GCM."
How drive letters work
- A network drive takes the letter you chose, or the highest free one, starting at Y: and going down.
- Z: is always the whole file system, so it is never used for a network drive.
Who can see the drive
A network drive belongs to the account that mapped it. Other accounts on the PC don't see it. When you sign out, it is disconnected.
If you ticked Reconnect at sign-in, the folder, user name and password are kept with your account, encrypted so only your account can open them. Each time you sign in, the drive is connected again in the background. It keeps trying for two minutes while the network starts.
Disconnect a network drive
- Open Files and choose Computer.
- Find the network drive under Devices and drives.
- Choose Disconnect.
Files says "Disconnected" and the folder's address. The drive is also forgotten, so it won't reconnect at the next sign-in. If Files says "Close the files open from" the drive, close those files first and try again.
What happens when the connection breaks
- If the server restarts or the network goes away, the drive shows "Disconnected. Trying again..." in red.
- Sovereign OS reconnects by itself the next time you use the drive, or on its own a little later. While the server can't be reached, it tries at most every 5 seconds, so Files doesn't hang each time you look.
- Files others add, change or delete on the server show up when you look at the folder again.
If something goes wrong
- "Only https:// addresses can be added." A WebDAV folder must start with
https://. - "Type the folder as \\server\share, or nfs://server/export for NFS." The address is not in a form Sovereign OS understands. Check the backslashes for SMB.
- The server's name is not found. Try its IP address instead, or its name followed by
.local. - The sign-in is refused. Check the user name and password. On a domain, use
DOMAIN\name. Domain sign-in with Kerberos is not supported yet, so the server must accept NTLMv2 sign-in, which most do unless the domain turned it off. - The server only offers SMB 1. Turn on SMB 2 or 3 on the server or NAS; SMB 1 is not used.
- "Another network drive is being connected." Wait a moment and choose Connect again.
- An NFS share refuses access. NFS 3 checks your PC's address and the user number you gave. Ask the server's administrator to allow your PC and number.
For general network help, see Network settings. For how drives and letters work in Files, see Files and drives.
Still stuck? Search the help center or contact support.