Cobra Forum

Linux => General Help => Topic started by: mahesh on Oct 12, 2023, 07:54 AM

Title: Mount timeout limit not working as desired
Post by: mahesh on Oct 12, 2023, 07:54 AM
I have a self-built "headless" server running Ubuntu 22.04. I have recently fitted a trayless 5.25"-to-3.5" HDD adapter to allow me to hot-swap HDDs/SSDs as needed for backups and so on.

I want to automatically mount a certain disk, when inserted into the adapter, to a certain location. I set this up in /etc/fstab:
Code:
/dev/disk/by-uuid/075d3dfb-e96e-42a0-bd52-b89c56a0c0f6 /media/sue1 ext4 defaults 0 2and it works well, except...

If, on boot-up, that particular disk is not inserted, the whole boot-up process takes 1m 30s longer because it is waiting for that disk to be ready so that it can be mounted. This is a pain, so I amended /etc/fstab:
Code:
/dev/disk/by-uuid/075d3dfb-e96e-42a0-bd52-b89c56a0c0f6 /media/sue1 ext4 defaults,x-systemd.mount-timeout=5s 0 2hoping that it would only wait 5 seconds for the disk to be ready, otherwise forget it and continue booting.

But even with the above, it is still waiting 1m 30s for the disk during boot.

What did I get wrong?

Thanks,

Paul