I'm trying add my external LUKS encrypted SSD drive to fstab, to persist the mount point to '/mnt/backup', so that timeshift and backintime can always find the drive. But it keeps mounting at '/media/username/Backup' and sometimes at 'media/username/Backup1'.
I only connect the drive when I'm doing backups, therefore it's not present at boot and I'm not trying to make it mount automatically at boot.
I've made an fstab entry, but it's failing to mount at the specified mountpoint.
Here's what lsblk gives when the drive is mounted. The drive in question is 'sda'.
Code: Select all
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 931.5G 0 disk
└─luks-68c8eb91-29f6-44c3-83bb-c026217014f9 253:3 0 931.5G 0 crypt /media/username/Backup
nvme0n1 259:0 0 238.5G 0 disk
├─nvme0n1p1 259:1 0 512M 0 part /boot/efi
├─nvme0n1p2 259:2 0 732M 0 part /boot
└─nvme0n1p3 259:3 0 237.3G 0 part
└─nvme0n1p3_crypt 253:0 0 237.2G 0 crypt
├─vgmint-root 253:1 0 236.3G 0 lvm /
└─vgmint-swap_1 253:2 0 976M 0 lvm [SWAP]
Code: Select all
Disk /dev/mapper/luks-68c8eb91-29f6-44c3-83bb-c026217014f9: 931.49 GiB, 1000171332096 bytes, 1953459633 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 33553920 bytes
Code: Select all
UUID=a6ae1c7f-98c3-4ae9-b181-28af8491394a / ext4 errors=remount-ro 0 1
UUID=79ad76b0-0518-4f88-a9d8-53192af6075f /boot ext4 defaults 0 2
UUID=D98E-4F8E /boot/efi vfat umask=0077 0 1
/dev/mapper/vgmint-swap_1 none swap sw 0 0
/dev/mapper/Backup /mnt/backup ext4 noauto,noexec,rw,sync,user 0 0
- /dev/mapper/luks-68c8eb91-29f6-44c3-83bb-c026217014f9
- UUID of 'sda'
- UUID of 'luks-68c8eb91-29f6-44c3-83bb-c026217014f9'
PS, I didn't reboot each time I made edits to fstab and retrying to mount. Let me know if that's required.