-
-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 [Filebrowser] Won't start with local drive mount #1008
Comments
Hi, that’s all in the log ? And no error messages in the supervisor or core logs ? |
Supervisor
|
Mmh Hyper-V is likely restricting access to the devices? As apparmor allows it : hassio-addons/nextcloud/config.json Lines 38 to 39 in cdd4bd3
Perhaps you could try to mount by Label but I fear it would be the same |
Why would hyper-v block it when it works normally as data prtition? |
That's a good question ;-) What is sure is that sdb1 device accessibility is enabled on the addon and works on HAos, so if the supervisor doesn't allow it the only difference I see is the usage of hyper-v... |
Actually I have an hyperV system I'll try to replicate ; on my system the disks are not named sda1 ; sdb1... |
Hi, you can create a file named #!/usr/bin/env bashio
#################
# INSTALL TOOLS #
#################
# Install lsblk
if ! command -v "lsblk" &>/dev/null; then
if command -v "apk" &>/dev/null; then apk add --no-cache lsblk >/dev/null; fi
if command -v "apt" &>/dev/null; then apt-get update && apt-get install -yqq util-linux; fi
fi
####################
# LIST LOCAL DISKS #
####################
## List available Disk with Labels and Id
bashio::log.blue "---------------------------------------------------"
bashio::log.info "Available Disks :"
lsblk -o name,label,size,fstype,type,ro | awk '$5 != "" { print $0 }'
bashio::log.blue "---------------------------------------------------" |
I guess its problem with permissions and protection mode that blocks elevated system access from the add-on |
Indeed ; sdb1 isn't even visible as a valid fstype in lsblk - i fear I won't be able to help you. Actually squashfs is probably not supported by the mount command ; it only supports ext*, fat* or ntfs based drives |
This looks okay but sdb8 also does not work. Tried it also.
|
Here is the output from root zsh
|
I guess the system only expose the disks as squashfs which is not supported... Sorry Perhaps your alternative is mounting your drive using the build in HAos system ; it didn't exist when I initially set my code but it allows mounting in /media I think |
Actually, if you have root access you should mount from root and not from HA... It doesn't seem possible otherwise. The native mount I talk above is actually limited to SMB/NFS shares and not for local driver. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Description
Haos in Hyper-V, mounted 2 vhds. Second vhd used as data partition. Trying to mount sdb1 results in failure to start addon.
Reproduction steps
1. Go to configuration for addon 2. Add any disk to mount 3. Quickly watch logs
Addon Logs
Architecture
amd64
OS
Virtual Machine
The text was updated successfully, but these errors were encountered: