Add hdd to Home Assistant

Hi everyone I tried to search on the net and in the forum but I couldn’t figure out if there is a solution to my problem.
I have installed Home Assistant OS 5.13 on a mini PC / NUC.
On an mSATA module I installed the operating system, now the mini PC has a sata connector on board where I directly connected a 1TB HDD.
I would like to use it to save my IP CAM stream using MotioEye.
How can I do? Is there any way to show the 1TB mechanical disk to the operating system?

Thanks everyone in advance for the support.

I don’t use hassos but normal Linux method is mount drive (you can use /etc/fstab to define exactly where; like /srv/newdrive) then just use that path when selecting where to store files

df command at command line should show current drive mount point I believe

EDIT
Look at the post below

Seems like he may be exposing this
Connect to host as root and edit fstab file. Make sure you not doing this to HA containers

Thanks for the reply, the only thing I was able to find this info in the HW section and I saw that hassio detects the 1TB disk, the problem that I am not a Linux expert and I have no idea how to get it mounted, The commands you suggested are not present when connecting from hassio with a web conole … what can I do?:

  • name: sdb
    sysfs: >-
    /sys/devices/pci0000:00/0000:00:13.0/ata2/host1/target1:0:0/1:0:0:0/block/sdb
    dev_path: /dev/sdb
    subsystem: block
    by_id: /dev/disk/by-id/ata-ST1000LM049-2GH172_WGS7EMGA
    attributes:
    DEVLINKS: >-
    /dev/disk/by-id/ata-ST1000LM049-2GH172_WGS7EMGA
    /dev/disk/by-id/wwn-0x5000c500cf3ebb46
    /dev/disk/by-path/pci-0000:00:13.0-ata-2
    /dev/disk/by-path/pci-0000:00:13.0-ata-2.0
    DEVNAME: /dev/sdb
    DEVPATH: >-
    /devices/pci0000:00/0000:00:13.0/ata2/host1/target1:0:0/1:0:0:0/block/sdb
    DEVTYPE: disk
    ID_ATA: ‘1’
    ID_ATA_DOWNLOAD_MICROCODE: ‘1’
    ID_ATA_FEATURE_SET_APM: ‘1’
    ID_ATA_FEATURE_SET_APM_CURRENT_VALUE: ‘128’
    ID_ATA_FEATURE_SET_APM_ENABLED: ‘1’
    ID_ATA_FEATURE_SET_HPA: ‘1’
    ID_ATA_FEATURE_SET_HPA_ENABLED: ‘1’
    ID_ATA_FEATURE_SET_PM: ‘1’
    ID_ATA_FEATURE_SET_PM_ENABLED: ‘1’
    ID_ATA_FEATURE_SET_PUIS: ‘1’
    ID_ATA_FEATURE_SET_PUIS_ENABLED: ‘0’
    ID_ATA_FEATURE_SET_SECURITY: ‘1’
    ID_ATA_FEATURE_SET_SECURITY_ENABLED: ‘0’
    ID_ATA_FEATURE_SET_SECURITY_ENHANCED_ERASE_UNIT_MIN: ‘126’
    ID_ATA_FEATURE_SET_SECURITY_ERASE_UNIT_MIN: ‘126’
    ID_ATA_FEATURE_SET_SECURITY_FROZEN: ‘1’
    ID_ATA_FEATURE_SET_SMART: ‘1’
    ID_ATA_FEATURE_SET_SMART_ENABLED: ‘1’
    ID_ATA_ROTATION_RATE_RPM: ‘7200’
    ID_ATA_SATA: ‘1’
    ID_ATA_SATA_SIGNAL_RATE_GEN1: ‘1’
    ID_ATA_SATA_SIGNAL_RATE_GEN2: ‘1’
    ID_ATA_WRITE_CACHE: ‘1’
    ID_ATA_WRITE_CACHE_ENABLED: ‘1’
    ID_BUS: ata
    ID_FS_TYPE: isw_raid_member
    ID_FS_USAGE: raid
    ID_FS_VERSION: 1.1.00
    ID_MODEL: ST1000LM049-2GH172
    ID_MODEL_ENC: >-
    ST1000LM049-2GH172\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
    ID_PATH: ‘pci-0000:00:13.0-ata-2.0’
    ID_PATH_ATA_COMPAT: ‘pci-0000:00:13.0-ata-2’
    ID_PATH_TAG: pci-0000_00_13_0-ata-2_0
    ID_REVISION: SDM1
    ID_SERIAL: ST1000LM049-2GH172_WGS7EMGA
    ID_SERIAL_SHORT: WGS7EMGA
    ID_TYPE: disk
    ID_WWN: ‘0x5000c500cf3ebb46’
    ID_WWN_WITH_EXTENSION: ‘0x5000c500cf3ebb46’
    MAJOR: ‘8’
    MINOR: ‘16’
    SUBSYSTEM: block
    TAGS: ‘:systemd:’
    USEC_INITIALIZED: ‘2448363’
    • name: sdb1
      sysfs: >-
      /sys/devices/pci0000:00/0000:00:13.0/ata2/host1/target1:0:0/1:0:0:0/block/sdb/sdb1
      dev_path: /dev/sdb1
      subsystem: block
      by_id: /dev/disk/by-id/ata-ST1000LM049-2GH172_WGS7EMGA-part1
      attributes:
      DEVLINKS: >-
      /dev/disk/by-id/ata-ST1000LM049-2GH172_WGS7EMGA-part1
      /dev/disk/by-id/wwn-0x5000c500cf3ebb46-part1 /dev/disk/by-label/DATA
      /dev/disk/by-partuuid/3ef19f4e-01
      /dev/disk/by-path/pci-0000:00:13.0-ata-2-part1
      /dev/disk/by-path/pci-0000:00:13.0-ata-2.0-part1
      /dev/disk/by-uuid/0E8E-A27D
      DEVNAME: /dev/sdb1
      DEVPATH: >-
      /devices/pci0000:00/0000:00:13.0/ata2/host1/target1:0:0/1:0:0:0/block/sdb/sdb1
      DEVTYPE: partition
      ID_ATA: ‘1’
      ID_ATA_DOWNLOAD_MICROCODE: ‘1’
      ID_ATA_FEATURE_SET_APM: ‘1’
      ID_ATA_FEATURE_SET_APM_CURRENT_VALUE: ‘128’
      ID_ATA_FEATURE_SET_APM_ENABLED: ‘1’
      ID_ATA_FEATURE_SET_HPA: ‘1’
      ID_ATA_FEATURE_SET_HPA_ENABLED: ‘1’
      ID_ATA_FEATURE_SET_PM: ‘1’
      ID_ATA_FEATURE_SET_PM_ENABLED: ‘1’
      ID_ATA_FEATURE_SET_PUIS: ‘1’
      ID_ATA_FEATURE_SET_PUIS_ENABLED: ‘0’
      ID_ATA_FEATURE_SET_SECURITY: ‘1’
      ID_ATA_FEATURE_SET_SECURITY_ENABLED: ‘0’
      ID_ATA_FEATURE_SET_SECURITY_ENHANCED_ERASE_UNIT_MIN: ‘126’
      ID_ATA_FEATURE_SET_SECURITY_ERASE_UNIT_MIN: ‘126’
      ID_ATA_FEATURE_SET_SECURITY_FROZEN: ‘1’
      ID_ATA_FEATURE_SET_SMART: ‘1’
      ID_ATA_FEATURE_SET_SMART_ENABLED: ‘1’
      ID_ATA_ROTATION_RATE_RPM: ‘7200’
      ID_ATA_SATA: ‘1’
      ID_ATA_SATA_SIGNAL_RATE_GEN1: ‘1’
      ID_ATA_SATA_SIGNAL_RATE_GEN2: ‘1’
      ID_ATA_WRITE_CACHE: ‘1’
      ID_ATA_WRITE_CACHE_ENABLED: ‘1’
      ID_BUS: ata
      ID_FS_LABEL: DATA
      ID_FS_LABEL_ENC: DATA
      ID_FS_TYPE: exfat
      ID_FS_USAGE: filesystem
      ID_FS_UUID: 0E8E-A27D
      ID_FS_UUID_ENC: 0E8E-A27D
      ID_FS_VERSION: ‘1.0’
      ID_MODEL: ST1000LM049-2GH172
      ID_MODEL_ENC: >-
      ST1000LM049-2GH172\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
      ID_PART_ENTRY_DISK: ‘8:16’
      ID_PART_ENTRY_NUMBER: ‘1’
      ID_PART_ENTRY_OFFSET: ‘2048’
      ID_PART_ENTRY_SCHEME: dos
      ID_PART_ENTRY_SIZE: ‘1953519616’
      ID_PART_ENTRY_TYPE: ‘0x7’
      ID_PART_ENTRY_UUID: 3ef19f4e-01
      ID_PATH: ‘pci-0000:00:13.0-ata-2.0’
      ID_PATH_ATA_COMPAT: ‘pci-0000:00:13.0-ata-2’
      ID_PATH_TAG: pci-0000_00_13_0-ata-2_0
      ID_REVISION: SDM1
      ID_SERIAL: ST1000LM049-2GH172_WGS7EMGA
      ID_SERIAL_SHORT: WGS7EMGA
      ID_TYPE: disk
      ID_WWN: ‘0x5000c500cf3ebb46’
      ID_WWN_WITH_EXTENSION: ‘0x5000c500cf3ebb46’
      MAJOR: ‘8’
      MINOR: ‘17’
      PARTN: ‘1’
      SUBSYSTEM: block
      TAGS: ‘:systemd:’
      USEC_INITIALIZED: ‘2591932’
    • name: ‘1:0:0:0’

