Enabling SMB Share on Dataset deleted all Files

First of: No relevant data was lost, but I want to understand what happened here.

A week ago I created a new Dataset named Share. I used the Apps preset. I then uploaded multiple GB worth of data via the FileBrowser app (docker). This worked fine, I was later able to download the files again.

Now I wanted to make this dataset an SMB share that I then mount in Windows. I did exactly that, I enabled SMB for this dataset.

In Windows this new share was listed as empty however. I checked the ACL, everything looked ok, I selected “apply settings recursively” because I assumed I might not have the rights to view the files. Nothing changed. So I created a new file in the share on Windows. It took a few seconds to appear on the server.

HOWEVER, now only this new file is on the server, all 30 GB of files have vanished. Not sure what happened. I can only see the newly created file in the filebrowser app - so there’s definitely nothing there anymore.

As you can see, this also only lists as a few KB.

There is no API / backend mechanism to perform a recursive deletion like this. Maybe post output of zfs list -o space

3 Likes

You might have uploaded the files to a folder rather than the expected dataset (filesystem).

Please paste the output in preformatted text (CTRL + E).

zfs mount | grep /mnt/HDDs
zfs list -t fs,vol -r -o space,mountpoint

This next command requires root or sudo for an accurate reading. :warning: It might take a while to finish.

