Hi There,
First of all, I had no snapshots, no backups.
I was trying go get Immich installed using the help of ChatGPT. While following the some command line I was asked to remove an environment variable :
root@Borealis[/mnt/TankPrincipal/Immich]# rm -rf ${DB_DATA_LOCATION}/*
Bash ignored the variable and started to delete everything :
root@Borealis[/mnt/TankPrincipal/Immich]# rm -rf ${DB_DATA_LOCATION}/*
zsh: sure you want to delete all 27 files in / [yn]? y
rm: cannot remove '/audit': Read-only file system
rm: cannot remove '/bin': Read-only file system
rm: cannot remove '/boot/initramfs_config.json': Read-only file system
rm: cannot remove '/boot/efi': Read-only file system
rm: cannot remove '/boot/vmlinuz-6.6.44-debug+truenas': Read-only file system
rm: cannot remove '/boot/config-6.6.44-production+truenas': Read-only file system
rm: cannot remove '/boot/initrd.img-6.6.44-production+truenas': Read-only file system
rm: cannot remove '/boot/System.map-6.6.44-debug+truenas': Read-only file system
rm: cannot remove '/boot/grub': Read-only file system
rm: cannot remove '/boot/initrd.img-6.6.44-debug+truenas': Read-only file system
rm: cannot remove '/boot/config-6.6.44-debug+truenas': Read-only file system
rm: cannot remove '/boot/System.map-6.6.44-production+truenas': Read-only file system
rm: cannot remove '/boot/vmlinuz-6.6.44-production+truenas': Read-only file system
rm: cannot remove '/conf/truenas_root_ds.json': Read-only file system
rm: cannot remove '/conf/base/etc/syslog-ng/syslog-ng.conf': Read-only file system
rm: cannot remove '/conf/base/etc/aliases': Read-only file system
rm: cannot remove '/conf/base/etc/ssl/openssl.cnf': Read-only file system
rm: cannot remove '/conf/base/etc/group': Read-only file system
rm: cannot remove '/conf/base/etc/passwd': Read-only file system
rm: cannot remove '/conf/rootfs.mtree': Read-only file system
rm: cannot remove '/data': Read-only file system
rm: cannot remove '/dev/pts/1': Operation not permitted
rm: cannot remove '/dev/pts/0': Operation not permitted
rm: cannot remove '/dev/pts/ptmx': Operation not permitted
rm: cannot remove '/dev/shm': Device or resource busy
rm: cannot remove '/dev/hugepages': Device or resource busy
rm: cannot remove '/dev/mqueue': Device or resource busy
rm: cannot remove '/etc/exports.d': Operation not permitted
rm: cannot remove '/home': Read-only file system
rm: cannot remove '/initrd.img': Read-only file system
rm: cannot remove '/initrd.img.old': Read-only file system
rm: cannot remove '/lib': Read-only file system
rm: cannot remove '/lib64': Read-only file system
rm: cannot remove '/media': Read-only file system
rm: cannot remove '/mnt/MainTank/Documents/Documents_Pro': Device or resource busy
rm: cannot remove '/mnt/MainTank/Documents/Documents_Familly': Device or resource busy
rm: cannot remove '/mnt/MainTank/Documents/Documents_Perso': Device or resource busy
rm: cannot remove '/mnt/MainTank/VMs': Device or resource busy
^C
root@Borealis[/mnt/MainTank/Immich]# echo $DB_DATA_LOCATION
root@Borealis[/mnt/MainTank/Immich]# cd /mnt/MainTank
root@Borealis[/mnt/MainTank]# ls
Bilalzz Documents ISOs Immich Media Photos Sauvegardes Telechargements VMs Videos
root@Borealis[/mnt/MainTank]# cd Documents
root@Borealis[/mnt/MainTank/Documents]# ls
Documents_Familly Documents_Perso Documents_Pro
root@Borealis[/mnt/MainTank/Documents]# ls Documents_Pro
root@Borealis[/mnt/MainTant/Documents]# ls Documents_Perso
root@Borealis[/mnt/MainTank/Documents]# ls Downloads
ls: cannot access 'Downloads': No such file or directory
root@Borealis[/mnt/MainTank/Documents]# cd Media
cd: no such file or directory: Media
root@Borealis[/mnt/MainTank/Documents]# cd Berboo
cd: no such file or directory: Berboo
root@Borealis[/mnt/MainTank/Documents]#
Then I shut down the server.
As you can see, I had years of documents and pictures.
I know, I should have been more carefull backuping my files, I know I should have been more carefull stupidly.
If I loose everything, I will not die, but imagine having some precious videos of your parents (that are getting old) lost ? I have tears in my eyes as I’m writing this.
Please don’t moralize me but give some solutions, if there are any, to get back my files.
I had 3 Hard drive of 4 TB each, in a RAIDZ1 Pool, the system is (was ?) In a SSD hard drive
I have some basic command line knowledge, I would pay someone if someting could be done
Thanks a lot