Mounting NAS to my laptop

I am in bit of a pickle. The power supply for my PC died about a hour ago and I need to connect my NAS to my laptop.
What command I should use and what is the best mounting?

Edit: I forgot to mention, it is a NAS Ubuntu based server.

Does it connect via USB?
Most do.
Plug it in and watch it appear in your file manager - click to mount it if that doesn’t happen automatically.

Forgat to mention it is a NAS server

… it’s got an address in some network - you can’t connect to that?

Yeah,the SSH works just fine

NFS shares?
Or SMB/Samba?
You know - we don’t.
You could just use ssh or scp or sftp to get to your files …
Someone else may want to ask for information in order to help - I’ll retire for today, it’s late.

1 Like

Not sure (I did not install Samba on the server, so NFS shares) but I was able directly access the directories trough the Dolphin.

Accessing NFS exports via the local file manager requires that you have NFS mounts already configured on your client system. If you haven’t done this, then perhaps you were accessing the remote shared filesystem via some other protocol. Dolphin is capable of discovering and accessing samba shares (smb://), as well as supporting fish:// or sftp:// protocols if the Linux server provides such access.

You could also use nmap to see which common file sharing services are available perhaps…

sudo nmap <NAS_IP>

Command not found, doing it on my laptop…

If it is NFS, you can glean some details by looking at /etc/exports on your NAS server - you have ssh access and can look.

There is the program “putty” to allow you to access your server via sshfs and explore the file system on it like in your normal file manager.

Install it - as well as you can simply install nmap, so that the command will be found …

This came out:

# /etc/exports: the access control list for filesystems which may be exported
#               to NFS clients.  See exports(5).
# Example for NFSv2 and NFSv3:
# /srv/homes       hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
# Example for NFSv4:
# /srv/nfs4        gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes  gss/krb5i(rw,sync,no_subtree_check)

please edit your post and reformat it - it’s ugly in this huge font

I’ll be now leaving this thread.

OK, done.Thx for the help

:bangbang: Tip: :bangbang:

When posting terminal output, copy the output and paste it here, wrapped in three (3) backticks, before AND after the pasted text. Like this:

pasted text

Or three (3) tilde signs, like this:

pasted text

This will just cause it to be rendered like this:

sollicitudin dolor
eget nisl elit id
arcu erat varius
cursus sem quis eros.

Instead of like this:

Sed sollicitudin dolor eget nisl elit id condimentum arcu erat varius cursus sem quis eros.

Alternatively, paste the text you wish to format as terminal output, select all pasted text, and click the </> button on the taskbar. This will indent the whole pasted section with one TAB, causing it to render the same way as described above.

Thereby increasing legibility thus making it easier for those trying to provide assistance.

For more information, please see:

:bangbang::bangbang: Additionally

If your language isn’t English, please prepend any and all terminal commands with LC_ALL=C. For example:

LC_ALL=C bluetoothctl

This will just cause the terminal output to be in English, making it easier to understand and debug.

Thanx fo the tips

1 Like

Then you need to install the package first.

Starting Nmap 7.93 ( ) at 2023-06-11 11:24 CEST
Nmap scan report for (
Host is up (0.013s latency).
Not shown: 994 closed tcp ports (reset)
22/tcp    open  ssh
111/tcp   open  rpcbind
2049/tcp  open  nfs
5001/tcp  open  commplex-link
9001/tcp  open  tor-orport
10000/tcp open  snet-sensor-mgmt
MAC Address: 40:B0:76:A2:F1:93 (Asustek Computer)

Nmap done: 1 IP address (1 host up) scanned in 0.43 seconds

Common FileManagers can also mount SSH (secure ftp) and nfs on demand just by typing in the URL. Pretty easy, you can also make it global:

You can use ssh for mounting in fstab like that (it is an example, and you have to adjust it):

ssh_user@ip_or_domain:/remote/path /media/sshfs-nas fuse.sshfs noauto,x-systemd.automount,_netdev,user,idmap=user,follow_symlinks,identityfile=/home/user/.ssh/ssh_key,allow_other,default_permissions,uid=1000,gid=1000,X-mount.mkdir=0755,x-gvfs-hide 0 0

or NFS have look here: [root tip] [How To] Share data using NFS it explains the server and client side configuration.

ssh_oracle911@  /media/nas fuse.sshfs noauto,x-systemd.automount,_netdev,user,idmap=user,follow_symlinks,identityfile=/home/user/.ssh/ssh_key,allow_other,default_permissions,uid=1000,gid=1000,X-mount.mkdir=0755,x-gvfs-hide 0 0
bash: ssh_oracle911@ No such file or directory

Almost there

Nope… :face_with_peeking_eye: as said, it is a fstab entry if you want to use in the terminal, then like that:

mkdir -pv /tmp/sshfs-nas
sshfs ssh_oracle911@ /tmp/sshfs-nas -o idmap=user,follow_symlinks,identityfile=/home/user/.ssh/ssh_key,default_permissions,uid=1000,gid=1000

If you don’t have a public key authentication, then remove identityfile=/home/user/.ssh/ssh_key from the options or adjust it. However public key authentication is always recommended instead of password authentication.

ls -la /tmp/sshfs-nas

Note that this is only temporary and will not survive a reboot.