Windows file shares (gvfs)
The gio command (which comes with GVfs) can be used to access a.o. Windows file shares.
Connecting
-
Connect to any of the cluster's login nodes.
-
Connect to the Windows file share using the following command:
Then, enter your username, domain, and password when prompted. The default username is likely OK. The domain should begio mount smb://<server>/<share>TUE.Password required for share software on campusmp.campus.tue.nl User [20232655]: Domain [SAMBA]: TUE Password: -
GVfs mounts all shares in
$XDG_RUNTIME_DIR/gvfs. To see what dir this is, run:echo $XDG_RUNTIME_DIR/gvfs -
List mounted share names using the following command:
ls $XDG_RUNTIME_DIR/gvfs -
To get the local path to your share, simply concatenate the dir name and the share name obtained the last two steps, e.g.
echo $XDG_RUNTIME_DIR/gvfs/'smb-share:server=campusmp.campus.tue.nl,share=software'
Note
The mounted Windows file share is only available on the login node that you ran these commands on. It is not automatically available on other login nodes, nor on the compute nodes.
Using
To browse the Windows file share, you can simply cd to the local path that you obtained in the last step above. Moving, copying, and removing files on the Windows file share can be done using standard Linux tools such as mv, cp, and rm.
Disconnecting
- Run the following command:
gio mount -u smb://<server>/<share>
(To get a list of mounted shares, run gio mount -l.)