How to stop systemd automounting a removable device [SOLVED]

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

How to stop systemd automounting a removable device [SOLVED]

Postby flavianoep » Mar 11th, '24, 00:07

Hi!
I have a password protected thumbdrive and systemd asks for a password for it in every boot. If I don't have it plugged in at boot time, systemd waits for one and a half minute before completing boot.
Investigating, I found a service called systemd-cryptsetup@luks\\x2dcf6c1ade\\x2d443a\\x2d4d90\\x2db8d0\\x2d373238f75eed.service that I can't disable.
Trying
Code: Select all
systemctl disable systemd-cryptsetup@luks\\x2dcf6c1ade\\x2d443a\\x2d4d90\\x2db8d0\\x2d373238f75eed.service
results in
Code: Select all
The unit files have no installation config (WantedBy=, RequiredBy=, Also=,
Alias= settings in the [Install] section, and DefaultInstance= for template
units). This means they are not meant to be enabled or disabled using systemctl.
 
Possible reasons for having this kind of units are:
• A unit may be statically enabled by being symlinked from another unit's
  .wants/ or .requires/ directory.
• A unit's purpose may be to act as a helper for some other unit which has
  a requirement dependency on it.
• A unit may be started when needed via activation (socket, path, timer,
  D-Bus, udev, scripted systemctl call, ...).
• In case of template units, the unit is meant to be enabled with some
  instance name specified.

Is there any way to disable that?

moved to appropriate forum. ~Germ
Last edited by flavianoep on Mar 12th, '24, 01:08, edited 1 time in total.
flavianoep
 
Posts: 27
Joined: Jun 26th, '23, 19:51
Location: São Paulo, BR

Re: How to stop systemd automounting a removable device

Postby sturmvogel » Mar 11th, '24, 17:45

Remove the drive from /etc/fstab
sturmvogel
 
Posts: 741
Joined: Jul 30th, '12, 00:39

Re: How to stop systemd automounting a removable device

Postby doktor5000 » Mar 11th, '24, 18:03

It might help if you could show your /etc/fstab and if it does not have an entry there then maybe also /etc/crypttab

If it has an entry in fstab, after removing that entry you need to regenerate the initrd as it will also contain a copy of the fstab.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18054
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: How to stop systemd automounting a removable device

Postby flavianoep » Mar 12th, '24, 01:08

Thank you very much doktor5000! Removing /etc/crypttab did it!
flavianoep
 
Posts: 27
Joined: Jun 26th, '23, 19:51
Location: São Paulo, BR

Re: How to stop systemd automounting a removable device [SOL

Postby isadora » Mar 12th, '24, 12:55

Provided with the correct information, would you be so kind, to mark the topic solved.
You can do so, by writing [SOLVED] leftwards of the topic-title in your first message.
Thanks ahead. ;)
..........bird from paradise..........

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
—Antoine de Saint-Exupéry
User avatar
isadora
 
Posts: 2766
Joined: Mar 25th, '11, 16:03
Location: Netherlands


Return to Basic support

Who is online

Users browsing this forum: Google [Bot], Google Adsense [Bot] and 1 guest

cron