duplicate mountpoint /mnt/cryptfs in /etc/fstab

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
FrankBusse
Posts: 9
Joined: 2024-07-10 08:30

duplicate mountpoint /mnt/cryptfs in /etc/fstab

#1 Post by FrankBusse »

on startup, Bullseye complains

Code: Select all

$ dmesg | grep cryptfs
[    7.458956] systemd-fstab-generator[450]: Failed to create unit file '/run/systemd/generator/mnt-cryptfs.mount', as it already exists. Duplicate entry in '/etc/fstab'?
[  168.243606] systemd-fstab-generator[3863]: Failed to create unit file '/run/systemd/generator/mnt-cryptfs.mount', as it already exists. Duplicate entry in '/etc/fstab'?
... and in fact, there is a duplicate entry in /etc/fstab:

Code: Select all

$ more /etc/fstab | grep cryptfs
/dev/kubuntu-vg/root                        /mnt/cryptfs   ext4        ro,users,noauto     0 0 
/dev/sdc2                                   /mnt/cryptfs   erweitert   ro,noauto           0 0 
However, I have noticed no further negative effect. What should I do (apart from "never change a running system")?

arzgi
Posts: 1408
Joined: 2008-02-21 17:03
Location: Finland
Been thanked: 56 times

Re: duplicate mountpoint /mnt/cryptfs in /etc/fstab

#2 Post by arzgi »

Just edit the /etc/fstab, it is needed only at boot.

Aki
Global Moderator
Global Moderator
Posts: 3949
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 109 times
Been thanked: 518 times

Re: duplicate mountpoint /mnt/cryptfs in /etc/fstab

#3 Post by Aki »

Hello @FrankBusse,

I assume you have resolved it.

Please, mark the discussion as "solved" manually adding the text tag "[Solved]" at the beginning of the subject of the first message (after other tags, if any).

Thanks.
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

FrankBusse
Posts: 9
Joined: 2024-07-10 08:30

Re: duplicate mountpoint /mnt/cryptfs in /etc/fstab

#4 Post by FrankBusse »

Thanks @arzgi, for your quick response - and sorry for the delay
arzgi wrote: 2024-11-08 09:39 Just edit the /etc/fstab, it is needed only at boot.
To avoid misunderstanding:
Which of the two entries for /mnt/cryptfs should I remove?
You mention that "it" (I assume the one to preserve) "is needed at boot".

arzgi
Posts: 1408
Joined: 2008-02-21 17:03
Location: Finland
Been thanked: 56 times

Re: duplicate mountpoint /mnt/cryptfs in /etc/fstab

#5 Post by arzgi »

You should know :mrgreen:

Comment out both lines by addindg # to front of them, save file, reboot, Does everything work as you expect?

Post Reply