#HA is not able to connect to a USB drive connected to my router via Samba Share on the router

1 messages · Page 1 of 1 (latest)

river sonnet
#

Let's say you use an URL like \\hostname\sharename. Server would be hostname and Remote share would be sharename.
If it complains check the logs.

sullen ploverBOT
#

show your Home Assistant logs

stark mist
#

Thanks for the info. I did as you suggested but still no-go.
Note: The router's System Log - General Log does not register any activity.

Here is the pertinent HA Blue log:

Logger: homeassistant.components.hassio
Source: components/hassio/websocket_api.py:145
integration: Home Assistant Supervisor (documentation, issues)
First occurred: May 23, 2025 at 8:28:31 PM (35 occurrences)
Last logged: 6:12:13 AM

Failed to to call /mounts - Mounting 86u_ha_bkups did not succeed. Check host logs for errors from mount or systemd unit mnt-data-supervisor-mounts-86u_ha_bkups.mount for details.
Failed to to call /mounts - Mounting ha_backups did not succeed. Check host logs for errors from mount or systemd unit mnt-data-supervisor-mounts-ha_backups.mount for details.
Failed to to call /mounts - does not match regular expression ^[^\/]+ for dictionary value @ data['server']. Got '\\franken1410'
Failed to to call /mounts - Mounting habkups did not succeed. Check host logs for errors from mount or systemd unit mnt-data-supervisor-mounts-habkups.mount for details.
Failed to to call /mounts - Mounting Share did not succeed. Check host logs for errors from mount or systemd unit mnt-data-supervisor-mounts-Share.mount for details.

river sonnet
#

Can you show me a picture of what you wrote into these boxes? Also check the host logs as it says but it looks like you didn't stick to the syntax I explained.

sullen ploverBOT
#

show your Home Assistant logs

river sonnet
#

regular expression ^[^\\\/]+
Huh?
What did the host logs say?

stark mist
#

The router System Log does not reflect any related entries.

river sonnet
#

What I wonder is where \\\\franken1410 comes from.

stark mist
#

I'm trying to figure out how to upload a file to discord

river sonnet
#

Just drag & drop.

#

could not resolve address for franken1410: Unknown error.

#

Can you try the ip instead? Also what does nslookup franken1410 say?

#

Well that does it.

#

Can you tell me what that same command in linux mint says?

stark mist
#

Sorry, I thought that is what you meant. Above is from the linux mint terminal. I will do the same from the HA terminal.

river sonnet
#

Huh. If mint can't resolve that name, how can it mount the share?

#

Okay we need to take a detour and figure out your DNS situation.
On mint run this

resolvectl status
ip route
#

Can you resolve it like this?

nslookup franken1410 192.168.50.1

That asks your router directly.

#

Alright then I'm confused what franken1410 is and how you're able to mount it in mint.

stark mist
#

maybe enabling: "Allow guest login"

river sonnet
#

One of the issues right now is that franken1410 cannot be resolved to the ip of the router. I'm not really concerned about the share itself at the moment.

stark mist
#

ok

river sonnet
#

Maybe franken1410 is just the name it advertises itself as but not necessarily provide that name as DNS entry.
Use 192.168.50.1 instead of that name.

stark mist
#

ok

river sonnet
#

Alright so back to HAOS. That ^[^\\\/]+ regex just makes sure you're not using a / which you didn't so it shouldn't complain.

#

nslookup is for resolving names into ips. You gave it an ip.

#

What does it say now?

#

Are you sure 86u_ha_bkups is its own share rather than just a directory in the main share?

stark mist
#

hmm, I am a novice at this so let me see what the router gui sais.

river sonnet
#

Try this in the SSH addon

apk add samba-client
smbclient -U USERNAMEHERE -L 192.168.50.1

That should list all shares and as a bonus allows you to test your credentials.

#

Use .50.1, not .51.1.

stark mist
#

sorry

#

that is from the HA SSH add-in

river sonnet
#

Looks okay to me. You should be able to use 192.168.50.1 as Server, 86u_ha_bkups as Remote share and home265 as Username.

stark mist
#

I'll try with those parameters

#

no-go. I tried home265 for the samba share username and again with the actual router samba share username.

river sonnet
#

But you saw that at least in the CLI it worked. What's it say this time?

stark mist
#

does this error mean anything:
Mounting my_ha_backup did not succeed. Check host logs for errors from mount or systemd unit mnt-data-supervisor-mounts-my_ha_backup.mount for details.

river sonnet
#

Invalid argument
Kinda vague. No idea at the moment. Maybe you could try another CIFS version such as 2.0.

stark mist
#

bingo. I had tried CIFS 2.0 and 1.0 before but not with the router IP. It is now connected. It did say that CIFS 2.0 is unsafe, what do you think, should I get a NAS instead? In any case, thanks so much for the patience and troubleshooting. We "no-clue" people would be lost without help.

#

I see that all backups will be encrypted so I guess it is ok.

river sonnet
#

I'm not a security nut. In my LAN I wouldn't really care much. I think everyone with a few devices could benefit from a NAS but I'm having a hard time recommending a retail one.

stark mist
#

Thanks a million again. I hope you can enjoy your memorial day weekend.