1 |
On Mon, Apr 2, 2012 at 2:54 PM, Dale <rdalek1967@×××××.com> wrote: |
2 |
> Canek Peláez Valdés wrote: |
3 |
>> On Mon, Apr 2, 2012 at 2:41 AM, Dale <rdalek1967@×××××.com> wrote: |
4 |
> << SNIP >> |
5 |
>>> Actually, I log into KDE as a user and when Konsole opens, it asks for |
6 |
>>> the root password. I have the KDE session saved so it opens all this on |
7 |
>>> its own. Anyway, since I have it set that way, Konsole never opens, I |
8 |
>>> assume because it can't find the su command. I have been doing it this |
9 |
>>> way since back in the KDE3 days. It has never done this before. |
10 |
>> |
11 |
>> Oh, I see; so you always use an X terminal as a root session. You |
12 |
>> never use a terminal as a regular user? I have never been able to do |
13 |
>> that. |
14 |
> |
15 |
> It is rare that I login as a user then su to root in Console. I do that |
16 |
> all the time tho when in KDE. KDE no longer allows a person to login as |
17 |
> root and I think it is a good idea as well. So, when I need to emerge |
18 |
> something, edit a config file or do other things as root, then su or |
19 |
> kdesu comes in handy. ;-) I am able to open about anything as root if |
20 |
> needed. Konsole and some sort of file manager, Konqueror or Krusaderm |
21 |
> is my biggest tools. |
22 |
> |
23 |
> |
24 |
>> |
25 |
>>> I finally got around to rebooting to check on this, hence the delay in |
26 |
>>> replying, and found this in the boot up process, the stuff that scrolls |
27 |
>>> up the screen. I'm having to type this in since it is NOT in dmesg or |
28 |
>>> the logs but just printed on the screen. |
29 |
>>> |
30 |
>>> |
31 |
>>> dracut: switching root |
32 |
>>> switch_root: failed to mount moving /dev to /sysroot/dev: Invaild argument |
33 |
>>> switch_root: forcing unmount of /dev |
34 |
>>> switch_root: failed to unlink dev: Directory not empty |
35 |
>>> INIT: version 2.88 booting |
36 |
>> |
37 |
>> Do you have /dev listed in your fstab? Actually, can you show us your |
38 |
>> /etc/fstab file? |
39 |
>> |
40 |
> |
41 |
> |
42 |
> LABEL=boot /boot ext2 defaults 1 2 |
43 |
> LABEL=root / reiserfs defaults 0 1 |
44 |
> LABEL=swap none swap sw 0 0 |
45 |
> LABEL=var /var ext3 defaults 0 2 |
46 |
> LABEL=portage /usr/portage ext3 defaults 0 2 |
47 |
> LABEL=home /home reiserfs defaults 0 2 |
48 |
> LABEL=data /data ext4 defaults 0 2 |
49 |
> tmpfs /var/tmp/portage tmpfs noatime 0 0 |
50 |
> shm /dev/shm tmpfs nodev,nosuid,noexec 0 0 |
51 |
> |
52 |
> I have never had /dev in fstab that I recall. I also removed all the |
53 |
> things that were commented out since they should be ignored anyway. I |
54 |
> have a lot of old lines that are no longer needed, CD drive, old |
55 |
> partitions and such. |
56 |
> |
57 |
>>> Keep in mind, the three middle lines with the problems are NOT shown in |
58 |
>>> dmesg, messages or anywhere else but the screen. I had to boot with nox |
59 |
>>> to even see this. This is what ticks me on this mess. With the way it |
60 |
>>> logs things, you better hope you got video buffer to scroll up with or |
61 |
>>> you don't get to see the failure. |
62 |
>> |
63 |
>> Add this to your kernel command line: |
64 |
>> |
65 |
>> rd.debug rd.udev.debug |
66 |
> |
67 |
> |
68 |
> Got that added. Let me know what to look for. Right now I plan to use |
69 |
> nox so that I can look for myself, since boo boos are not logged to |
70 |
> dmesg or messages. |
71 |
> |
72 |
> |
73 |
>> |
74 |
>> Also, remove quiet and splash (if any) from the kernel command line. |
75 |
>> All this info is in the dracut man pages: |
76 |
>> |
77 |
>> man dracut |
78 |
>> man dracut.cmdline |
79 |
> |
80 |
> I don't use the quiet or the splash stuff. I like it simple remember? |
81 |
> I watch the stuff scroll up and that is how I saw the errors posted. If |
82 |
> I wasn't watching real close, I would have never noticed them since I |
83 |
> was using dmesg, messages and grep. |
84 |
> |
85 |
> |
86 |
>> |
87 |
>>> Also, while booted with the init thingy, I made sure the real / |
88 |
>>> partition was mounted. It shows sda3 was mounted and based on the space |
89 |
>>> used, I believe it. I got to clean out some old kernels pretty soon. ;-) |
90 |
>> |
91 |
>> Yeah, but it is mounted as it should? As I said last mail, could you |
92 |
>> check if in the shell that Krusader provides, what it's the result of |
93 |
>> "which su"? And also, what happens when (inside the shell from |
94 |
>> Krusader) you run /bin/su? |
95 |
>> |
96 |
>> Also, an "ls -l /bin/su" would be helpful (even from the virtual |
97 |
>> console: Ctrl+Alt+F1); it may be a permissions related thing. I think |
98 |
>> you can make that "ls /bin/su"; it seems that you have "ls" aliased to |
99 |
>> "ls -l". |
100 |
> |
101 |
> I have ls aliased to ls -al. You noticed huh? lol |
102 |
> |
103 |
> I can't show that because it won't let me get that far. When I tell |
104 |
> Krusader to open as root, a pop up window comes up and asks for the root |
105 |
> password. When I type in the password, it complains about su not being |
106 |
> in the path or missing then goes away. So, I can't post that one. |
107 |
> |
108 |
> That said, I did a mount >> <some file> and then did the same while |
109 |
> booted without the init thingy. Here it is then I'll explain. Take |
110 |
> note of the / partition which is sda3 here: |
111 |
> |
112 |
> |
113 |
> rootfs / rootfs rw 0 0 |
114 |
> proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0 |
115 |
> sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0 |
116 |
> devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620 0 0 |
117 |
> tmpfs /dev/shm tmpfs rw,nosuid,nodev,relatime 0 0 |
118 |
> fusectl /sys/fs/fuse/connections fusectl rw,relatime 0 0 |
119 |
> /dev/sda3 / reiserfs rw,relatime 0 0 |
120 |
> tmpfs /dev/.initramfs tmpfs rw,nosuid,nodev,relatime,mode=755 0 0 |
121 |
> rc-svcdir /lib64/rc/init.d tmpfs |
122 |
> rw,nosuid,nodev,noexec,relatime,size=1024k,mode=755 0 0 |
123 |
> debugfs /sys/kernel/debug debugfs rw,nosuid,nodev,noexec,relatime 0 0 |
124 |
> udev /dev tmpfs rw,nosuid,relatime,size=10240k,mode=755 0 0 |
125 |
> /dev/sda1 /boot ext2 rw,relatime,errors=continue 0 0 |
126 |
> /dev/sda8 /var ext3 rw,relatime,errors=continue,barrier=1,data=writeback 0 0 |
127 |
> /dev/sda6 /usr/portage ext3 |
128 |
> rw,relatime,errors=continue,barrier=1,data=writeback 0 0 |
129 |
> /dev/sda7 /home reiserfs rw,relatime 0 0 |
130 |
> /dev/mapper/data-data1 /data ext4 |
131 |
> rw,relatime,user_xattr,barrier=1,data=ordered 0 0 |
132 |
> tmpfs /var/tmp/portage tmpfs rw,noatime 0 0 |
133 |
> shm /dev/shm tmpfs rw,nosuid,nodev,noexec,relatime 0 0 |
134 |
> usbfs /proc/bus/usb usbfs |
135 |
> rw,nosuid,noexec,relatime,devgid=85,devmode=664 0 0 |
136 |
> binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc |
137 |
> rw,nosuid,nodev,noexec,relatime 0 0 |
138 |
> |
139 |
> |
140 |
> |
141 |
> rootfs on / type rootfs (rw) |
142 |
> /dev/sda3 on / type reiserfs (rw,relatime) |
143 |
> proc on /proc type proc (rw,nosuid,nodev,noexec,relatime) |
144 |
> rc-svcdir on /lib64/rc/init.d type tmpfs |
145 |
> (rw,nosuid,nodev,noexec,relatime,size=1024k,mode=755) |
146 |
> sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) |
147 |
> debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime) |
148 |
> udev on /dev type tmpfs (rw,nosuid,relatime,size=10240k,mode=755) |
149 |
> fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime) |
150 |
> devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620) |
151 |
> shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime) |
152 |
> /dev/sda1 on /boot type ext2 (rw) |
153 |
> /dev/sda8 on /var type ext3 (rw,commit=0) |
154 |
> /dev/sda6 on /usr/portage type ext3 (rw,commit=0) |
155 |
> /dev/sda7 on /home type reiserfs (rw) |
156 |
> /dev/mapper/data-data1 on /data type ext4 (rw,commit=0) |
157 |
> tmpfs on /var/tmp/portage type tmpfs (rw,noatime) |
158 |
> usbfs on /proc/bus/usb type usbfs (rw,noexec,nosuid,devmode=0664,devgid=85) |
159 |
> binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc |
160 |
> (rw,noexec,nosuid,nodev) |
161 |
> root@fireball / # |
162 |
> |
163 |
> The top one is while booted WITH the init thingy. The bottom one is |
164 |
> while booted withOUT the init thingy. You see the same differences I |
165 |
> see? They are subtle but it is different. It appears to my small mind |
166 |
> that the init thingy is not mounting / correctly. Is dracut doing |
167 |
> something wrong? There is a small difference in the devpts line but |
168 |
> not sure if it matters. |
169 |
> |
170 |
> |
171 |
>> |
172 |
>> The listing of your initramfs seems fine; therefore, probably the |
173 |
>> problem is elsewhere. Again, please show us your fstab, and lets also |
174 |
>> see your kernel command line (in either GRUB, GRUB2 or LILO, whichever |
175 |
>> you use). And, I repeat, if you want to see the dracut output in |
176 |
>> dmesg, add the following to your kernel command line: |
177 |
>> |
178 |
>> rd.debug rd.udev.debug |
179 |
>> |
180 |
>> and remove "splash" and "quiet" from it, if they are set. |
181 |
>> |
182 |
>> Regards. |
183 |
> |
184 |
> |
185 |
> I'm still on the old grub. I'm hoping to get this fixed then |
186 |
> repartition my stuff to use LVM then change grubs. After that, maybe I |
187 |
> am good to go until someone breaks something else. ;-) |
188 |
> |
189 |
> I feel like I missed something. If so, point it out to me. I haven't |
190 |
> rebooted yet either. |
191 |
|
192 |
Well damn. Why you do not have devtmpfs? In all the machines I have |
193 |
access to (with or without initramfs, with either systemd or OpenRC), |
194 |
they have devtmps: |
195 |
|
196 |
devtmpfs on /dev type devtmpfs |
197 |
(rw,nosuid,relatime,size=2023140k,nr_inodes=505785,mode=755) |
198 |
devtmpfs on /dev type devtmpfs |
199 |
(rw,nosuid,relatime,size=506680k,nr_inodes=126670,mode=755) |
200 |
devtmpfs on /dev type devtmpfs |
201 |
(rw,nosuid,relatime,size=1939288k,nr_inodes=484822,mode=755) |
202 |
devtmpfs on /dev type devtmpfs |
203 |
(rw,relatime,size=257224k,nr_inodes=64306,mode=755) <==== The one with |
204 |
OpenRC, no initramfs |
205 |
|
206 |
I don't see that one in your mount output. It seems kinda relevant, I |
207 |
think. Please, can you attach your /boot/grub/grub.cfg file? I still |
208 |
haven't seen the kernel command line, and I suppose that it's |
209 |
relevant. Also, I know it's a lot, but could you please include your |
210 |
kernel /usr/src/linux/.config file? Both dracut and udev need some |
211 |
specific kernel config options that maybe you don't have. |
212 |
|
213 |
Regards. |
214 |
-- |
215 |
Canek Peláez Valdés |
216 |
Posgrado en Ciencia e Ingeniería de la Computación |
217 |
Universidad Nacional Autónoma de México |