Files
documentation/docs/user-guide/manual_smb_mount.md
2025-12-08 10:34:54 +01:00

50 lines
1.2 KiB
Markdown

# (Manual) SMB Mounts
Sometime you want to manually mount an SMB filesystem with an different user. This can be done via the Gnome File Browser.
Simply use `ctrl+l` to open/focus on the locate windown and add the address of the mount in the following format (replace __<username>__, __<server>__ and __<share>__):
```
smb://<username>@<server>/<share>
```
![1](manual_smb_mount/file_explorer_01.png)
Afterwards you need to add the users password to authenticate to the server.
![2](manual_smb_mount/file_explorer_02.png)
After successful mounting the share you will see it on the left hand side of the file browser:
![3](manual_smb_mount/file_explorer_03.png)
You can also mount shares from the Terminal. This can be done by the following command:
```bash
gio mount smb://<username>@<server>/<share>
```
![3](manual_smb_mount/terminal.png)
Afterward the share will also show up in the Gnome File Browser on the left hand side. However you can also locate the mount via:
```bash
ls -l /run/user/$(id -u)/gvfs/
```
or via the `gio` command:
```bash
gio mount --list
```
To umount from the commandline use:
```bash
gio mount --unmount <your mount id retrieved via --list command>
# Example
gio mount --unmount smb://scratch01/scratch/
```