Photos not available on startup

I run Darktable 4.4.2 on Linux Mint 21.2 with decent hardware (see below) with the photos on a M2 SSD 2TB drive.
When I start DT and double click on a photo I get the message that the photo is currently not available. If I wait a minute or so they suddenly are available? I find this a bit odd and hope that somebody can provide a hint on how to solve this?

Hardware:
CPU: AMD Ryzen 9 3900 (24) @ 3.100GH
GPU: NVIDIA GeForce RTX 2070 SUPER
Memory: 4773MiB / 32025MiB
SSD1: WD: WDS100T3X0C-00SJG0 size: 931.51 GiB
SSD2: Intel: SSDPEKNW020T8 size: 1.86 TiB

Do you mount the 2nd disk st start up? Is it in your fstab?

Thank you for replying!
it is in my fstab.

Maybe I was wrong and it is not in my fstab. This is my fstab:

/etc/fstab: static file system information.

Use ‘blkid’ to print the universally unique identifier for a

device; this may be used with UUID= as a more robust way to name devices

that works even if disks are added and removed. See fstab(5).

/ was on /dev/nvme0n1p6 during installation

UUID=ba344428-cfc1-4649-b3de-7cd4c1943969 / ext4 errors=remount-ro 0 1

/boot/efi was on /dev/nvme0n1p1 during installation

UUID=0C79-BB9A /boot/efi vfat umask=0077 0 1

/home was on /dev/nvme0n1p7 during installation

UUID=1f77662d-4f0d-4ac0-adb5-9fb688151d60 /home ext4 defaults 0 2

swap was on /dev/nvme0n1p5 during installation

UUID=9ced2475-30db-4774-a97a-2f0ee373e257 none swap sw 0 0

I have not mounted it manually it was just set up when I installed Linux Mint.

If you restart and don’t open darktable, get into a terminal and issues the df -h command, is the disk mounted? If not, and the disk is internal and not external (sorry I assumed it was internal before), then add it to your fstab. If the disk is external, mount it before starting darktable.

It is internal as I have two M2 slots on the motherboard. The df -h returns this after a reboot:
bengt@komplett:~$ df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 3,2G 2,2M 3,2G 1% /run
/dev/nvme0n1p6 96G 38G 54G 42% /
tmpfs 16G 0 16G 0% /dev/shm
tmpfs 5,0M 4,0K 5,0M 1% /run/lock
/dev/nvme0n1p7 167G 53G 106G 34% /home
/dev/nvme0n1p1 256M 34M 223M 14% /boot/efi
tmpfs 3,2G 92K 3,2G 1% /run/user/112
tmpfs 3,2G 104K 3,2G 1% /run/user/1000
/dev/sda2 4,6T 2,7T 1,7T 62% /media/bengt/Linux ext4
/dev/sdb2 7,3T 6,1T 1,3T 83% /media/bengt/Seagate Backup Plus Drive

Hmm. I assumed the above is it?

Can you start darktable from the terminal darktable -d all and reproduce the problem, then post the output here?

bengt@komplett:~$ darktable -d
Command ‘darktable’ not found, but can be installed with:
sudo apt install darktable

No that is an external harddrive for Timeshift and backup of the /Home directory

Maybe it has something to do that it is installed from Flatpak?

you can do flatpak run org.darktable.Darktable -d all from the terminal and post the output here.

I got extremely long reply… it is impossible to post it here. Any specifics you are looking for

bengt@komplett:~ bengt@komplett:~ flatpak run org.darktable.Darktable -d all
0.0013 application_directory: /app/bin
0.0023 darktable.datadir: /app/share/darktable
0.0023 darktable.plugindir: /app/lib/darktable
0.0024 darktable.localedir: /app/share/locale
0.0029 darktable.configdir: /home/bengt/.var/app/org.darktable.Darktable/config/darktable
0.0029 darktable.cachedir: /home/bengt/.var/app/org.darktable.Darktable/cache/darktable
0.0029 darktable.sharedir: /app/share
0.0030 darktable.tmpdir: /tmp
0.0030 [memory] at startup
0.0030 [memory] max address space (vmpeak): 121500 kB
[memory] cur address space (vmsize): 121500 kB
[memory] max used memory (vmhwm ): 25152 kB
[memory] cur used memory (vmrss ): 25152 kB
0.0032 new_xdg_data_dirs: (null)
Gtk-Message: 18:21:31.216: Failed to load module “xapp-gtk3-module”
0,0869 [init sql] library: /home/bengt/.var/app/org.darktable.Darktable/config/darktable/library.db, data: /home/bengt/.var/app/org.darktable.Darktable/config/darktable/data.db
0,4353 [sql] /run/build/darktable/src/common/tags.c:583, function dt_set_darktable_tags(): exec “DELETE FROM memory.darktable_tags”
0,4353 [sql] /run/build/darktable/src/common/tags.c:587, function dt_set_darktable_tags(): prepare “INSERT INTO memory.darktable_tags (tagid) SELECT DISTINCT id FROM data.tags WHERE name LIKE ‘darktable|%%’”
0,4362 [sql] /run/build/darktable/src/common/database.c:4629, function dt_database_start_transaction(): exec “BEGIN TRANSACTION”
0,4362 [crawler] /media/bengt/SSD/foton/2003/2003-02-04/IMGP2101.JPG' (id: 1) is missing. 0,4362 [crawler] /media/bengt/SSD/foton/2003/2003-02-04/IMGP2102.JPG’ (id: 2) is missing.
0,4362 [crawler] /media/bengt/SSD/foton/2003/2003-02-04/IMGP2103.JPG' (id: 3) is missing. 0,4362 [crawler] /media/bengt/SSD/foton/2003/2003-02-05/IMGP2104.JPG’ (id: 4) is missing.
0,4362 [crawler] /media/bengt/SSD/foton/2003/2003-02-05/IMGP2105.JPG' (id: 5) is missing. 0,4362 [crawler] /media/bengt/SSD/foton/2003/2003-02-05/IMGP2106.JPG’ (id: 6) is missing.
0,4362 [crawler] /media/bengt/SSD/foton/2003/2003-02-05/IMGP2107.JPG' (id: 7) is missing. 0,4362 [crawler] /media/bengt/SSD/foton/2003/2003-02-05/IMGP2108.JPG’ (id: 8) is missing.
0,4362 [crawler] /media/bengt/SSD/foton/2003/2003-02-05/IMGP2109.JPG' (id: 9) is missing. 0,4362 [crawler] /media/bengt/SSD/foton/2003/2003-02-05/IMGP2114.JPG’ (id: 10) is missing.
0,4363 [crawler] /media/bengt/SSD/foton/2003/2003-02-05/IMGP2115.JPG' (id: 11) is missing. 0,4363 [crawler] /media/bengt/SSD/foton/2003/2003-02-05/IMGP2116.JPG’ (id: 12) is missing.
0,4363 [crawler] /media/bengt/SSD/foton/2003/2003-02-05/IMGP2117.JPG' (id: 13) is missing. 0,4363 [crawler] /media/bengt/SSD/foton/2003/2003-02-05/IMGP2118.JPG’ (id: 14) is missing.
^C 11,2332 [lighttable] expose took 0,0000 sec-nan% | -nan% | -nan% | 0,00%qbtable_full_redraw(): prepare “SELECT rowid, imgid FROM memory.collected_images WHERE rowid>=1 LIMIT 20” 29933"sh
bengt@komplett:~$

The photos obvious is there in the right location but DT does not see them?

Copy to pastebin and then post the link.

Pastebin only allows 512 Kbyte…

Seems like you should add the disk to your fstab. I don’t see it in there.

I have uploaded th error codes to my dropbox…

What kind of syntax would that be?

This should work for Linux mint: disk - How to add an entry to fstab? - Ask Ubuntu