for dir in /mnt/HDDs/*; do sudo du -hs $dir; done
2 Likes

This is what confused me as well. And this is why I want to understand what happened here, so I can fix / prevent it in the future.

root@HEXstor[/home/truenas_admin]# zfs list -o space
NAME                                                   AVAIL   USED  USEDSNAP  USEDDS  USEDREFRESERV  USEDCHILD
HDDs                                                   21.5T  3.78T        0B   37.9G             0B      3.74T
HDDs/Applications                                      21.5T  49.3G        0B    160K             0B      49.3G
HDDs/Applications/booklore                             21.5T   426K        0B    139K             0B       288K
HDDs/Applications/booklore/bookdrop                    21.5T   160K        0B    160K             0B         0B
HDDs/Applications/booklore/books                       21.5T   128K        0B    128K             0B         0B
HDDs/Applications/firefly                              21.5T   256K        0B    128K             0B       128K
HDDs/Applications/firefly/uploads                      21.5T   128K        0B    128K             0B         0B
HDDs/Applications/immich                               21.5T  43.4G        0B    139K             0B      43.4G
HDDs/Applications/immich/data                          21.5T   192K        0B    192K             0B         0B
HDDs/Applications/immich/encoded_videos                21.5T  34.0G     9.75M   34.0G             0B         0B
HDDs/Applications/immich/uploads                       21.5T  9.40G     3.77M   9.39G             0B         0B
HDDs/Applications/jdownloader2                         21.5T  4.36G        0B    128K             0B      4.36G
HDDs/Applications/jdownloader2/downloads               21.5T  4.36G        0B   4.36G             0B         0B
HDDs/Applications/mesh-organizer                       21.5T  15.1M        0B    128K             0B      14.9M
HDDs/Applications/mesh-organizer/data                  21.5T  14.9M     1.47M   13.5M             0B         0B
HDDs/Applications/opencloud                            21.5T   517K        0B    128K             0B       389K
HDDs/Applications/opencloud/data                       21.5T   389K        0B    389K             0B         0B
HDDs/Applications/paperless                            21.5T   786M        0B    160K             0B       786M
HDDs/Applications/paperless-ngx                        21.5T   794M        0B    139K             0B       794M
HDDs/Applications/paperless-ngx/consume                21.5T   128K        0B    128K             0B         0B
HDDs/Applications/paperless-ngx/media                  21.5T   794M      160K    794M             0B         0B
HDDs/Applications/paperless/consume                    21.5T   128K        0B    128K             0B         0B
HDDs/Applications/paperless/data                       21.5T  51.4M        0B   51.4M             0B         0B
HDDs/Applications/paperless/db                         21.5T  27.7M        0B   27.7M             0B         0B
HDDs/Applications/paperless/media                      21.5T   684M        0B    684M             0B         0B
HDDs/Applications/paperless/trash                      21.5T  22.2M        0B   22.2M             0B         0B
HDDs/Applications/plex                                 21.5T  18.2M        0B    128K             0B      18.1M
HDDs/Applications/plex/logs                            21.5T  18.1M     5.77M   12.3M             0B         0B
HDDs/Applications/romm                                 21.5T  25.7M        0B    128K             0B      25.6M
HDDs/Applications/romm/library                         21.5T  25.6M        0B   25.6M             0B         0B
HDDs/Audiobooks                                        21.5T   170G        0B    170G             0B         0B
HDDs/Books                                             21.5T  50.9M        0B   50.9M             0B         0B
HDDs/Comics                                            21.5T  12.4G        0B   12.4G             0B         0B
HDDs/Documents                                         21.5T   144K        0B    144K             0B         0B
HDDs/Files                                             21.5T   479G      437K    479G             0B         0B
HDDs/Media                                             21.5T   350G        0B    350G             0B         0B
HDDs/Movies                                            21.5T  1.87T        0B   1.87T             0B         0B
HDDs/Music                                             21.5T  14.0G        0B   14.0G             0B         0B
HDDs/Photos                                            21.5T   230G     21.5M    230G             0B         0B
HDDs/Podcasts                                          21.5T  66.5G        0B   66.5G             0B         0B
HDDs/Share                                             21.5T   181K        0B    181K             0B         0B
HDDs/Shows                                             21.5T   411G        0B    411G             0B         0B
HDDs/Software                                          21.5T  81.6G        0B   81.6G             0B         0B
HDDs/Videos                                            21.5T  51.9G        0B   51.9G             0B         0B
SSDs                                                    617G   283G        0B     96K             0B       283G
SSDs/.system                                            617G  2.20G        0B   1.79G             0B       422M
SSDs/.system/configs-ae32c386e13840b2bf9c0083275e7941   617G  19.2M        0B   19.2M             0B         0B
SSDs/.system/cores                                     1024M   120K        0B    120K             0B         0B
SSDs/.system/netdata-ae32c386e13840b2bf9c0083275e7941   617G   401M        0B    401M             0B         0B
SSDs/.system/nfs                                        617G   104K        0B    104K             0B         0B
SSDs/.system/samba4                                     617G  1.69M     1.16M    544K             0B         0B
SSDs/.system/vm                                         617G   108K        0B    108K             0B         0B
SSDs/Applications                                       617G  21.1G       72K    120K             0B      21.1G
SSDs/Applications/audiobookshelf                        617G  5.37G        0B    104K             0B      5.37G
SSDs/Applications/audiobookshelf/config                 617G  25.9M     16.1M   9.79M             0B         0B
SSDs/Applications/audiobookshelf/metadata               617G  5.35G     2.15G   3.20G             0B         0B
SSDs/Applications/booklore                              617G  9.09M     1.79M   5.58M             0B      1.72M
SSDs/Applications/booklore/data                         617G  1.63M        0B   1.63M             0B         0B
SSDs/Applications/booklore/database                     617G    96K        0B     96K             0B         0B
SSDs/Applications/dockge                                617G   504K        0B    104K             0B       400K
SSDs/Applications/dockge/data                           617G   112K        0B    112K             0B         0B
SSDs/Applications/dockge/stacks                         617G   288K       80K    208K             0B         0B
SSDs/Applications/filebrowser                           617G   384K        0B     96K             0B       288K
SSDs/Applications/filebrowser/config                    617G   288K      180K    108K             0B         0B
SSDs/Applications/firefly                               617G  26.5M        0B    104K             0B      26.4M
SSDs/Applications/firefly/postgres_data                 617G  26.4M     3.00M   23.4M             0B         0B
SSDs/Applications/fredy                                 617G   296K        0B    104K             0B       192K
SSDs/Applications/fredy/config                          617G    96K        0B     96K             0B         0B
SSDs/Applications/fredy/database                        617G    96K        0B     96K             0B         0B
SSDs/Applications/gethomepage                           617G  1.02M        0B    104K             0B       940K
SSDs/Applications/gethomepage/config                    617G   236K        0B    236K             0B         0B
SSDs/Applications/gethomepage/images                    617G   704K        0B    704K             0B         0B
SSDs/Applications/gramps                                617G  2.76M        0B   1.12M             0B      1.64M
SSDs/Applications/gramps/cache                          617G    96K        0B     96K             0B         0B
SSDs/Applications/gramps/database                       617G   188K        0B    188K             0B         0B
SSDs/Applications/gramps/index                          617G   112K        0B    112K             0B         0B
SSDs/Applications/gramps/media                          617G    96K        0B     96K             0B         0B
SSDs/Applications/gramps/secret                         617G    96K        0B     96K             0B         0B
SSDs/Applications/gramps/thumbnail_cache                617G    96K        0B     96K             0B         0B
SSDs/Applications/gramps/tmp                            617G   896K      784K    112K             0B         0B
SSDs/Applications/gramps/users                          617G   100K        0B    100K             0B         0B
SSDs/Applications/homeassistant                         617G  14.1M        0B    112K             0B      14.0M
SSDs/Applications/homeassistant/avahi-config            617G    96K        0B     96K             0B         0B
SSDs/Applications/homeassistant/config                  617G   280K        0B    280K             0B         0B
SSDs/Applications/homeassistant/media                   617G    96K        0B     96K             0B         0B
SSDs/Applications/homeassistant/postgres                617G  13.5M        0B   13.5M             0B         0B
SSDs/Applications/homepage                              617G   368K        0B    104K             0B       264K
SSDs/Applications/homepage/config                       617G   168K        0B    168K             0B         0B
SSDs/Applications/homepage/images                       617G    96K        0B     96K             0B         0B
SSDs/Applications/immich                                617G  13.3G        0B    112K             0B      13.3G
SSDs/Applications/immich/postgres_data                  617G   716M      143M    573M             0B         0B
SSDs/Applications/immich/profile                        617G    96K        0B     96K             0B         0B
SSDs/Applications/immich/thumbs                         617G  12.6G     8.92M   12.6G             0B         0B
SSDs/Applications/jdownloader2                          617G   848K        0B     96K             0B       752K
SSDs/Applications/jdownloader2/config                   617G   752K        0B    752K             0B         0B
SSDs/Applications/komga                                 617G  7.60M        0B     96K             0B      7.51M
SSDs/Applications/komga/config                          617G  7.51M        0B   7.51M             0B         0B
SSDs/Applications/mealie                                617G  42.9M        0B     96K             0B      42.8M
SSDs/Applications/mealie/data                           617G  18.2M     2.54M   15.6M             0B         0B
SSDs/Applications/mealie/db                             617G  24.7M      636K   24.0M             0B         0B
SSDs/Applications/mosquitto                             617G   400K        0B    112K             0B       288K
SSDs/Applications/mosquitto/config                      617G    96K        0B     96K             0B         0B
SSDs/Applications/mosquitto/data                        617G    96K        0B     96K             0B         0B
SSDs/Applications/mosquitto/log                         617G    96K        0B     96K             0B         0B
SSDs/Applications/nginx                                 617G  29.3M        0B    104K             0B      29.2M
SSDs/Applications/nginx/certs                           617G   404K      132K    272K             0B         0B
SSDs/Applications/nginx/data                            617G  28.8M     11.2M   17.7M             0B         0B
SSDs/Applications/notemark                              617G   208K        0B     96K             0B       112K
SSDs/Applications/notemark/data                         617G   112K        0B    112K             0B         0B
SSDs/Applications/opencloud                             617G   324K        0B     96K             0B       228K
SSDs/Applications/opencloud/config                      617G   132K        0B    132K             0B         0B
SSDs/Applications/opencloud/settings                    617G    96K        0B     96K             0B         0B
SSDs/Applications/paperless                             617G  25.7M        0B     96K             0B      25.6M
SSDs/Applications/paperless-ngx                         617G   956M        0B    112K             0B       956M
SSDs/Applications/paperless-ngx/backup                  617G   681M        0B    681M             0B         0B
SSDs/Applications/paperless-ngx/data                    617G   181M      123M   58.3M             0B         0B
SSDs/Applications/paperless-ngx/export                  617G    96K        0B     96K             0B         0B
SSDs/Applications/paperless-ngx/postgres                617G  92.2M     66.5M   25.8M             0B         0B
SSDs/Applications/paperless-ngx/redis                   617G  1.04M      952K    108K             0B         0B
SSDs/Applications/paperless/database                    617G  25.5M        0B   25.5M             0B         0B
SSDs/Applications/paperless/datanbase                   617G    96K        0B     96K             0B         0B
SSDs/Applications/pihole                                617G  16.4M        0B    104K             0B      16.3M
SSDs/Applications/pihole/config                         617G  16.2M        0B   16.2M             0B         0B
SSDs/Applications/pihole/dnsmasq                        617G    96K        0B     96K             0B         0B
SSDs/Applications/plex                                  617G  1.31G        0B    112K             0B      1.31G
SSDs/Applications/plex/config                           617G  1.31G      150M   1.17G             0B         0B
SSDs/Applications/plex/data                             617G    96K        0B     96K             0B         0B
SSDs/Applications/plex/transcode                        617G  1.33M     1.20M    128K             0B         0B
SSDs/Applications/romm                                  617G  12.1M        0B    120K             0B      12.0M
SSDs/Applications/romm/assets                           617G    96K        0B     96K             0B         0B
SSDs/Applications/romm/config                           617G    96K        0B     96K             0B         0B
SSDs/Applications/romm/postgres                         617G  10.1M        0B   10.1M             0B         0B
SSDs/Applications/romm/resources                        617G  1.67M        0B   1.67M             0B         0B
SSDs/Applications/tailscale                             617G  30.9M        0B     96K             0B      30.8M
SSDs/Applications/tailscale/config                      617G  30.8M     21.7M   9.12M             0B         0B
SSDs/Applications/wallos                                617G  1.53M        0B    104K             0B      1.43M
SSDs/Applications/wallos/db                             617G  1.27M     1.16M    120K             0B         0B
SSDs/Applications/wallos/logos                          617G   160K        0B    160K             0B         0B
SSDs/Applications/zennotes                              617G  20.4M     14.4M   3.15M             0B      2.83M
SSDs/Applications/zennotes/data                         617G  2.73M     2.40M    344K             0B         0B
SSDs/Applications/zennotes/images                       617G    96K        0B     96K             0B         0B
SSDs/Applications/zigbee2mqtt                           617G   196K        0B     96K             0B       100K
SSDs/Applications/zigbee2mqtt/data                      617G   100K        0B    100K             0B         0B
SSDs/VMs                                                617G  48.8G        0B     96K             0B      48.8G
SSDs/VMs/homeassistant                                  662G  48.8G        0B   3.71G          45.1G         0B
SSDs/ix-apps                                            617G   210G       84K    200K             0B       210G
SSDs/ix-apps/app_configs                                617G   189M     23.2M    166M             0B         0B
SSDs/ix-apps/app_mounts                                 617G  26.3G       64K     96K             0B      26.3G
SSDs/ix-apps/app_mounts/hexos                           617G   484K        0B     96K             0B       388K
SSDs/ix-apps/app_mounts/hexos/hexos_data                617G   388K      260K    128K             0B         0B
SSDs/ix-apps/app_mounts/immich                          617G  26.3G        0B     96K             0B      26.3G
SSDs/ix-apps/app_mounts/immich/backups                  617G  26.3G     23.1G   3.23G             0B         0B
SSDs/ix-apps/docker                                     617G   183G        0B    183G             0B         0B
SSDs/ix-apps/truenas_catalog                            617G   473M        0B    473M             0B         0B
boot-pool                                               204G  20.3G        0B     96K             0B      20.3G
boot-pool/ROOT                                          204G  20.2G        0B     96K             0B      20.2G
boot-pool/ROOT/24.10.0                                  204G  2.93G       88K    168M             0B      2.76G
boot-pool/ROOT/24.10.0/audit                            204G    60K        0B     60K             0B         0B
boot-pool/ROOT/24.10.0/conf                             204G  6.83M        0B   6.83M             0B         0B
boot-pool/ROOT/24.10.0/data                             204G   104K        0B    104K             0B         0B
boot-pool/ROOT/24.10.0/etc                              204G  7.52M     1.08M   6.44M             0B         0B
boot-pool/ROOT/24.10.0/home                             204G     0B        0B      0B             0B         0B
boot-pool/ROOT/24.10.0/mnt                              204G   104K        0B    104K             0B         0B
boot-pool/ROOT/24.10.0/opt                              204G    96K        0B     96K             0B         0B
boot-pool/ROOT/24.10.0/root                             204G     8K        0B      8K             0B         0B
boot-pool/ROOT/24.10.0/usr                              204G  2.67G     2.09M   2.67G             0B         0B
boot-pool/ROOT/24.10.0/var                              204G  82.4M     2.30M   75.8M             0B      4.28M
boot-pool/ROOT/24.10.0/var/ca-certificates              204G    96K        0B     96K             0B         0B
boot-pool/ROOT/24.10.0/var/log                          204G  4.19M        0B    264K             0B      3.93M
boot-pool/ROOT/24.10.0/var/log/journal                  204G  3.93M        0B   3.93M             0B         0B
boot-pool/ROOT/24.10.2                                  204G  2.79G      144M    165M             0B      2.49G
boot-pool/ROOT/24.10.2.2                                204G  2.65G        8K    165M             0B      2.48G
boot-pool/ROOT/24.10.2.2/audit                          204G    72K        0B     72K             0B         0B
boot-pool/ROOT/24.10.2.2/conf                           204G  6.82M        0B   6.82M             0B         0B
boot-pool/ROOT/24.10.2.2/data                           204G    96K        0B     96K             0B         0B
boot-pool/ROOT/24.10.2.2/etc                            204G  7.42M      968K   6.48M             0B         0B
boot-pool/ROOT/24.10.2.2/home                           204G     0B        0B      0B             0B         0B
boot-pool/ROOT/24.10.2.2/mnt                            204G   112K        0B    112K             0B         0B
boot-pool/ROOT/24.10.2.2/opt                            204G    96K        0B     96K             0B         0B
boot-pool/ROOT/24.10.2.2/root                           204G     8K        0B      8K             0B         0B
boot-pool/ROOT/24.10.2.2/usr                            204G  2.40G        0B   2.40G             0B         0B
boot-pool/ROOT/24.10.2.2/var                            204G  68.0M      940K   33.6M             0B      33.5M
boot-pool/ROOT/24.10.2.2/var/ca-certificates            204G    96K        0B     96K             0B         0B
boot-pool/ROOT/24.10.2.2/var/log                        204G  33.4M        0B    268K             0B      33.1M
boot-pool/ROOT/24.10.2.2/var/log/journal                204G  33.1M        0B   33.1M             0B         0B
boot-pool/ROOT/24.10.2.3                                204G  2.63G        8K    165M             0B      2.47G
boot-pool/ROOT/24.10.2.3/audit                          204G    72K        0B     72K             0B         0B
boot-pool/ROOT/24.10.2.3/conf                           204G  6.81M        0B   6.81M             0B         0B
boot-pool/ROOT/24.10.2.3/data                           204G    96K        0B     96K             0B         0B
boot-pool/ROOT/24.10.2.3/etc                            204G  7.40M      952K   6.47M             0B         0B
boot-pool/ROOT/24.10.2.3/home                           204G     0B        0B      0B             0B         0B
boot-pool/ROOT/24.10.2.3/mnt                            204G   104K        0B    104K             0B         0B
boot-pool/ROOT/24.10.2.3/opt                            204G    96K        0B     96K             0B         0B
boot-pool/ROOT/24.10.2.3/root                           204G     8K        0B      8K             0B         0B
boot-pool/ROOT/24.10.2.3/usr                            204G  2.40G        0B   2.40G             0B         0B
boot-pool/ROOT/24.10.2.3/var                            204G  51.4M      948K     33M             0B      17.5M
boot-pool/ROOT/24.10.2.3/var/ca-certificates            204G    96K        0B     96K             0B         0B
boot-pool/ROOT/24.10.2.3/var/log                        204G  17.4M        0B    276K             0B      17.2M
boot-pool/ROOT/24.10.2.3/var/log/journal                204G  17.2M        0B   17.2M             0B         0B
boot-pool/ROOT/24.10.2.4                                204G  2.66G        8K    165M             0B      2.50G
boot-pool/ROOT/24.10.2.4/audit                          204G   108K        0B    108K             0B         0B
boot-pool/ROOT/24.10.2.4/conf                           204G  6.82M        0B   6.82M             0B         0B
boot-pool/ROOT/24.10.2.4/data                           204G   104K        0B    104K             0B         0B
boot-pool/ROOT/24.10.2.4/etc                            204G  7.40M      968K   6.45M             0B         0B
boot-pool/ROOT/24.10.2.4/home                           204G     0B        0B      0B             0B         0B
boot-pool/ROOT/24.10.2.4/mnt                            204G   112K        0B    112K             0B         0B
boot-pool/ROOT/24.10.2.4/opt                            204G    96K        0B     96K             0B         0B
boot-pool/ROOT/24.10.2.4/root                           204G     8K        0B      8K             0B         0B
boot-pool/ROOT/24.10.2.4/usr                            204G  2.40G        0B   2.40G             0B         0B
boot-pool/ROOT/24.10.2.4/var                            204G  86.4M     1.14M   34.4M             0B      50.8M
boot-pool/ROOT/24.10.2.4/var/ca-certificates            204G    96K        0B     96K             0B         0B
boot-pool/ROOT/24.10.2.4/var/log                        204G  50.7M        0B    308K             0B      50.4M
boot-pool/ROOT/24.10.2.4/var/log/journal                204G  50.4M        0B   50.4M             0B         0B
boot-pool/ROOT/24.10.2/audit                            204G    72K        0B     72K             0B         0B
boot-pool/ROOT/24.10.2/conf                             204G  6.82M        0B   6.82M             0B         0B
boot-pool/ROOT/24.10.2/data                             204G   104K        0B    104K             0B         0B
boot-pool/ROOT/24.10.2/etc                              204G  7.36M     1012K   6.38M             0B         0B
boot-pool/ROOT/24.10.2/home                             204G     0B        0B      0B             0B         0B
boot-pool/ROOT/24.10.2/mnt                              204G   104K        0B    104K             0B         0B
boot-pool/ROOT/24.10.2/opt                              204G    96K        0B     96K             0B         0B
boot-pool/ROOT/24.10.2/root                             204G     8K        0B      8K             0B         0B
boot-pool/ROOT/24.10.2/usr                              204G  2.39G        0B   2.39G             0B         0B
boot-pool/ROOT/24.10.2/var                              204G  85.3M     1.22M   33.4M             0B      50.7M
boot-pool/ROOT/24.10.2/var/ca-certificates              204G    96K        0B     96K             0B         0B
boot-pool/ROOT/24.10.2/var/log                          204G  50.6M        0B    264K             0B      50.3M
boot-pool/ROOT/24.10.2/var/log/journal                  204G  50.3M        0B   50.3M             0B         0B
boot-pool/ROOT/25.04.2.6                                204G  2.83G        8K    176M             0B      2.66G
boot-pool/ROOT/25.04.2.6/audit                          204G   188K        0B    188K             0B         0B
boot-pool/ROOT/25.04.2.6/conf                           204G  7.15M        0B   7.15M             0B         0B
boot-pool/ROOT/25.04.2.6/data                           204G   108K        0B    108K             0B         0B
boot-pool/ROOT/25.04.2.6/etc                            204G  7.71M     1.11M   6.61M             0B         0B
boot-pool/ROOT/25.04.2.6/home                           204G     0B        0B      0B             0B         0B
boot-pool/ROOT/25.04.2.6/mnt                            204G   104K        0B    104K             0B         0B
boot-pool/ROOT/25.04.2.6/opt                            204G    96K        0B     96K             0B         0B
boot-pool/ROOT/25.04.2.6/root                           204G     8K        0B      8K             0B         0B
boot-pool/ROOT/25.04.2.6/usr                            204G  2.56G        0B   2.56G             0B         0B
boot-pool/ROOT/25.04.2.6/var                            204G  80.4M      860K   5.21M             0B      74.4M
boot-pool/ROOT/25.04.2.6/var/ca-certificates            204G    96K        0B     96K             0B         0B
boot-pool/ROOT/25.04.2.6/var/lib                        204G  29.7M      444K   29.2M             0B        96K
boot-pool/ROOT/25.04.2.6/var/lib/incus                  204G    96K        0B     96K             0B         0B
boot-pool/ROOT/25.04.2.6/var/log                        204G  44.6M        0B    384K             0B      44.2M
boot-pool/ROOT/25.04.2.6/var/log/journal                204G  44.2M        0B   44.2M             0B         0B
boot-pool/ROOT/25.10.1                                  204G  3.75G        8K    104M             0B      3.65G
boot-pool/ROOT/25.10.1/audit                            204G  8.78M     5.27M   3.50M             0B         0B
boot-pool/ROOT/25.10.1/conf                             204G  7.54M        0B   7.54M             0B         0B
boot-pool/ROOT/25.10.1/data                             204G  1.79M     1.48M    308K             0B         0B
boot-pool/ROOT/25.10.1/etc                              204G  7.57M     1.05M   6.52M             0B         0B
boot-pool/ROOT/25.10.1/home                             204G   556M      456K    556M             0B         0B
boot-pool/ROOT/25.10.1/mnt                              204G   104K        0B    104K             0B         0B
boot-pool/ROOT/25.10.1/opt                              204G  4.65M        0B   4.65M             0B         0B
boot-pool/ROOT/25.10.1/root                             204G   700K      488K    212K             0B         0B
boot-pool/ROOT/25.10.1/usr                              204G  2.88G        0B   2.88G             0B         0B
boot-pool/ROOT/25.10.1/var                              204G   198M      876K   5.52M             0B       192M
boot-pool/ROOT/25.10.1/var/ca-certificates              204G    96K        0B     96K             0B         0B
boot-pool/ROOT/25.10.1/var/lib                          204G  33.6M      320K   33.2M             0B        96K
boot-pool/ROOT/25.10.1/var/lib/incus                    204G    96K        0B     96K             0B         0B
boot-pool/ROOT/25.10.1/var/log                          204G   158M     67.7M   39.9M             0B      50.5M
boot-pool/ROOT/25.10.1/var/log/journal                  204G  50.5M        0B   50.5M             0B         0B
boot-pool/grub                                          204G  9.05M        0B   9.05M             0B         0B

This is what sounds most likely, but I don’t know how. Further explanation: In FileBrowser I have the whole /mnt folder mounted. So I can see both /HDDs and /SSDs and the datasets that reside in them. I created a dataset named Share and I immediately was able to add data to it (in HDDs/Share). After declaring it an SMB share and updating the ACL, the share was still there, but the data was gone.
Note that the TrueNas dataset UI showed 30 GB usage for the Share dataset before I changed it to an SMB share. So I definitely uploaded it to the correct place.

truenas_admin@HEXstor[~]$ zfs mount | grep /mnt/HDDs

HDDs                            /mnt/HDDs
HDDs/Applications               /mnt/HDDs/Applications
HDDs/Comics                     /mnt/HDDs/Comics
HDDs/Media                      /mnt/HDDs/Media
HDDs/Documents                  /mnt/HDDs/Documents
HDDs/Movies                     /mnt/HDDs/Movies
HDDs/Videos                     /mnt/HDDs/Videos
HDDs/Shows                      /mnt/HDDs/Shows
HDDs/Books                      /mnt/HDDs/Books
HDDs/Applications/mesh-organizer  /mnt/HDDs/Applications/mesh-organizer
HDDs/Software                   /mnt/HDDs/Software
HDDs/Audiobooks                 /mnt/HDDs/Audiobooks
HDDs/Photos                     /mnt/HDDs/Photos
HDDs/Applications/booklore      /mnt/HDDs/Applications/booklore
HDDs/Applications/booklore/books  /mnt/HDDs/Applications/booklore/books
HDDs/Applications/firefly       /mnt/HDDs/Applications/firefly
HDDs/Applications/opencloud     /mnt/HDDs/Applications/opencloud
HDDs/Music                      /mnt/HDDs/Music
HDDs/Applications/immich        /mnt/HDDs/Applications/immich
HDDs/Applications/paperless     /mnt/HDDs/Applications/paperless
HDDs/Applications/jdownloader2  /mnt/HDDs/Applications/jdownloader2
HDDs/Applications/mesh-organizer/data  /mnt/HDDs/Applications/mesh-organizer/data
HDDs/Applications/plex          /mnt/HDDs/Applications/plex
HDDs/Podcasts                   /mnt/HDDs/Podcasts
HDDs/Files                      /mnt/HDDs/Files
HDDs/Applications/booklore/bookdrop  /mnt/HDDs/Applications/booklore/bookdrop
HDDs/Applications/romm          /mnt/HDDs/Applications/romm
HDDs/Applications/paperless/consume  /mnt/HDDs/Applications/paperless/consume
HDDs/Applications/paperless/data  /mnt/HDDs/Applications/paperless/data
HDDs/Applications/opencloud/data  /mnt/HDDs/Applications/opencloud/data
HDDs/Applications/plex/logs     /mnt/HDDs/Applications/plex/logs
HDDs/Applications/paperless/media  /mnt/HDDs/Applications/paperless/media
HDDs/Applications/immich/encoded_videos  /mnt/HDDs/Applications/immich/encoded_videos
HDDs/Applications/paperless/trash  /mnt/HDDs/Applications/paperless/trash
HDDs/Applications/paperless-ngx  /mnt/HDDs/Applications/paperless-ngx
HDDs/Applications/firefly/uploads  /mnt/HDDs/Applications/firefly/uploads
HDDs/Applications/immich/uploads  /mnt/HDDs/Applications/immich/uploads
HDDs/Applications/jdownloader2/downloads  /mnt/HDDs/Applications/jdownloader2/downloads
HDDs/Applications/paperless/db  /mnt/HDDs/Applications/paperless/db
HDDs/Applications/paperless-ngx/consume  /mnt/HDDs/Applications/paperless-ngx/consume
HDDs/Applications/immich/data   /mnt/HDDs/Applications/immich/data
HDDs/Applications/paperless-ngx/media  /mnt/HDDs/Applications/paperless-ngx/media
HDDs/Applications/romm/library  /mnt/HDDs/Applications/romm/library
HDDs/Share                      /mnt/HDDs/Share
truenas_admin@HEXstor[~]$ zfs list -t fs,vol -r -o space,mountpoint

NAME                                                   AVAIL   USED  USEDSNAP  USEDDS  USEDREFRESERV  USEDCHILD  MOUNTPOINT
HDDs                                                   21.5T  3.78T        0B   37.9G             0B      3.74T  /mnt/HDDs
HDDs/Applications                                      21.5T  49.3G        0B    160K             0B      49.3G  /mnt/HDDs/Applications
HDDs/Applications/booklore                             21.5T   426K        0B    139K             0B       288K  /mnt/HDDs/Applications/booklore
HDDs/Applications/booklore/bookdrop                    21.5T   160K        0B    160K             0B         0B  /mnt/HDDs/Applications/booklore/bookdrop
HDDs/Applications/booklore/books                       21.5T   128K        0B    128K             0B         0B  /mnt/HDDs/Applications/booklore/books
HDDs/Applications/firefly                              21.5T   256K        0B    128K             0B       128K  /mnt/HDDs/Applications/firefly
HDDs/Applications/firefly/uploads                      21.5T   128K        0B    128K             0B         0B  /mnt/HDDs/Applications/firefly/uploads
HDDs/Applications/immich                               21.5T  43.4G        0B    139K             0B      43.4G  /mnt/HDDs/Applications/immich
HDDs/Applications/immich/data                          21.5T   192K        0B    192K             0B         0B  /mnt/HDDs/Applications/immich/data
HDDs/Applications/immich/encoded_videos                21.5T  34.0G     9.75M   34.0G             0B         0B  /mnt/HDDs/Applications/immich/encoded_videos
HDDs/Applications/immich/uploads                       21.5T  9.40G     3.77M   9.39G             0B         0B  /mnt/HDDs/Applications/immich/uploads
HDDs/Applications/jdownloader2                         21.5T  4.36G        0B    128K             0B      4.36G  /mnt/HDDs/Applications/jdownloader2
HDDs/Applications/jdownloader2/downloads               21.5T  4.36G        0B   4.36G             0B         0B  /mnt/HDDs/Applications/jdownloader2/downloads
HDDs/Applications/mesh-organizer                       21.5T  15.1M        0B    128K             0B      14.9M  /mnt/HDDs/Applications/mesh-organizer
HDDs/Applications/mesh-organizer/data                  21.5T  14.9M     1.47M   13.5M             0B         0B  /mnt/HDDs/Applications/mesh-organizer/data
HDDs/Applications/opencloud                            21.5T   517K        0B    128K             0B       389K  /mnt/HDDs/Applications/opencloud
HDDs/Applications/opencloud/data                       21.5T   389K        0B    389K             0B         0B  /mnt/HDDs/Applications/opencloud/data
HDDs/Applications/paperless                            21.5T   786M        0B    160K             0B       786M  /mnt/HDDs/Applications/paperless
HDDs/Applications/paperless-ngx                        21.5T   794M        0B    139K             0B       794M  /mnt/HDDs/Applications/paperless-ngx
HDDs/Applications/paperless-ngx/consume                21.5T   128K        0B    128K             0B         0B  /mnt/HDDs/Applications/paperless-ngx/consume
HDDs/Applications/paperless-ngx/media                  21.5T   794M      160K    794M             0B         0B  /mnt/HDDs/Applications/paperless-ngx/media
HDDs/Applications/paperless/consume                    21.5T   128K        0B    128K             0B         0B  /mnt/HDDs/Applications/paperless/consume
HDDs/Applications/paperless/data                       21.5T  51.4M        0B   51.4M             0B         0B  /mnt/HDDs/Applications/paperless/data
HDDs/Applications/paperless/db                         21.5T  27.7M        0B   27.7M             0B         0B  /mnt/HDDs/Applications/paperless/db
HDDs/Applications/paperless/media                      21.5T   684M        0B    684M             0B         0B  /mnt/HDDs/Applications/paperless/media
HDDs/Applications/paperless/trash                      21.5T  22.2M        0B   22.2M             0B         0B  /mnt/HDDs/Applications/paperless/trash
HDDs/Applications/plex                                 21.5T  18.2M        0B    128K             0B      18.1M  /mnt/HDDs/Applications/plex
HDDs/Applications/plex/logs                            21.5T  18.1M     5.77M   12.3M             0B         0B  /mnt/HDDs/Applications/plex/logs
HDDs/Applications/romm                                 21.5T  25.7M        0B    128K             0B      25.6M  /mnt/HDDs/Applications/romm
HDDs/Applications/romm/library                         21.5T  25.6M        0B   25.6M             0B         0B  /mnt/HDDs/Applications/romm/library
HDDs/Audiobooks                                        21.5T   170G        0B    170G             0B         0B  /mnt/HDDs/Audiobooks
HDDs/Books                                             21.5T  50.9M        0B   50.9M             0B         0B  /mnt/HDDs/Books
HDDs/Comics                                            21.5T  12.4G        0B   12.4G             0B         0B  /mnt/HDDs/Comics
HDDs/Documents                                         21.5T   144K        0B    144K             0B         0B  /mnt/HDDs/Documents
HDDs/Files                                             21.5T   479G      437K    479G             0B         0B  /mnt/HDDs/Files
HDDs/Media                                             21.5T   350G        0B    350G             0B         0B  /mnt/HDDs/Media
HDDs/Movies                                            21.5T  1.87T        0B   1.87T             0B         0B  /mnt/HDDs/Movies
HDDs/Music                                             21.5T  14.0G        0B   14.0G             0B         0B  /mnt/HDDs/Music
HDDs/Photos                                            21.5T   230G     21.5M    230G             0B         0B  /mnt/HDDs/Photos
HDDs/Podcasts                                          21.5T  66.5G        0B   66.5G             0B         0B  /mnt/HDDs/Podcasts
HDDs/Share                                             21.5T   181K        0B    181K             0B         0B  /mnt/HDDs/Share
HDDs/Shows                                             21.5T   411G        0B    411G             0B         0B  /mnt/HDDs/Shows
HDDs/Software                                          21.5T  81.6G        0B   81.6G             0B         0B  /mnt/HDDs/Software
HDDs/Videos                                            21.5T  51.9G        0B   51.9G             0B         0B  /mnt/HDDs/Videos
SSDs                                                    617G   283G        0B     96K             0B       283G  /mnt/SSDs
SSDs/.system                                            617G  2.20G        0B   1.79G             0B       422M  legacy
SSDs/.system/configs-ae32c386e13840b2bf9c0083275e7941   617G  19.2M        0B   19.2M             0B         0B  legacy
SSDs/.system/cores                                     1024M   120K        0B    120K             0B         0B  legacy
SSDs/.system/netdata-ae32c386e13840b2bf9c0083275e7941   617G   401M        0B    401M             0B         0B  legacy
SSDs/.system/nfs                                        617G   104K        0B    104K             0B         0B  legacy
SSDs/.system/samba4                                     617G  1.69M     1.16M    544K             0B         0B  legacy
SSDs/.system/vm                                         617G   108K        0B    108K             0B         0B  legacy
SSDs/Applications                                       617G  21.1G       72K    120K             0B      21.1G  /mnt/SSDs/Applications
SSDs/Applications/audiobookshelf                        617G  5.37G        0B    104K             0B      5.37G  /mnt/SSDs/Applications/audiobookshelf
SSDs/Applications/audiobookshelf/config                 617G  25.9M     16.1M   9.79M             0B         0B  /mnt/SSDs/Applications/audiobookshelf/config
SSDs/Applications/audiobookshelf/metadata               617G  5.35G     2.15G   3.20G             0B         0B  /mnt/SSDs/Applications/audiobookshelf/metadata
SSDs/Applications/booklore                              617G  9.09M     1.79M   5.58M             0B      1.72M  /mnt/SSDs/Applications/booklore
SSDs/Applications/booklore/data                         617G  1.63M        0B   1.63M             0B         0B  /mnt/SSDs/Applications/booklore/data
SSDs/Applications/booklore/database                     617G    96K        0B     96K             0B         0B  /mnt/SSDs/Applications/booklore/database
SSDs/Applications/dockge                                617G   504K        0B    104K             0B       400K  /mnt/SSDs/Applications/dockge
SSDs/Applications/dockge/data                           617G   112K        0B    112K             0B         0B  /mnt/SSDs/Applications/dockge/data
SSDs/Applications/dockge/stacks                         617G   288K       80K    208K             0B         0B  /mnt/SSDs/Applications/dockge/stacks
SSDs/Applications/filebrowser                           617G   384K        0B     96K             0B       288K  /mnt/SSDs/Applications/filebrowser
SSDs/Applications/filebrowser/config                    617G   288K      180K    108K             0B         0B  /mnt/SSDs/Applications/filebrowser/config
SSDs/Applications/firefly                               617G  26.5M        0B    104K             0B      26.4M  /mnt/SSDs/Applications/firefly
SSDs/Applications/firefly/postgres_data                 617G  26.4M     3.00M   23.4M             0B         0B  /mnt/SSDs/Applications/firefly/postgres_data
SSDs/Applications/fredy                                 617G   296K        0B    104K             0B       192K  /mnt/SSDs/Applications/fredy
SSDs/Applications/fredy/config                          617G    96K        0B     96K             0B         0B  /mnt/SSDs/Applications/fredy/config
SSDs/Applications/fredy/database                        617G    96K        0B     96K             0B         0B  /mnt/SSDs/Applications/fredy/database
SSDs/Applications/gethomepage                           617G  1.02M        0B    104K             0B       940K  /mnt/SSDs/Applications/gethomepage
SSDs/Applications/gethomepage/config                    617G   236K        0B    236K             0B         0B  /mnt/SSDs/Applications/gethomepage/config
SSDs/Applications/gethomepage/images                    617G   704K        0B    704K             0B         0B  /mnt/SSDs/Applications/gethomepage/images
SSDs/Applications/gramps                                617G  2.76M        0B   1.12M             0B      1.64M  /mnt/SSDs/Applications/gramps
SSDs/Applications/gramps/cache                          617G    96K        0B     96K             0B         0B  /mnt/SSDs/Applications/gramps/cache
SSDs/Applications/gramps/database                       617G   188K        0B    188K             0B         0B  /mnt/SSDs/Applications/gramps/database
SSDs/Applications/gramps/index                          617G   112K        0B    112K             0B         0B  /mnt/SSDs/Applications/gramps/index
SSDs/Applications/gramps/media                          617G    96K        0B     96K             0B         0B  /mnt/SSDs/Applications/gramps/media
SSDs/Applications/gramps/secret                         617G    96K        0B     96K             0B         0B  /mnt/SSDs/Applications/gramps/secret
SSDs/Applications/gramps/thumbnail_cache                617G    96K        0B     96K             0B         0B  /mnt/SSDs/Applications/gramps/thumbnail_cache
SSDs/Applications/gramps/tmp                            617G   896K      784K    112K             0B         0B  /mnt/SSDs/Applications/gramps/tmp
SSDs/Applications/gramps/users                          617G   100K        0B    100K             0B         0B  /mnt/SSDs/Applications/gramps/users
SSDs/Applications/homeassistant                         617G  14.1M        0B    112K             0B      14.0M  /mnt/SSDs/Applications/homeassistant
SSDs/Applications/homeassistant/avahi-config            617G    96K        0B     96K             0B         0B  /mnt/SSDs/Applications/homeassistant/avahi-config
SSDs/Applications/homeassistant/config                  617G   280K        0B    280K             0B         0B  /mnt/SSDs/Applications/homeassistant/config
SSDs/Applications/homeassistant/media                   617G    96K        0B     96K             0B         0B  /mnt/SSDs/Applications/homeassistant/media
SSDs/Applications/homeassistant/postgres                617G  13.5M        0B   13.5M             0B         0B  /mnt/SSDs/Applications/homeassistant/postgres
SSDs/Applications/homepage                              617G   368K        0B    104K             0B       264K  /mnt/SSDs/Applications/homepage
SSDs/Applications/homepage/config                       617G   168K        0B    168K             0B         0B  /mnt/SSDs/Applications/homepage/config
SSDs/Applications/homepage/images                       617G    96K        0B     96K             0B         0B  /mnt/SSDs/Applications/homepage/images
SSDs/Applications/immich                                617G  13.3G        0B    112K             0B      13.3G  /mnt/SSDs/Applications/immich
SSDs/Applications/immich/postgres_data                  617G   716M      143M    573M             0B         0B  /mnt/SSDs/Applications/immich/postgres_data
SSDs/Applications/immich/profile                        617G    96K        0B     96K             0B         0B  /mnt/SSDs/Applications/immich/profile
SSDs/Applications/immich/thumbs                         617G  12.6G     8.92M   12.6G             0B         0B  /mnt/SSDs/Applications/immich/thumbs
SSDs/Applications/jdownloader2                          617G   848K        0B     96K             0B       752K  /mnt/SSDs/Applications/jdownloader2
SSDs/Applications/jdownloader2/config                   617G   752K        0B    752K             0B         0B  /mnt/SSDs/Applications/jdownloader2/config
SSDs/Applications/komga                                 617G  7.60M        0B     96K             0B      7.51M  /mnt/SSDs/Applications/komga
SSDs/Applications/komga/config                          617G  7.51M        0B   7.51M             0B         0B  /mnt/SSDs/Applications/komga/config
SSDs/Applications/mealie                                617G  42.9M        0B     96K             0B      42.8M  /mnt/SSDs/Applications/mealie
SSDs/Applications/mealie/data                           617G  18.2M     2.54M   15.6M             0B         0B  /mnt/SSDs/Applications/mealie/data
SSDs/Applications/mealie/db                             617G  24.7M      636K   24.0M             0B         0B  /mnt/SSDs/Applications/mealie/db
SSDs/Applications/mosquitto                             617G   400K        0B    112K             0B       288K  /mnt/SSDs/Applications/mosquitto
SSDs/Applications/mosquitto/config                      617G    96K        0B     96K             0B         0B  /mnt/SSDs/Applications/mosquitto/config
SSDs/Applications/mosquitto/data                        617G    96K        0B     96K             0B         0B  /mnt/SSDs/Applications/mosquitto/data
SSDs/Applications/mosquitto/log                         617G    96K        0B     96K             0B         0B  /mnt/SSDs/Applications/mosquitto/log
SSDs/Applications/nginx                                 617G  29.3M        0B    104K             0B      29.2M  /mnt/SSDs/Applications/nginx
SSDs/Applications/nginx/certs                           617G   404K      132K    272K             0B         0B  /mnt/SSDs/Applications/nginx/certs
SSDs/Applications/nginx/data                            617G  28.8M     11.2M   17.7M             0B         0B  /mnt/SSDs/Applications/nginx/data
SSDs/Applications/notemark                              617G   208K        0B     96K             0B       112K  /mnt/SSDs/Applications/notemark
SSDs/Applications/notemark/data                         617G   112K        0B    112K             0B         0B  /mnt/SSDs/Applications/notemark/data
SSDs/Applications/opencloud                             617G   324K        0B     96K             0B       228K  /mnt/SSDs/Applications/opencloud
SSDs/Applications/opencloud/config                      617G   132K        0B    132K             0B         0B  /mnt/SSDs/Applications/opencloud/config
SSDs/Applications/opencloud/settings                    617G    96K        0B     96K             0B         0B  /mnt/SSDs/Applications/opencloud/settings
SSDs/Applications/paperless                             617G  25.7M        0B     96K             0B      25.6M  /mnt/SSDs/Applications/paperless
SSDs/Applications/paperless-ngx                         617G   956M        0B    112K             0B       956M  /mnt/SSDs/Applications/paperless-ngx
SSDs/Applications/paperless-ngx/backup                  617G   681M        0B    681M             0B         0B  /mnt/SSDs/Applications/paperless-ngx/backup
SSDs/Applications/paperless-ngx/data                    617G   181M      123M   58.3M             0B         0B  /mnt/SSDs/Applications/paperless-ngx/data
SSDs/Applications/paperless-ngx/export                  617G    96K        0B     96K             0B         0B  /mnt/SSDs/Applications/paperless-ngx/export
SSDs/Applications/paperless-ngx/postgres                617G  92.2M     66.5M   25.8M             0B         0B  /mnt/SSDs/Applications/paperless-ngx/postgres
SSDs/Applications/paperless-ngx/redis                   617G  1.04M      952K    108K             0B         0B  /mnt/SSDs/Applications/paperless-ngx/redis
SSDs/Applications/paperless/database                    617G  25.5M        0B   25.5M             0B         0B  /mnt/SSDs/Applications/paperless/database
SSDs/Applications/paperless/datanbase                   617G    96K        0B     96K             0B         0B  /mnt/SSDs/Applications/paperless/datanbase
SSDs/Applications/pihole                                617G  16.4M        0B    104K             0B      16.3M  /mnt/SSDs/Applications/pihole
SSDs/Applications/pihole/config                         617G  16.2M        0B   16.2M             0B         0B  /mnt/SSDs/Applications/pihole/config
SSDs/Applications/pihole/dnsmasq                        617G    96K        0B     96K             0B         0B  /mnt/SSDs/Applications/pihole/dnsmasq
SSDs/Applications/plex                                  617G  1.31G        0B    112K             0B      1.31G  /mnt/SSDs/Applications/plex
SSDs/Applications/plex/config                           617G  1.31G      150M   1.17G             0B         0B  /mnt/SSDs/Applications/plex/config
SSDs/Applications/plex/data                             617G    96K        0B     96K             0B         0B  /mnt/SSDs/Applications/plex/data
SSDs/Applications/plex/transcode                        617G  1.33M     1.20M    128K             0B         0B  /mnt/SSDs/Applications/plex/transcode
SSDs/Applications/romm                                  617G  12.1M        0B    120K             0B      12.0M  /mnt/SSDs/Applications/romm
SSDs/Applications/romm/assets                           617G    96K        0B     96K             0B         0B  /mnt/SSDs/Applications/romm/assets
SSDs/Applications/romm/config                           617G    96K        0B     96K             0B         0B  /mnt/SSDs/Applications/romm/config
SSDs/Applications/romm/postgres                         617G  10.1M        0B   10.1M             0B         0B  /mnt/SSDs/Applications/romm/postgres
SSDs/Applications/romm/resources                        617G  1.67M        0B   1.67M             0B         0B  /mnt/SSDs/Applications/romm/resources
SSDs/Applications/tailscale                             617G  30.9M        0B     96K             0B      30.8M  /mnt/SSDs/Applications/tailscale
SSDs/Applications/tailscale/config                      617G  30.8M     21.7M   9.14M             0B         0B  /mnt/SSDs/Applications/tailscale/config
SSDs/Applications/wallos                                617G  1.53M        0B    104K             0B      1.43M  /mnt/SSDs/Applications/wallos
SSDs/Applications/wallos/db                             617G  1.27M     1.16M    120K             0B         0B  /mnt/SSDs/Applications/wallos/db
SSDs/Applications/wallos/logos                          617G   160K        0B    160K             0B         0B  /mnt/SSDs/Applications/wallos/logos
SSDs/Applications/zennotes                              617G  20.4M     14.4M   3.15M             0B      2.83M  /mnt/SSDs/Applications/zennotes
SSDs/Applications/zennotes/data                         617G  2.73M     2.40M    344K             0B         0B  /mnt/SSDs/Applications/zennotes/data
SSDs/Applications/zennotes/images                       617G    96K        0B     96K             0B         0B  /mnt/SSDs/Applications/zennotes/images
SSDs/Applications/zigbee2mqtt                           617G   196K        0B     96K             0B       100K  /mnt/SSDs/Applications/zigbee2mqtt
SSDs/Applications/zigbee2mqtt/data                      617G   100K        0B    100K             0B         0B  /mnt/SSDs/Applications/zigbee2mqtt/data
SSDs/VMs                                                617G  48.8G        0B     96K             0B      48.8G  /mnt/SSDs/VMs
SSDs/VMs/homeassistant                                  662G  48.8G        0B   3.71G          45.1G         0B  -
SSDs/ix-apps                                            617G   210G       84K    200K             0B       210G  /mnt/.ix-apps
SSDs/ix-apps/app_configs                                617G   189M     23.2M    166M             0B         0B  /mnt/.ix-apps/app_configs
SSDs/ix-apps/app_mounts                                 617G  26.3G       64K     96K             0B      26.3G  /mnt/.ix-apps/app_mounts
SSDs/ix-apps/app_mounts/hexos                           617G   484K        0B     96K             0B       388K  /mnt/.ix-apps/app_mounts/hexos
SSDs/ix-apps/app_mounts/hexos/hexos_data                617G   388K      260K    128K             0B         0B  /mnt/.ix-apps/app_mounts/hexos/hexos_data
SSDs/ix-apps/app_mounts/immich                          617G  26.3G        0B     96K             0B      26.3G  /mnt/.ix-apps/app_mounts/immich
SSDs/ix-apps/app_mounts/immich/backups                  617G  26.3G     23.1G   3.23G             0B         0B  /mnt/.ix-apps/app_mounts/immich/backups
SSDs/ix-apps/docker                                     617G   183G        0B    183G             0B         0B  /mnt/.ix-apps/docker
SSDs/ix-apps/truenas_catalog                            617G   473M        0B    473M             0B         0B  /mnt/.ix-apps/truenas_catalog
boot-pool                                               204G  20.3G        0B     96K             0B      20.3G  none
boot-pool/ROOT                                          204G  20.2G        0B     96K             0B      20.2G  none
boot-pool/ROOT/24.10.0                                  204G  2.93G       88K    168M             0B      2.76G  legacy
boot-pool/ROOT/24.10.0/audit                            204G    60K        0B     60K             0B         0B  /audit
boot-pool/ROOT/24.10.0/conf                             204G  6.83M        0B   6.83M             0B         0B  /conf
boot-pool/ROOT/24.10.0/data                             204G   104K        0B    104K             0B         0B  /data
boot-pool/ROOT/24.10.0/etc                              204G  7.52M     1.08M   6.44M             0B         0B  /etc
boot-pool/ROOT/24.10.0/home                             204G     0B        0B      0B             0B         0B  /home
boot-pool/ROOT/24.10.0/mnt                              204G   104K        0B    104K             0B         0B  /mnt
boot-pool/ROOT/24.10.0/opt                              204G    96K        0B     96K             0B         0B  /opt
boot-pool/ROOT/24.10.0/root                             204G     8K        0B      8K             0B         0B  /root
boot-pool/ROOT/24.10.0/usr                              204G  2.67G     2.09M   2.67G             0B         0B  /usr
boot-pool/ROOT/24.10.0/var                              204G  82.4M     2.30M   75.8M             0B      4.28M  /var
boot-pool/ROOT/24.10.0/var/ca-certificates              204G    96K        0B     96K             0B         0B  /var/local/ca-certificates
boot-pool/ROOT/24.10.0/var/log                          204G  4.19M        0B    264K             0B      3.93M  /var/log
boot-pool/ROOT/24.10.0/var/log/journal                  204G  3.93M        0B   3.93M             0B         0B  /var/log/journal
boot-pool/ROOT/24.10.2                                  204G  2.79G      144M    165M             0B      2.49G  legacy
boot-pool/ROOT/24.10.2.2                                204G  2.65G        8K    165M             0B      2.48G  legacy
boot-pool/ROOT/24.10.2.2/audit                          204G    72K        0B     72K             0B         0B  /audit
boot-pool/ROOT/24.10.2.2/conf                           204G  6.82M        0B   6.82M             0B         0B  /conf
boot-pool/ROOT/24.10.2.2/data                           204G    96K        0B     96K             0B         0B  /data
boot-pool/ROOT/24.10.2.2/etc                            204G  7.42M      968K   6.48M             0B         0B  /etc
boot-pool/ROOT/24.10.2.2/home                           204G     0B        0B      0B             0B         0B  /home
boot-pool/ROOT/24.10.2.2/mnt                            204G   112K        0B    112K             0B         0B  /mnt
boot-pool/ROOT/24.10.2.2/opt                            204G    96K        0B     96K             0B         0B  /opt
boot-pool/ROOT/24.10.2.2/root                           204G     8K        0B      8K             0B         0B  /root
boot-pool/ROOT/24.10.2.2/usr                            204G  2.40G        0B   2.40G             0B         0B  /usr
boot-pool/ROOT/24.10.2.2/var                            204G  68.0M      940K   33.6M             0B      33.5M  /var
boot-pool/ROOT/24.10.2.2/var/ca-certificates            204G    96K        0B     96K             0B         0B  /var/local/ca-certificates
boot-pool/ROOT/24.10.2.2/var/log                        204G  33.4M        0B    268K             0B      33.1M  /var/log
boot-pool/ROOT/24.10.2.2/var/log/journal                204G  33.1M        0B   33.1M             0B         0B  /var/log/journal
boot-pool/ROOT/24.10.2.3                                204G  2.63G        8K    165M             0B      2.47G  legacy
boot-pool/ROOT/24.10.2.3/audit                          204G    72K        0B     72K             0B         0B  /audit
boot-pool/ROOT/24.10.2.3/conf                           204G  6.81M        0B   6.81M             0B         0B  /conf
boot-pool/ROOT/24.10.2.3/data                           204G    96K        0B     96K             0B         0B  /data
boot-pool/ROOT/24.10.2.3/etc                            204G  7.40M      952K   6.47M             0B         0B  /etc
boot-pool/ROOT/24.10.2.3/home                           204G     0B        0B      0B             0B         0B  /home
boot-pool/ROOT/24.10.2.3/mnt                            204G   104K        0B    104K             0B         0B  /mnt
boot-pool/ROOT/24.10.2.3/opt                            204G    96K        0B     96K             0B         0B  /opt
boot-pool/ROOT/24.10.2.3/root                           204G     8K        0B      8K             0B         0B  /root
boot-pool/ROOT/24.10.2.3/usr                            204G  2.40G        0B   2.40G             0B         0B  /usr
boot-pool/ROOT/24.10.2.3/var                            204G  51.4M      948K     33M             0B      17.5M  /var
boot-pool/ROOT/24.10.2.3/var/ca-certificates            204G    96K        0B     96K             0B         0B  /var/local/ca-certificates
boot-pool/ROOT/24.10.2.3/var/log                        204G  17.4M        0B    276K             0B      17.2M  /var/log
boot-pool/ROOT/24.10.2.3/var/log/journal                204G  17.2M        0B   17.2M             0B         0B  /var/log/journal
boot-pool/ROOT/24.10.2.4                                204G  2.66G        8K    165M             0B      2.50G  legacy
boot-pool/ROOT/24.10.2.4/audit                          204G   108K        0B    108K             0B         0B  /audit
boot-pool/ROOT/24.10.2.4/conf                           204G  6.82M        0B   6.82M             0B         0B  /conf
boot-pool/ROOT/24.10.2.4/data                           204G   104K        0B    104K             0B         0B  /data
boot-pool/ROOT/24.10.2.4/etc                            204G  7.40M      968K   6.45M             0B         0B  /etc
boot-pool/ROOT/24.10.2.4/home                           204G     0B        0B      0B             0B         0B  /home
boot-pool/ROOT/24.10.2.4/mnt                            204G   112K        0B    112K             0B         0B  /mnt
boot-pool/ROOT/24.10.2.4/opt                            204G    96K        0B     96K             0B         0B  /opt
boot-pool/ROOT/24.10.2.4/root                           204G     8K        0B      8K             0B         0B  /root
boot-pool/ROOT/24.10.2.4/usr                            204G  2.40G        0B   2.40G             0B         0B  /usr
boot-pool/ROOT/24.10.2.4/var                            204G  86.4M     1.14M   34.4M             0B      50.8M  /var
boot-pool/ROOT/24.10.2.4/var/ca-certificates            204G    96K        0B     96K             0B         0B  /var/local/ca-certificates
boot-pool/ROOT/24.10.2.4/var/log                        204G  50.7M        0B    308K             0B      50.4M  /var/log
boot-pool/ROOT/24.10.2.4/var/log/journal                204G  50.4M        0B   50.4M             0B         0B  /var/log/journal
boot-pool/ROOT/24.10.2/audit                            204G    72K        0B     72K             0B         0B  /audit
boot-pool/ROOT/24.10.2/conf                             204G  6.82M        0B   6.82M             0B         0B  /conf
boot-pool/ROOT/24.10.2/data                             204G   104K        0B    104K             0B         0B  /data
boot-pool/ROOT/24.10.2/etc                              204G  7.36M     1012K   6.38M             0B         0B  /etc
boot-pool/ROOT/24.10.2/home                             204G     0B        0B      0B             0B         0B  /home
boot-pool/ROOT/24.10.2/mnt                              204G   104K        0B    104K             0B         0B  /mnt
boot-pool/ROOT/24.10.2/opt                              204G    96K        0B     96K             0B         0B  /opt
boot-pool/ROOT/24.10.2/root                             204G     8K        0B      8K             0B         0B  /root
boot-pool/ROOT/24.10.2/usr                              204G  2.39G        0B   2.39G             0B         0B  /usr
boot-pool/ROOT/24.10.2/var                              204G  85.3M     1.22M   33.4M             0B      50.7M  /var
boot-pool/ROOT/24.10.2/var/ca-certificates              204G    96K        0B     96K             0B         0B  /var/local/ca-certificates
boot-pool/ROOT/24.10.2/var/log                          204G  50.6M        0B    264K             0B      50.3M  /var/log
boot-pool/ROOT/24.10.2/var/log/journal                  204G  50.3M        0B   50.3M             0B         0B  /var/log/journal
boot-pool/ROOT/25.04.2.6                                204G  2.83G        8K    176M             0B      2.66G  legacy
boot-pool/ROOT/25.04.2.6/audit                          204G   188K        0B    188K             0B         0B  /audit
boot-pool/ROOT/25.04.2.6/conf                           204G  7.15M        0B   7.15M             0B         0B  /conf
boot-pool/ROOT/25.04.2.6/data                           204G   108K        0B    108K             0B         0B  /data
boot-pool/ROOT/25.04.2.6/etc                            204G  7.71M     1.11M   6.61M             0B         0B  /etc
boot-pool/ROOT/25.04.2.6/home                           204G     0B        0B      0B             0B         0B  /home
boot-pool/ROOT/25.04.2.6/mnt                            204G   104K        0B    104K             0B         0B  /mnt
boot-pool/ROOT/25.04.2.6/opt                            204G    96K        0B     96K             0B         0B  /opt
boot-pool/ROOT/25.04.2.6/root                           204G     8K        0B      8K             0B         0B  /root
boot-pool/ROOT/25.04.2.6/usr                            204G  2.56G        0B   2.56G             0B         0B  /usr
boot-pool/ROOT/25.04.2.6/var                            204G  80.4M      860K   5.21M             0B      74.4M  /var
boot-pool/ROOT/25.04.2.6/var/ca-certificates            204G    96K        0B     96K             0B         0B  /var/local/ca-certificates
boot-pool/ROOT/25.04.2.6/var/lib                        204G  29.7M      444K   29.2M             0B        96K  /var/lib
boot-pool/ROOT/25.04.2.6/var/lib/incus                  204G    96K        0B     96K             0B         0B  /var/lib/incus
boot-pool/ROOT/25.04.2.6/var/log                        204G  44.6M        0B    384K             0B      44.2M  /var/log
boot-pool/ROOT/25.04.2.6/var/log/journal                204G  44.2M        0B   44.2M             0B         0B  /var/log/journal
boot-pool/ROOT/25.10.1                                  204G  3.75G        8K    104M             0B      3.65G  legacy
boot-pool/ROOT/25.10.1/audit                            204G  8.77M     5.27M   3.50M             0B         0B  /audit
boot-pool/ROOT/25.10.1/conf                             204G  7.54M        0B   7.54M             0B         0B  /conf
boot-pool/ROOT/25.10.1/data                             204G  1.79M     1.48M    308K             0B         0B  /data
boot-pool/ROOT/25.10.1/etc                              204G  7.57M     1.05M   6.52M             0B         0B  /etc
boot-pool/ROOT/25.10.1/home                             204G   556M      456K    556M             0B         0B  /home
boot-pool/ROOT/25.10.1/mnt                              204G   104K        0B    104K             0B         0B  /mnt
boot-pool/ROOT/25.10.1/opt                              204G  4.65M        0B   4.65M             0B         0B  /opt
boot-pool/ROOT/25.10.1/root                             204G   700K      488K    212K             0B         0B  /root
boot-pool/ROOT/25.10.1/usr                              204G  2.88G        0B   2.88G             0B         0B  /usr
boot-pool/ROOT/25.10.1/var                              204G   198M      876K   5.52M             0B       192M  /var
boot-pool/ROOT/25.10.1/var/ca-certificates              204G    96K        0B     96K             0B         0B  /var/local/ca-certificates
boot-pool/ROOT/25.10.1/var/lib                          204G  33.6M      320K   33.2M             0B        96K  /var/lib
boot-pool/ROOT/25.10.1/var/lib/incus                    204G    96K        0B     96K             0B         0B  /var/lib/incus
boot-pool/ROOT/25.10.1/var/log                          204G   158M     67.7M   39.9M             0B      50.5M  /var/log
boot-pool/ROOT/25.10.1/var/log/journal                  204G  50.5M        0B   50.5M             0B         0B  /var/log/journal
boot-pool/grub                                          204G  9.05M        0B   9.05M             0B         0B  legacy
truenas_admin@HEXstor[~]$ for dir in /mnt/HDDs/*; do sudo du -hs $dir; done

[sudo] password for truenas_admin: 
50G	/mnt/HDDs/Applications
170G	/mnt/HDDs/Audiobooks
51M	/mnt/HDDs/Books
13G	/mnt/HDDs/Comics
17K	/mnt/HDDs/Documents
479G	/mnt/HDDs/Files
350G	/mnt/HDDs/Media
1.9T	/mnt/HDDs/Movies
15G	/mnt/HDDs/Music
231G	/mnt/HDDs/Photos
67G	/mnt/HDDs/Podcasts
34K	/mnt/HDDs/Share
411G	/mnt/HDDs/Shows
82G	/mnt/HDDs/Software
52G	/mnt/HDDs/Videos

That’s not what the output of your command reveals.

The root dataset “HDDs” has 38 GB saved directly to it.

The dataset “HDDs/Share” has nothing directly on it.

This is why I had the assumption you saved everything to a folder, thinking it was the dataset itself.


Here’s what I believe happened and how you can get your data back:

You saved the files to a folder named “Share” that exists on the root dataset, but it didn’t point to the mountpoint of the dataset “Share”. The files live under the root dataset “HDDs” in the folder /mnt/HDDs/Share.

Now the folder appears empty because you have a dataset (filesystem) mounted over the folder of the same name.

You need to destroy the dataset “Share”. Rename the existing folder to “Share2”. Create the “Share” dataset again for an SMB purpose. Copy everything from “Share2” to “Share”.

  1. Create a pool checkpoint and confirm it. :warning:
    zpool checkpoint HDDs
    zpool status HDDs | grep checkpoint
  2. Destroy the “HDDs/Share” dataset, since it’s empty anyways. (Do this in the GUI.)
  3. Check inside the folder /mnt/HDDs/Share to confirm the files are there.
    ls -lh /mnt/HDDs/Share
  4. Rename the folder to “Share2”.
    mv -v /mnt/HDDs/Share /mnt/HDDs/Share2
  5. Create the “Share” dataset using the GUI and give it the SMB purpose.
  6. Copy everything over from “Share2” to “Share”. You can use any tool, but I prefer rsync. (If you use rsync, you must use the trailing “slashes” exactly as I show them. You might have to run it with sudo to ensure everything gets transferred.)
    rsync -vaxxhH --progress /mnt/HDDs/Share2/ /mnt/HDDs/Share/
  7. Confirm everything copied over and the files are accessible.
  8. Delete the “Share2” folder.
  9. If you are sure everything is okay, you can discard the pool checkpoint. :warning:
    zpool checkpoint -d HDDs
6 Likes

This could be it, although I did not create a folder. I created a dataset, which automatically showed up in FileBrowser. I never created a folder. But your reasoning sounds solid and fits the issue. I still don’t know how it happened.

I will try it and report back

Are you sure? Last time I checked FileBrowser in the Apps catalog it rejects mounting /mnt directly

"/mnt/.ix-apps/app_configs/filebrowser/versions/1.4.5/templates/library/base_v2_2_2/validations.py", line 266, in allowed_fs_host_path_or_raise raise RenderError(f"Path [{path}] is not allowed to be mounted.")
base_v2_2_2.error.RenderError: Path [/mnt] is not allowed to be mounted.

You may have separately mounted both /mnt/HDDs and /mnt/SSDs.

Did you create the original /Share in FileBrowser (which can only create a folder) or in the TrueNAS UI?

2 Likes

you’re right, I added them both individually!

TrueNAS dataset UI.

There is one last thing that I have as a suspicion:

  • I created the dataset in TrueNAS
  • I added a file via FileBrowser
  • I then gave access via FileBrowser to another user. I set their root mounting point to /HDDs/Share in the FileBrowser user management section
  • They uploaded to their “root”, which was my Share dataset
  • They were able to see the file I uploaded and I was able to see the files they uploaded
  • HOWEVER, setting their base folder might have caused issues which created a folder on top of the existing dataset without me noticing it?

If it is not that, it seems like a bug in TrueNAS to me. Because I definitely did not create a folder. I’m 100% sure I created a dataset.

IIRC the bind mounts into apps / containers are non-recursive.

i did NOT

“I did not create a folder. It’s not true. I did not create a folder. I did naaawt. Oh hi, @DjP-iX.”

I’m only teasing in good fun, @Mineotopia. :grin:

3 Likes

I’m not sure if I understand this comment correctly. Just adding /mnt/HDDs to FileBrowser works with all my other datasets just fine. Do you mean that this issue arises because I shared the one dataset out inside FileBrowser and it therefore ignored that a dataset already existed?

Sorry, I’m a beginner. I started last year with this. At that point I barely knew anything about docker for example.

datasets in the UI are filesystems like D:, E:, F: in Windows parlance. They are not normal directories. On the host system you can layer those inside the same path so like on windows you can have c:\my_stuff\foo where foo is really e:. When you’re selecting datasets to mount inside a particular place outside the host (like in an app or contaner), you choose what you want to mount where inside the guest. Just because you choose an arbitrary place in how its mounted in the host doesn’t mean it moves the whole tree into the guest. Basically in apps / containers you have an opt-in trust barrier. You need to select each filesystem that you want mounted inside the guest and choose where you want it in the guest filesystem. I’m probably explaining this poorly.

You can look at documentation and read up on it / filesystems / mounting. Generally my suggestion for people is to not create large numbers of datasets (don’t treat their creation like creating a directory). Only create them if required by how your data is actually structured (for example you need 100% scratch space that never gets snapshotted).

2 Likes

That is an awesome explanation, thank you! I think I an understand it now. I’m just left wondering why it was never an issue beforehand. The only difference is that I enabled SMB before adding data. But I added lots of files via filebrowser and was then able to see them in the share on windows.

I was able to get recover the data with your guide, thank you! I’m still confused what happened here, but I learned something new. Thanks a lot for your time. And the time of everyone else in this thread!

1 Like