How can I mount/access external drives connected to my Wifi router?

Hi all.
I have a laptop running W11 on 1 SSD and Z17 on a 2nd SSD.
I have 2 wifi routers running as mesh with 3 SSDs connected to them for back up.
In the wifi console I made them as "media server" and when running W11 I can map them.
Now...my question...how can I map them in Z17?
Thank you

Does this help?

1 Like

Thank you...but seems I am doing something wrong so far...

What this could be?

I ran

user@nameofPC:~$ sudo mkdir /mnt

[sudo] password for user:

user@nameofpc:~$ sudo mkdir /mnt/backup

user@nameofpc:~$ sudo apt install cifs-utils

Reading package lists... Done

Building dependency tree... Done

Reading state information... Done

The following additional packages will be installed:

keyutils

Suggested packages:

smbclient winbind

The following NEW packages will be installed:

cifs-utils keyutils

0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.

Need to get 146 kB of archives.

After this operation, 498 kB of additional disk space will be used.

Do you want to continue? [Y/n] y

Get:1 Index of /ubuntu jammy-updates/main amd64 cifs-utils amd64 2:6.14-1ubuntu0.1 [95,7 kB]

Get:2 Index of /ubuntu jammy/main amd64 keyutils amd64 1.6.1-2ubuntu3 [50,4 kB]

Fetched 146 kB in 2s (59,1 kB/s)

Selecting previously unselected package cifs-utils.

(Reading database ... 488868 files and directories currently installed.)

Preparing to unpack .../cifs-utils_2%3a6.14-1ubuntu0.1_amd64.deb ...

Unpacking cifs-utils (2:6.14-1ubuntu0.1) ...

Selecting previously unselected package keyutils.

Preparing to unpack .../keyutils_1.6.1-2ubuntu3_amd64.deb ...

Unpacking keyutils (1.6.1-2ubuntu3) ...

Setting up cifs-utils (2:6.14-1ubuntu0.1) ...

update-alternatives: using /usr/lib/x86_64-linux-gnu/cifs-utils/idmapwb.so to pr

ovide /etc/cifs-utils/idmap-plugin (idmap-plugin) in auto mode

Setting up keyutils (1.6.1-2ubuntu3) ...

user@nameofpc:~$ sudo mount.cifs //192.168.50.1/backup4TB /mnt/backup/ -o user=XXXXX,pass=PPPPPPPPP

mount error(22): Invalid argument

Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)

user@nameofpc:~$ sudo mount.cifs //192.168.50.1/backup4TB /mnt/backup/

Password for root@//192.168.50.1/backup4TB:

mount error(22): Invalid argument

Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)

Yes the password I entered is correct...
What am I doing wrong?


thank you

I would refer to the manual and dmesg logs as stated.

No other troubleshooting from what I posted...? Nothing evident in what I wrote that could explain this?

and how do I 'refer to the manual and dmesg log"....? I am absolutely not Linux expert

Done some delving. See if any of the later solutions on this thread (towards the bottom) resolve the issue:

Reading the manpage, I see nothing about a username or password. You can specify the owner by UID and GID... but if you are connecting a NAS server or something else that requires a login, why don't you add the device to the NAS (if possible) and use keys, or create a SMB connection, then mount the drive.

You will want to drop the / after backup. Why did you create the mount point at root, when it will require root permission to access it (write/modify). You are better off making a mount point in home (i.e.: ~/backup). This will give your user full access, and make it simpler.

If it's encrypted, isn't it possible to mount it then decrypt it... removing the need to do so upon mount... simplifying the mount (no need to add user info). Though, I am not that familiar with mounting encrypted volumes.

basically the 3 SSDs I mentioned are physically connected to the Wifi routers.
I use Asus routers and the settings so far are "do not allow guest login" for the USB application in the Wifi admin console.

When connecting them on W11 I can map them by entering the same user/pwd used for the Wifi admin console.

image

does this help in troubleshooting this?

actually I have no idea I did this in root...as I wrote I am in no way linux specialist...I just followed instructions previously provided...

How can remove the mount point in root and create in home?

Change the mount point in fstab, or your mount command, to a home directory entry, as I showed an example above. ~/[drive mount name] would be the format. Including the square brackets, change it to an existing empty directory name in home directory (~).

Does the router have a way to access the drives from the local subnet? You should be able to disable the remote access setting as long as you have incoming connections from the internet blocked in the router firewall.

Having the router admin password hard coded in text files on several machines in your network is asking for trouble. Network drive links are not stored encrypted. Should you be running windows on your network and it gets a virus or other malware that sends the info back, you're looking at a huge issue and a completely compromised network.

Disabling the remote access would be a better option. And more secure, depending on your firewall settings.

Thank you for all your inputs...however...can' t all these be "graphically be translated" as it should be for any supposed to be "Microsoft friendly basic user"....all what you wrote is totally beyond my comprehension.

As with anything new, there's a learning curve. Coming to Linux, you should have expected to learn something. Not everything in computers is click and done. Even Windows has procedures to access network storage. The difference is that Windows has many of the possibilities coded into the OS. This isn't true in Linux.

If you web search connecting networks storage in Ubuntu 22, you will find many guides that lay out each step. It includes installing cifs-utils and configuring a password file. You can bypass this by removing the restriction of remote access to your usb storage, as that is what you are doing.

Understanding what you have and how it's configured is important for both your use of the devices as well as the security of them.

While many of Linux's features are point and click, there are some aspects that are best handled by the terminal. If this is beyond what you are willing to dedicate yourself to learning, maybe Linux isn't right for you.

Not understanding and correctly managing your network and all of the devices on it opens you up to potential and unnecessary security risks.

If you aren't willing to take the time to understand, I'm not going to waste my time explaining everything.