As CatKiller says you are doing things wrongly as the device names are not static.
I'm not sure how deja-dup works as I have never used it but if you either use its UUID which you can find with command or give the partition on your external hard drive a label it will automatically mount to /media/<username>/label and it will not matter if the /dev/sdx nomenclature changes as that is not the way it will now work.
As this is an external drive I suggest the label is the better way to go with this; if it is mounted with an entry in /etc/fstab then the UUID is probably better but both will work better than /dev/sdx.
See
Code:
Indicating the device and filesystem
Most devices are indicated by a filename (of a block special device), like /dev/sda1, but there are other possibili‐
ties. For example, in the case of an NFS mount, device may look like knuth.cwi.nl:/dir. It is also possible to indi‐
cate a block special device using its filesystem label or UUID (see the -L and -U options below), or its partition la‐
bel or UUID. Partition identifiers are supported for example for GUID Partition Tables (GPT).
which is from man mount.
Format the external disk partition as ext4 if it's not already ext4 to ensure permissions are retained for the backup files, label it as something meaningful to you, and all should then be good to go once you edit your current deja-dup destination configuration.
Bookmarks