- You can use
blkid
to read the IDs of your disks;
- Make directories where you want to mount them;
- Edit
fstab
to make it similar to what I showed you above.
My block devices (disks):
kofa@eagle:~$ sudo -i
[sudo] password for kofa:
root@eagle:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 476.9G 0 disk
├─sda1 8:1 0 64G 0 part /
├─sda2 8:2 0 396.9G 0 part /home
└─sda3 8:3 0 16G 0 part [SWAP]
sdb 8:16 0 2.7T 0 disk
├─sdb1 8:17 0 64G 0 part
└─sdb2 8:18 0 2.7T 0 part /oldhome
sdc 8:32 0 2.7T 0 disk
└─sdc1 8:33 0 2.7T 0 part /media/backup
sdd 8:48 1 0B 0 disk
sde 8:64 1 0B 0 disk
sdf 8:80 1 0B 0 disk
sdg 8:96 1 0B 0 disk
root@eagle:~# blkid
/dev/sda3: UUID="e235e39e-3465-45d0-b332-4dcd9f9a9b34" TYPE="swap" PARTUUID="b99a842c-03"
/dev/sda1: UUID="b3646d97-a9f1-47e9-bb09-d6cfd8972ddd" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="b99a842c-01"
/dev/sdb2: UUID="23acdf08-dad1-4666-9e0f-db88c2df0102" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="013d40b2-b2aa-47a9-9ebf-3ff4883006eb"
/dev/sdb1: UUID="b87bd478-ea55-4e3a-83aa-c4951832175b" TYPE="swap" PARTUUID="819f7865-15c6-4081-b9fa-6757f1b46728"
/dev/sdc1: UUID="b36c1873-2b3a-4e3d-92f8-89f1f442b5e5" BLOCK_SIZE="4096" TYPE="ext4" PARTLABEL="wdbackup" PARTUUID="74d320ac-bb23-40fd-9af6-2d7afd9c642c"
/dev/sda2: UUID="44fbed5b-641b-43f1-852c-fb89f72247a4" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="b99a842c-02"
root@eagle:~#
If you compare that listing with my fstab (repeating the relevant lines here, see the whole file above). The lines beginning with #
are comments:
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda1 during installation
UUID=b3646d97-a9f1-47e9-bb09-d6cfd8972ddd / ext4 errors=remount-ro 0 1
# /home was on /dev/sda5 during installation
UUID=44fbed5b-641b-43f1-852c-fb89f72247a4 /home ext4 defaults 0 2
# /oldhome was on /dev/sdc2 during installation
UUID=23acdf08-dad1-4666-9e0f-db88c2df0102 /oldhome ext4 defaults 0 2
# /dev/sda6 swap SSD
UUID=e235e39e-3465-45d0-b332-4dcd9f9a9b34 none swap pri=100 0 0
# swap was on /dev/sdc1 during installation
#UUID=b87bd478-ea55-4e3a-83aa-c4951832175b none swap sw 0 0
# /dev/sdg1
UUID=b36c1873-2b3a-4e3d-92f8-89f1f442b5e5 /media/backup ext4 defaults
You can see that fstab
tells my system that b3646d97-a9f1-47e9-bb09-d6cfd8972ddd
, also known as /dev/sda1
, or the 1st partition of the 1st disk, is my file system root (/
).
Then 44fbed5b-641b-43f1-852c-fb89f72247a4
(/dev/sda2
, so the 2nd partition of the 1st drive) is my /home
Next, 23acdf08-dad1-4666-9e0f-db88c2df0102
(/dev/sdb2
, the 2nd partition on my old hard disk, /dev/sdb
) is /oldhome
- a directory I created myself. You can also do that: mkdir /whatever
(as root user).
e235e39e-3465-45d0-b332-4dcd9f9a9b34
(/dev/sda3
, the 3rd partition of my 1st drive) is not visible as a directory, it’s like pagefile.sys
on Windows (swap space).
b87bd478-ea55-4e3a-83aa-c4951832175b
(/dev/sdb1
) is commented out; it was my swap partition before I bought the SSD (which serves as the 1st disk, /dev/sda
).
b36c1873-2b3a-4e3d-92f8-89f1f442b5e5
(as the command shows, it used to be /dev/sdg1
when I installed the system, now it’s /dev/sdc1
, but the ID stayed the same) is my external drive, mounted as /media/backup
, again a directory I created myself, like for /oldhome
above.
In darktable, if you select an image on the lighttable, then hover over the image information, you can see the full path of the image:
As long as it’s some /mnt/<random ID>
, it is going to be different every time when you reboot. BTW, are you sure you copied the images to the disk? Do you use darktable to do that? add to library does not copy anything, only copy & import does that:

So, you have to get your disk in order. Once you have proper, fixed paths, the problem will be solved. It’s not a darktable issue, but one of Linux system administration.
BTW, I’d suggest you get rid of snap, and use Firefox as a native package. I don’t know about Spotify, but in the worst case, you can listen to it from the browser.
You can follow this guide if you wish to do that. Firefox will load faster, and you won’t have those weird /snap
mount points: