You are not logged in.

#1 2013-02-03 13:05:18

Asmir
Member
From: BiH
Registered: 2011-10-06
Posts: 67

[Solved] Disabling .mount units on systemd

Hi;
Is there a way to disable units like: "dev-mqueue.mount", "sys-kernel-debug.mount" and "dev-hugepages.mount" since they just slowdown my boot process.

  # systemd-analyze blame
  2589ms systemd-vconsole-setup.service
  1249ms dev-mqueue.mount
  1168ms sys-kernel-debug.mount
  1013ms dev-hugepages.mount
   994ms systemd-udevd.service
   966ms systemd-udev-trigger.service
   877ms systemd-sysctl.service
   862ms wicd.service
   496ms systemd-remount-fs.service
   429ms home.mount
   386ms systemd-readahead-replay.service
   382ms systemd-readahead-collect.service
   258ms var.mount
   179ms tmp.mount
   112ms systemd-logind.service
    72ms systemd-tmpfiles-setup.service
    53ms tor.service
    21ms var-lib-mpd-music.mount
    12ms systemd-user-sessions.service

I tried

# systemctl disable dev-mqueue.mount

but it didn't help.

Last edited by Asmir (2013-02-03 13:25:47)

Offline

#2 2013-02-03 13:07:16

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,054

Re: [Solved] Disabling .mount units on systemd

These are implied by other services. To disable them do:

systemctl mask xxxx

Of course you have to know what you are doing.

Last edited by olive (2013-02-03 13:07:38)

Offline

#3 2013-02-03 13:24:49

Asmir
Member
From: BiH
Registered: 2011-10-06
Posts: 67

Re: [Solved] Disabling .mount units on systemd

Well it worked and the system is not broken. smile
Thank you.

Offline

#4 2013-08-19 14:29:31

El_Belgicano
Member
Registered: 2011-09-15
Posts: 4

Re: [Solved] Disabling .mount units on systemd

olive wrote:

<snip>
Of course you have to know what you are doing.

Picking up on this: how can i verify i don't need them?
/sys/kernel/config/, /dev/hugepages/, /dev/mqueue/ are all empty, is that enough to conclude i don't need them?
There are some things in /sys/kernel/debug/ but since it's named debug i feel i can live without...
BTW: what does /sys/kernel/debug/ offer that the journal don't?

Offline

#5 2013-08-19 15:00:07

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,054

Re: [Solved] Disabling .mount units on systemd

El_Belgicano wrote:
olive wrote:

<snip>
Of course you have to know what you are doing.

Picking up on this: how can i verify i don't need them?

You need them. The case I describe is when a service A automatically launches a service B and you want to disable the service B. Of course it is a bad idea, similar in spirit to removing a package with the -dd option of pacman to ignore dependencies. Of course there are plenty of reasons when you want to disobey your system. But you do that if you know what you are doing, just as, when you use the -dd option of pacman, you are supposed to understand the consequences.

Last edited by olive (2013-08-19 19:10:45)

Offline

Board footer

Powered by FluxBB