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