this content is migrated in the user doc here: hpc:storage_on_hpc [eResearch Doc]
If you need to mount an external share (NAS) on Baobab from command line, you can proceed as follow.
Launch dbus
:
dbus-launch bash
mount the share, smb in this example:
gio mount smb://server_name/share_name
This will prompt for the user/password/domain. If you are connecting an UNIGE network share such as the NASAC, it’s your ISIS credentials and the domain is ISIS.
The share will be mounted on
/run/user/your_uid/gvfs/
You can access the files using standard POSIX tools such as cp
ls
etc. If you face an error when accessing a specific file, you can use gio copy
as cp
replacement which seems to work better. The same for ls etc.
When you don’t need to access the data anymore, you may unmount the share:
gio mount -u smb://server_name/share_name
The data are only available on the login2 node. If you need to access the data on the nodes, you need to mount them there as well in your sbatch script.
If you need to script this, you can put your credentials in a file in your home directory.
Content example: .credentials
.
username
domain
password
Mount using credentials in a script:
gio mount smb://server_name/share_name < .credentials
update: do not use .netrc
as filename as this name may conflict with other software like wget
and the format is not correct for it.
update: correct example with credentials.
update: add domain name for NASAC
update: use gio copy