Gentoo Archives: gentoo-user

From: "Canek Peláez Valdés" <caneko@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] can not mount USB stick as user
Date: Wed, 05 Feb 2014 19:06:34
Message-Id: CADPrc82xW3NXL7WsPntLFAb23xSxDbXK3Sq+9UBx=Tfkd3bOmg@mail.gmail.com
In Reply to: Re: [gentoo-user] can not mount USB stick as user by Joseph
1 On Wed, Feb 5, 2014 at 12:38 PM, Joseph <syscon780@×××××.com> wrote:
2
3 [ humongous snip ]
4
5 >> 4. Using systemd is more than just emerging it; you need to change
6 >> your init= line in grub-legacy or GRUB2 and reboot. The contents of
7 >> /proc/1/comm is "systemd"?
8 >
9 > I only have this:
10 > cat /proc/1/comm
11 > init
12
13 [ snip ]
14
15 > systemctl --all --full
16 > Failed to get D-Bus connection: No connection to service manager.
17 >
18 > loginctl
19 > Failed to issue method call: Launch helper exited with unknown return code 1
20
21 Joseph, you are not running systemd. You have systemd *installed*, but
22 you are still *running* OpenRC. Therefore, your system is obviously
23 going to fail, since at least some parts of it believe you are running
24 systemd when you are not.
25
26 If you use GRUB, you need to change its config file and add the
27 following to your kernel command line:
28
29 init=/usr/lib/systemd/systemd
30
31 If you are using GRUB2, change /etc/default/grub and modify
32 GRUB_CMDLINE_LINUX so it has "init=/usr/lib/systemd/systemd". Then run
33 grub2-mkconfig again.
34
35 Beware, systemd requires some kernel config options set or it will not
36 work. For systemd 208, these are:
37
38 AUTOFS4_FS
39 BLK_DEV_BSG
40 CGROUPS
41 DEVTMPFS
42 DMIID
43 EPOLL
44 FANOTIFY
45 FHANDLE
46 INOTIFY_USER
47 IPV6
48 NET
49 PROC_FS
50 SECCOMP
51 SIGNALFD
52 SYSFS
53 TIMERFD
54
55 Also, the following kernel config options should *NOT* be set:
56
57 IDE
58 SYSFS_DEPRECATED
59 SYSFS_DEPRECATED_V2
60 GRKERNSEC_PROC
61
62 Lastly, if you have /usr in a different partition from /, you *need*
63 an initramfs (this is now true also for OpenRC). Please check the
64 instructions set in:
65
66 https://wiki.gentoo.org/wiki/Systemd
67
68 To finish, let me remark that systemd never had problems in your
69 system. The problem was that you were not running systemd.
70
71 Regards.
72 --
73 Canek Peláez Valdés
74 Posgrado en Ciencia e Ingeniería de la Computación
75 Universidad Nacional Autónoma de México

Replies

Subject Author
Re: [gentoo-user] can not mount USB stick as user Joseph <syscon780@×××××.com>