Unless I missed some updates, I don’t think HassOS supports adding external media. You simply don’t have enough control over the host operating system and it’s just way too stripped down. Hass is not designed to me a media server or an NVR, even though some addons have such functionality.

I can recommend instead installing Proxmox on your NUC. It’s virtualization server based on Debian, it supports running VMs and LXC containers, and is managed through nice UI. You also have full control over the host OS so you can edit fstab and do all that, anything you can do with Debian you can do here.

From there there are different ways you could go. You could run HassOS in it’s own VM, then mount your external drive on host, pass it to some LXC container and run fileshare like Samba on it. Then you can install your MotionEye server and use that samba as remote share.

Or you could run Hass Supervised on Generic linux. You install LXC or VM with Debian and install Hass on that. From there you have full access to your underlying system and you can directly mount your drive to that VM or LXC container.

Or you could run HassOS in it’s own VM and run MotionEye in another container or VM directly on Proxmox, not through Hass addons.

If there is a way to just add an HDD to HassOS then someone should chip in.

There is Samba NAS addon:

Not sure that add-on provides user access to the share folder though. I think only the add-on has access for saving snapshots.

Sorry, was looking at wrong add-on.

This add-on works the opposite way to what the OP wants. It simply shares the HA files from what I can tell. The docs for it are virtually non-existent.

What’s the status (as per the 18th of September 2022) of this add-on? I try to add this repository, but it doesn’t show up in HA. What 'm doing: 1) Copy this URL: GitHub - dianlight/hassio-addons: Hassio.io. 2) adding it to Add-on store > Repositories by pasting the URL. Then I search for the add-on, but can’t find anything besides the default add-ons.

I do have my settings changed to advanced user.

A little help here would be great! thanks!

You can read this article