-
I was attempting to mount a folder to the /media folder within HA that is currently in a Proxmox VM via a Ubuntu LXC container to store media files. Unfortunately while I could access the files via my mac and linux laptops I couldn't get the files to mount within HA. I did find some documentation about squashing and unsquashing folders it was a bit above my understanding. My next thought was maybe I could just mount a drive within the HA VM and be able to mount the folder easier that way within the HA /media folder. Would anyone know if this is possible or will I still run into the same issue when trying to mount it from a different lxc? I was reluctant to just load a bunch of media files within the /media folder of HA taking up valuable space and was trying to find a way to offload them and just have a mounted drive to them. |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 4 replies
-
You can always increase the HAOS disk size. |
Beta Was this translation helpful? Give feedback.
-
I suspect I'll have to go this route as there doesn't seem to be an easy method of mounting an external folder. Thx |
Beta Was this translation helpful? Give feedback.
-
Before I moved to using an LXC container which makes this easy, I used to run a HASSOS service which was basically a shell script to do an NFS mount into the right place and then called that as part of an automation trigger by home assistant starting up. That might be worth a try |
Beta Was this translation helpful? Give feedback.
-
@dmshimself Would you have an example of that? I tried doing something similar but always got a return code of 255 even though I had all the permissions set correctly and I could actually access it via my mac laptop and linux laptops, just couldn't through HAOS in Proxmox. Then started reading about squashing and squashing folders, started getting over my head. If you have a workaround I would love to try it. |
Beta Was this translation helpful? Give feedback.
-
My nfs server is an LXC too, just debian instead. I couldn't get the shell method to work at all, so I used the method I have laid out. If you start with the ssh addon and manually try, then I think you will have more luck in diagnosing the issue. |
Beta Was this translation helpful? Give feedback.
-
You will need to use a samba connection string on the mount if your share is a samba one and an NFS mount if it is an NFS share. They are not interchangable. To go back slightly one stage, do you have a linux box that you can use to test mounting? As you are using proxmox, you could easily spin up an ubuntu VM and use that to test. The HASSOS VM you have is running linux, but without too much in the way of a user interface. It might be worth getting a standard mount command working on an easy platform first and then use the ssh into your HA VM. Important note - the binds I gave are only to be used if you are using a ha LXC, not a VM, they will not work on a VM |
Beta Was this translation helpful? Give feedback.
-
Sure thing - it's a hard error to work through as you'd need to go
through the log files on the ubuntu container running as your file
server. I share your pain! I guess you might come back to it
sometime. Anyway good luck and I'm glad you have an alternative
approach that gives you what you need.
…On 9/12/22 10:59, Photo64 wrote:
I have no issues with using samba or ssh from either my mac laptop or
my ubuntu laptop. With both I can mount the media folder from the
ubuntu lxc container.
I can not mount the ubuntu lxc folder in the HA VM. Every time I try I
get a "Permission Denied" error when trying to mount the folder when
using the SSH & Terminal addon within HA. Using nfs or nfs4 or cifs,
they return the same error. What I don't know is if the Permission
Denied error is on the lxc container or the HAOS VM.
Thanks for your suggestions but it seems it just can't be done and
I'll likely have to go the route that tteck suggested above.
—
Reply to this email directly, view it on GitHub
<#812 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABUU52KVY3MRIVN7D7TUDNTWMJK2VANCNFSM6AAAAAASW54PXM>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
You can always increase the HAOS disk size.