Add SATA storage in UmbrelOs

Hi guys, I need a help with my UmbrelOs.

Recently, I added two 1 TB SATA hard drives to my computer running UmbrelOS.I was able to detect the drives and mount them manually, but they do not appear in the Files app. I also tried to configure them to mount automatically by editing the /etc/fstab file. However, every time I reboot the system, the file is restored to its default configuration, and all of my changes are lost.

I would like to know:

  • How can I make the hard drives appear in the Files app?

  • How can I configure them to mount automatically on every boot, even after restarting UmbrelOS?

Below are the commands I used, along with a screenshot to help illustrate the issue.

umbrel@umbrel:~/umbrel/home$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 111.8G 0 disk
├─sda1 8:1 0 200M 0 part /run/rugix/mounts/config
├─sda2 8:2 0 9.6G 0 part /run/rugix/mounts/system
├─sda3 8:3 0 9.6G 0 part
└─sda4 8:4 0 92.3G 0 part /mnt/root/var/lib/systemd/timesync
/var/lib/systemd/timesync
/mnt/root/var/log
/var/log
/mnt/root/var/lib/docker
/var/lib/docker
/kopia
/home
/data
/run/rugix/state
/run/rugix/mounts/data
sdb 8:16 0 931.5G 0 disk
└─sdb1 8:17 0 931.5G 0 part /data/umbrel-os/home

/home
sdc 8:32 0 931.5G 0 disk
├─sdc1 8:33 0 931G 0 part
└─sdc2 8:34 0 519M 0 part

umbrel@umbrel:~$ /mnt/“Disco 1 - Backup”
-bash: /mnt/Disco 1 - Backup: Is a directory

umbrel@umbrel:~$ cd “/mnt/Disco 1 - Backup”
umbrel@umbrel:/mnt/Disco 1 - Backup$ ls
‘$RECYCLE.BIN’ ‘Arquivos Antigos’ Backup Softwares Trabalho
Administrativo ‘BACKUP HD RECUPERADO’ Estudos ‘System Volume Information’ media

umbrel@umbrel:/mnt$ ls /mnt
‘Disco 1 - Backup’ HD02 HD_02 root

umbrel@umbrel:/mnt$ ls -la /mnt
total 24
drwxr-xr-x 1 root root 4096 Jul 23 22:19 .
drwxr-xr-x 1 root root 4096 Jul 23 19:57 ..
drwxrwxrwx 1 root root 4096 May 22 09:47 ‘Disco 1 - Backup’
drwxr-xr-x 4 root root 4096 Jul 23 19:53 HD02
drwxr-xr-x 2 root root 4096 Jul 23 21:48 HD_02
drwxr-xr-x 1 root root 4096 Jul 23 19:57 root

umbrel@umbrel:~$ lsblk -f
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
sda
└─sda1 ext4 1.0 HD02 c0ad99d1-340e-4d00-b989-d92335df7383 869.2G 0% /mnt/root/mnt/HD02
/mnt/HD02

sdc
├─sdc1 ntfs Disco 1 - Backup 02CA0359CA0347FD 720.8G 23% /mnt/root/mnt/Disco 1 - Backup
│ /mnt/Disco 1 - Backup
└─sdc2 ntfs EEC8B8A8C8B87087
zram0 swap 1 zram0 643eabe8-b0fa-4d0a-8547-ec64981597c3 [SWAP]

/etc/fstabを編集してもマシン再起動すると元に戻ります。
custom-hooksを使いましょう。

/home/umbrel/umbrel/custom-hooks/pre-start

SAMPLE SCRIPT

#!/bin/bash
set -e

DISK=“/dev/disk/by-uuid/<DEVICE UUID>”
DISK_MOUNT=“<YOUR MOUNT POINT>”

mkdir -p “$DISK_MOUNT”

if ! mountpoint -q “$DISK_MOUNT”; then
mount “$DISK” “$DISK_MOUNT”
fi

I think there are two separate things happening here. umbrelOS currently only auto-detects USB drives as external storage, so an internally connected SATA drive won’t automatically appear in Files. Also, mounting it under /mnt won’t expose it there. The mount point needs to be somewhere under /home/umbrel/umbrel/external/.

The /etc/fstab reset is expected on recent umbrelOS versions because the base system is restored on each boot. The custom pre-start hook mentioned above is the right workaround.

For the NTFS partition shown in your output, create or edit the hook:

sudo install -d -m 755 /home/umbrel/umbrel/custom-hooks
sudo nano /home/umbrel/umbrel/custom-hooks/pre-start

Put this in the file:

#!/bin/bash
set -u

TARGET="/home/umbrel/umbrel/external/Disco-1-Backup"
DEVICE="/dev/disk/by-uuid/02CA0359CA0347FD"

mkdir -p "$TARGET"
if ! mountpoint -q "$TARGET"; then
    mount "$DEVICE" "$TARGET"
fi

Then make it executable and reboot:

sudo chmod +x /home/umbrel/umbrel/custom-hooks/pre-start
sudo reboot

It should then appear under External in the Files app. If you already have a pre-start hook, add the mount block to the existing file rather than replacing it.

Also, don’t try to remount the 1 TB disk that is already mounted at /data/umbrel-os/home and /home. That is currently being used as Umbrel’s main data drive. The UUID in the example above is only for the separate NTFS backup partition. This is still a self-maintained workaround; connecting the extra drive through a USB-to-SATA adapter is the path umbrelOS can detect and mount automatically.

I go test your option and return with the answer. I used the USB adapter, but I think its no secure for maintance and my adapter after a time its desconnects. I dont no why. But, thanks for help

Thanks man. I go test your solution and read the case in github. Very thanks