Gentoo Archives: gentoo-user

From: Joseph <syscon780@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] can not mount USB stick as user
Date: Wed, 05 Feb 2014 21:31:42
Message-Id: 20140205213157.GL4093@syscon7.ed.shawcable.net
In Reply to: Re: [gentoo-user] can not mount USB stick as user by "Canek Peláez Valdés"
1 On 02/05/14 15:01, Canek Peláez Valdés wrote:
2 [snip]
3 >>>>>
4 >>>>> If you are using GRUB2, change /etc/default/grub and modify
5 >>>>> GRUB_CMDLINE_LINUX so it has "init=/usr/lib/systemd/systemd". Then run
6 >>>>> grub2-mkconfig again.
7 >>>>>
8 >>>>> Beware, systemd requires some kernel config options set or it will not
9 >>>>> work. For systemd 208, these are:
10 >>>>>
11 >>>>> AUTOFS4_FS
12 >>>>> BLK_DEV_BSG
13 >>>>> CGROUPS
14 >>>>> DEVTMPFS
15 >>>>> DMIID
16 >>>>> EPOLL
17 >>>>> FANOTIFY
18 >>>>> FHANDLE
19 >>>>> INOTIFY_USER
20 >>>>> IPV6
21 >>>>> NET
22 >>>>> PROC_FS
23 >>>>> SECCOMP
24 >>>>> SIGNALFD
25 >>>>> SYSFS
26 >>>>> TIMERFD
27 >>>>>
28 >>>>> Also, the following kernel config options should *NOT* be set:
29 >>>>>
30 >>>>> IDE
31 >>>>> SYSFS_DEPRECATED
32 >>>>> SYSFS_DEPRECATED_V2
33 >>>>> GRKERNSEC_PROC
34 >>>>>
35 >>>>> Lastly, if you have /usr in a different partition from /, you *need*
36 >>>>> an initramfs (this is now true also for OpenRC). Please check the
37 >>>>> instructions set in:
38 >>>>>
39 >>>>> https://wiki.gentoo.org/wiki/Systemd
40 >>>>>
41 >>>>> To finish, let me remark that systemd never had problems in your
42 >>>>> system. The problem was that you were not running systemd.
43 >>>>>
44 >>>>> Regards.
45 >>>>> --
46 >>>>> Canek Peláez Valdés
47 >>>>> Posgrado en Ciencia e Ingeniería de la Computación
48 >>>>> Universidad Nacional Autónoma de México
49 >>>>
50 >>>>
51 >>>>
52 >>>> Thank you for correction. You are correct I would need to switch to new
53 >>>> systemd.
54 >>>> I think for now I'll go back to udev as I'm afraid something might not
55 >>>> work
56 >>>> after switching :-/
57 >>>
58 >>>
59 >>> Why don't you give it a try? You are almost there.
60 >>>
61 >>> When booting, edit the grub entry and add
62 >>> init=/usr/lib/systemd/systemd. If it works, great; otherwise, you
63 >>> reboot and get back to where you were.
64 >>>
65 >>> Regards.
66 >>> --
67 >>> Canek Peláez Valdés
68 >>> Posgrado en Ciencia e Ingeniería de la Computación
69 >>> Universidad Nacional Autónoma de México
70 >>
71 >>
72 >> I've tried to switch my backup system to systemd by adding line
73 >> init=/usr/lib/systemd/systemd to grub donfig and as I suspected the system
74 >> did not boot. I got a kernel paanic.
75 >> can not open root device "hda3" or unknown block (0,0): error -6
76 >
77 >It probably could be fixed, but it will take time and info about your
78 >system (partition arrangement, if you use or not an initramfs, how do
79 >you created it, etc.)
80 >
81 >Perhaps you would prefer to get back to OpenRC+udev. Just be aware
82 >that, if you had installed systemd, it was because something requires
83 >it. If you don't use systemd, you will have degraded functionality,
84 >since more and more things require systemd or parts of it
85 >(specifically logind). This not only applies to GNOME 3, but also to
86 >Xfce (which uses a lot of GNOME/Gtk+/glib infrastructure). KDE is also
87 >analyzing how to better use systemd provided technologies.
88 >
89 >You can try to set USE="-systemd consolekit" and do a emerge -uDNv
90 >world. That will bring back much (but not all) of the functionality;
91 >just be aware that ConsoleKit is unmaintained and it will eventually
92 >bitrot.
93 >
94 >Regards.
95 >--
96 >Canek Peláez Valdés
97 >Posgrado en Ciencia e Ingeniería de la Computación
98 >Universidad Nacional Autónoma de México
99
100 I have to create new boot strap CD (as the one I have have old kernel) and get to they system first to change grub.conf.
101 Will get back to you.
102
103 --
104 Joseph

Replies

Subject Author
Re: [gentoo-user] can not mount USB stick as user Neil Bothwick <neil@××××××××××.uk>