After creating encrypted EXT4 on external SSD - A start job is running... driving me nuts

Hi there,

this really starts to bug me quite a bit. Why can’t I simply create an ecrypted partition on an external SSD and it “just works”?
I did this on a WD SSD 3D using the standard settings of KDE’s partitioner using EXT4, set to “do not mount” because I want it to be mounted only when I plug it it.

However as you can see in the attache photo I get a “Start job is running…” every time I boot up the machine. Only if the external drive is attached it asks for my password and moves on.
But I have to still mount it using my root password. The mount point is owned by my user account.

So how I get this to work?

  1. Get rid of this horrible 1,5 minute delay “a start job is running…”
  2. Mount the drive only when I plug it in without root privileges
  3. And only then ask me for the encryption password

https://imgur.com/n3trh76

Thanks a lot.

Check your /etc/fstab file and make sure it hasn’t found its way into there. Comment it out (#) if it has.

It’s not there, here’s my fstab contents:

david@PC:~> cat /etc/fstab
/dev/system/swap swap swap defaults 0 0
/dev/system/root / btrfs defaults 0 0
/dev/system/root /.snapshots btrfs subvol=/@/.snapshots 0 0
/dev/system/root /var btrfs subvol=/@/var 0 0
/dev/system/root /usr/local btrfs subvol=/@/usr/local 0 0
/dev/system/root /tmp btrfs subvol=/@/tmp 0 0
/dev/system/root /srv btrfs subvol=/@/srv 0 0
/dev/system/root /root btrfs subvol=/@/root 0 0
/dev/system/root /opt btrfs subvol=/@/opt 0 0
/dev/system/home /home ext4 noatime,data=ordered,acl,user_xattr 0 2
/dev/system/root /boot/grub2/x86_64-efi btrfs subvol=/@/boot/grub2/x86_64-efi 0 0
/dev/system/root /boot/grub2/i386-pc btrfs subvol=/@/boot/grub2/i386-pc 0 0
UUID=9265-09AD /boot/efi vfat defaults 0 0

Just like the other day on my other computer: A start job is running... & Secure Boot / MOK - Install/Boot/Login - openSUSE Forums
Still doing… a start job is running.

It seems to have something to do with the encryption. It does not get mounted, only decrypted.

I have found the culprit.

sudo nano /etc/crypttab

It went into crypttab which is apparently checked upon boot as well. I have never heard of this, but it makes sense since I have an ecrypted /home partition which also shows up there.
Is that to be expected? Why does the partition manager automatically add it to cryptab?

Now I have one issue left.

I no longer need root privileges to mount the encrypted partition. But when typing in my password and clicking on the drive in Dolphin I get a error “the partition is already mounted” - I can access it normally then. Also there are two partitions showing up in Dolphin. One under “Devices” and one under “Removeable Devices” - both links lead to the same partition/folders. What’s the correct way to open and encrypted drive in GUI/Dolphin?

Thanks.

I’m not clear on what you finally did.

For “/etc/crypttab”, you need “noauto” in the 4th column of the entry. Either that, or remove (or comment out) the entire line.

For “/etc/fstab”, you need “noauto” in the options, so that it is not automatically mounted.

I’m not sure what works best with Dolphin. Maybe experiment between using “noauto” on the “/etc/crypttab” entry, or commenting out that entry. See which works best.