I don’t even get addon_core_ssh:~#.
I get f53c6c2b****:~#, where the asterisks are four different characters, but hidden incase it reveals anything. It appears to be a MAC Address.
Hi,
Everything works fine for me with the below command. However I have a Z-wave and a RFXtrx controller and after a restart they could change “ttyUSB0” <-> “ttyUSB”" with each other.
Is there someway to create a persistent link on hassio for the USB?
strangest thing, I can see the usb drive in the dmesg command, but when i hassio host hardware, no Usb is displayed?
do i need to activate it first somehow? id like the logs and db to be written to the usb, or decide to write them to my NAs. Since that is shutdown in the night, i thought an attached usb would be a good starter. Now how to find it and command Hassio to use it. the Recorder page won’t give much info on that.
please have a look:
core-ssh:~# dmesg | grep usb
[ 0.150537] usbcore: registered new interface driver usbfs
[ 0.150625] usbcore: registered new interface driver hub
[ 0.150724] usbcore: registered new device driver usb
[ 0.638273] usbcore: registered new interface driver smsc95xx
[ 1.039446] dwc_otg 3f980000.usb: DWC OTG Controller
[ 1.039480] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
[ 1.039514] dwc_otg 3f980000.usb: irq 62, io mem 0x00000000
[ 1.039784] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.039798] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.039810] usb usb1: Product: DWC OTG Controller
[ 1.039822] usb usb1: Manufacturer: Linux 4.4.50 dwc_otg_hcd
[ 1.039834] usb usb1: SerialNumber: 3f980000.usb
[ 1.041415] usbcore: registered new interface driver usb-storage
[ 1.164675] usbcore: registered new interface driver usbhid
[ 1.164679] usbhid: USB HID core driver
[ 1.414342] usb 1-1: new high-speed USB device number 2 using dwc_otg
[ 1.614682] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[ 1.614703] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 1.894382] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[ 1.994579] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[ 1.994593] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 2.056896] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:19:41:e3
[ 3.074337] usb 1-1.4: new high-speed USB device number 4 using dwc_otg
[ 3.175090] usb 1-1.4: New USB device found, idVendor=0781, idProduct=5581
[ 3.175104] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3.175110] usb 1-1.4: Product: Ultra
[ 3.175116] usb 1-1.4: Manufacturer: SanDisk
[ 3.175122] usb 1-1.4: SerialNumber: 4C530001221006122243
[ 3.175752] usb-storage 1-1.4:1.0: USB Mass Storage device detected
[ 3.176414] scsi host0: usb-storage 1-1.4:1.0
[ 3.735774] usbcore: registered new interface driver brcmfmac
core-ssh:~# hassio host hardware
{
"serial": [],
"input": [],
"disk": [
"/dev/sda",
"/dev/sda1"
],
"gpio": [
"gpiochip100",
"gpiochip0"
],
"audio": {
"0": {
"name": "bcm2835 - bcm2835 ALSA",
"type": "ALSA",
"devices": {
"0": "digital audio playback",
"1": "digital audio playback"
}
}
}
}
no not yet,
havent found any info on this, and no reaction whatsoever in the forum…
i did read about several adventures but they weren’t on Hassio, so id rather wait for dedicated hassio setup instructions from the dev’s.
Hi!
This thread actually has two problems.
First is not finding your USB Z-Wave controller, but that I believe is fixed with the new version of the SSH add-on.
The second one is not being able to mount your USB disk devices. I’ve been trying to work around this one for a while with a lot of help from @frenck. (thanks again!)
Apparently no add-on is allowed to mount your disk devices unless explicitly stating that in the config.json file of the add-on. What I am working on now is to nail together an add-on that serves my needs (DLNA and torrent client using a USB HDD) but in the meantime I realized that if you want to mount your disks for something there is a way. I have to admit it is not easy and also not user friendly:
modify the config.json file of the add-on and add access to your /dev/sda1 device
you need to add these lines:
“devices”: ["/dev/sda1:/dev/sda1:rwm"],
“privileged”:[“SYS_ADMIN”]
make sure that the JSON file is still valid, don’t just add this to the end of the file
upload your hacked terminal into the Raspberry PI’s /root/addons folder
in Home Assistant go to hass.io’s add-on market and refresh
install your new terminal as a local add-on (try to make sure that you’ve stopped the original one prior to starting your version)
log into your terminal and mount your drive as you wish to do that
If the local add-on is not showing up you can go into hass.io’s supervisor logs in the advanced settings and see what’s wrong there.
Once again this is a hack, I would not recommend it to anyone unless you know what you are doing, also most cases you don’t need to access a USB drive in hass.io at all, you should be able to access your backups for example through SSH and Samba.
HI, cool you’re doing this. I think it would be of utmost value if we could easily use the usb drives in the Pi3 Hassio install. As a matter of fact, ive asked @frenck over twitter if his latest Backup add-on will support this.
Ive changed from a simple hassio setup to one using the maria Db because i feared the Db getting out of hand, and hoping i could write that to a usb drive, as not to risk corrupting my main setup in the root. Creating backups on usb would be a big second reason for USB support.
I hope this will be realized sooner than later, because even as I write this, i can see the disk usage of my 32 gb card reach over 50%… And i’ve only been using HAssio for 2 months now :-((
So, no hack, but built-in functionality is needed !
Cheers and hope you can forge this with Frenck, he’s been known to write wonders
I’ve talked with @bboti86 on Discord quite a lot about this problem. The method described by @bboti86 works but is not a sustainable solution. For example, everybody would run all kind of forks add-on to mount their specific drives in specific places.
I’m currently looking into several “possible” solutions.