public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Canek Peláez Valdés" <caneko@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: After /usr conflation: why not copy booting software to /sbin rather than initramfs?
Date: Mon, 2 Apr 2012 08:33:40 -0500	[thread overview]
Message-ID: <CADPrc81OBDN9FGPVLXRDjz7Mn=s8A5q8FPCDEuVgR=CExEtSYw@mail.gmail.com> (raw)
In-Reply-To: <4F795818.4080901@gmail.com>

On Mon, Apr 2, 2012 at 2:41 AM, Dale <rdalek1967@gmail.com> wrote:
> Canek Peláez Valdés wrote:
> <<< SNIP >>>
>> I'm a little confused: you log in KDE as a regular user, open a
>> Konsole, type "su -", and what happens?
>>
>> What do you mean with "Konsole won't even try to come up"?
>>
>> In the shell that Krusader provides (which I assume you run as a
>> regular user), what it's the result of "which su"? And also, what
>> happens when (inside the shell from Krusader) you run /bin/su?
>>
>> If not for the fact that you say that in a virtual console su works, I
>> would be willing to suggest that your initramfs never does the
>> switch_root, and so you end up with the minimal / from the initramfs,
>> and your normal /usr. That would be beyond bizarre, but if you *can*
>> use su in a virtual console, then it should be there.
>>
>> I usally log in in GNOME, open a gnome-terminal, and set a fixed
>> number of tabs in gnome-terminal where I "su -", and work as root in
>> there. I also can run an X11 program as root with "su -lc
>> /usr/bin/gedit", but I almost never do that (although it works; I just
>> checked).
>>
>> I don't think I understand how do you use su. Could you explain it to
>> me, please?
>>
>> One last thing: create a  directory /tmp/whatever, and inside it
>> unpack your initramfs:
>>
>> zcat /boot/init-thingie | cpio -i
>>
>> Could you do a "ls -R /tmp/whatever" so we can see what actually ends
>> up in yout initramfs?
>>
>> Regards.
>
>
> Actually, I log into KDE as a user and when Konsole opens, it asks for
> the root password.  I have the KDE session saved so it opens all this on
> its own.  Anyway, since I have it set that way, Konsole never opens, I
> assume because it can't find the su command.  I have been doing it this
> way since back in the KDE3 days.  It has never done this before.

Oh, I see; so you always use an X terminal as a root session. You
never use a terminal as a regular user? I have never been able to do
that.

> I finally got around to rebooting to check on this, hence the delay in
> replying, and found this in the boot up process, the stuff that scrolls
> up the screen.  I'm having to type this in since it is NOT in dmesg or
> the logs but just printed on the screen.
>
>
> dracut: switching root
> switch_root: failed to mount moving /dev to /sysroot/dev: Invaild argument
> switch_root: forcing unmount of /dev
> switch_root: failed to unlink dev: Directory not empty
> INIT: version 2.88 booting

Do you have /dev listed in your fstab? Actually, can you show us your
/etc/fstab file?

> Keep in mind, the three middle lines with the problems are NOT shown in
> dmesg, messages or anywhere else but the screen.  I had to boot with nox
> to even see this.  This is what ticks me on this mess.  With the way it
> logs things, you better hope you got video buffer to scroll up with or
> you don't get to see the failure.

Add this to your kernel command line:

rd.debug rd.udev.debug

Also, remove quiet and splash (if any) from the kernel command line.
All this info is in the dracut man pages:

man dracut
man dracut.cmdline

> Also, while booted with the init thingy, I made sure the real /
> partition was mounted.  It shows sda3 was mounted and based on the space
> used, I believe it.  I got to clean out some old kernels pretty soon.  ;-)

Yeah, but it is mounted as it should? As I said last mail, could you
check if in the shell that Krusader provides, what it's the result of
"which su"? And also, what happens when (inside the shell from
Krusader) you run /bin/su?

Also, an "ls -l /bin/su" would be helpful (even from the virtual
console: Ctrl+Alt+F1); it may be a permissions related thing. I think
you can make that "ls /bin/su"; it seems that you have "ls" aliased to
"ls -l".

The listing of your initramfs seems fine; therefore, probably the
problem is elsewhere. Again, please show us your fstab, and lets also
see your kernel command line (in either GRUB, GRUB2 or LILO, whichever
you use). And, I repeat, if you want to see the dracut output in
dmesg, add the following to your kernel command line:

rd.debug rd.udev.debug

and remove "splash" and "quiet" from it, if they are set.

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



  reply	other threads:[~2012-04-02 13:35 UTC|newest]

Thread overview: 99+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-27 13:37 [gentoo-user] After /usr conflation: why not copy booting software to /sbin rather than initramfs? Alan Mackenzie
2012-03-27 13:48 ` Michael Mol
2012-03-27 14:02 ` Mike Edenfield
2012-03-27 14:19   ` Michael Mol
2012-03-27 14:26   ` Alan Mackenzie
2012-03-27 14:38     ` Mark Knecht
2012-03-27 14:46     ` Neil Bothwick
2012-03-27 17:55       ` [gentoo-user] " che
2012-03-27 18:41         ` Alan McKinnon
2012-03-28 18:43           ` che
2012-03-27 19:56         ` Mike Edenfield
2012-03-27 21:24           ` Alan Mackenzie
2012-03-27 21:41             ` Neil Bothwick
2012-03-27 22:01               ` Alan Mackenzie
2012-03-27 22:39                 ` Alan McKinnon
2012-03-27 23:32                   ` Alan Mackenzie
2012-03-28  7:47                     ` Neil Bothwick
2012-03-27 22:53                 ` Neil Bothwick
2012-03-27 21:48             ` Alan McKinnon
2012-03-27 22:35               ` Alan Mackenzie
2012-03-27 22:54                 ` Neil Bothwick
2012-03-27 22:55                 ` Alan McKinnon
2012-03-28 14:01                   ` Alan Mackenzie
2012-03-28 14:56                     ` Neil Bothwick
2012-03-28 17:07                       ` Alan Mackenzie
2012-03-28 17:40                         ` Mike Edenfield
2012-03-28 21:47                         ` Neil Bothwick
2012-03-28 22:45                           ` Peter Humphrey
2012-03-28 23:25                             ` Neil Bothwick
2012-03-29  1:53                         ` Dale
2012-03-29  2:07                           ` Canek Peláez Valdés
2012-03-29  2:39                             ` Dale
2012-03-29  5:08                               ` Canek Peláez Valdés
2012-03-29 20:15                                 ` Dale
2012-03-29 20:53                                   ` Canek Peláez Valdés
2012-04-02  7:41                                     ` Dale
2012-04-02 13:33                                       ` Canek Peláez Valdés [this message]
2012-04-02 19:54                                         ` Dale
2012-04-02 20:28                                           ` Canek Peláez Valdés
2012-04-02 21:21                                             ` Dale
2012-04-02 21:37                                               ` Canek Peláez Valdés
2012-04-03  0:19                                                 ` Dale
2012-04-02 22:08                                       ` Neil Bothwick
2012-04-02 22:21                                         ` Dale
2012-04-02 22:41                                           ` Canek Peláez Valdés
2012-04-03  0:19                                             ` Dale
2012-04-03  0:35                                               ` Pandu Poluan
2012-04-03  1:03                                                 ` Canek Peláez Valdés
2012-04-03  1:29                                                   ` Dale
2012-04-03  1:01                                               ` Canek Peláez Valdés
2012-04-03  1:19                                                 ` Dale
2012-04-03  2:08                                                   ` Dale
     [not found]                                                     ` <CADPrc81Q6Tmzpg0p7cbOYr8iXQFO_L4QGKid=LGZPXLB1dt5Xw@mail.gmail .com>
2012-04-03  2:43                                                     ` Canek Peláez Valdés
2012-04-03  3:12                                                       ` Dale
2012-04-03  5:32                                                         ` Dale
2012-04-03 12:46                                                         ` Mike Edenfield
2012-04-03 13:21                                                           ` Dale
2012-04-03 17:48                                                             ` Canek Peláez Valdés
2012-04-04  0:02                                                               ` Dale
2012-04-04  1:59                                                                 ` William Kenworthy
2012-04-04  2:55                                                                   ` Dale
2012-04-04  3:12                                                                     ` Dale
2012-04-04  3:19                                                                       ` Canek Peláez Valdés
2012-04-04  7:48                                                                         ` Dale
2012-04-04  9:05                                                                           ` Dale
2012-04-04  9:22                                                                             ` Neil Bothwick
2012-04-04  9:54                                                                               ` Dale
2012-04-04 11:22                                                                                 ` Neil Bothwick
2012-04-04 23:37                                                                                   ` Dale
2012-04-04 17:23                                                                                 ` Canek Peláez Valdés
2012-04-04 23:35                                                                                   ` Neil Bothwick
2012-04-04 23:39                                                                                   ` Dale
2012-03-29 21:11                                   ` Todd Goodman
2012-03-29 21:32                                     ` Dale
2012-03-30 13:48                                       ` Todd Goodman
2012-03-29 21:52                                   ` Mike Edenfield
2012-03-28  4:24                 ` Mike Edenfield
2012-03-28  4:55                   ` Canek Peláez Valdés
2012-03-28 17:27                     ` Mike Edenfield
2012-03-28  6:17                   ` Pandu Poluan
2012-03-28  6:19                     ` Pandu Poluan
2012-03-28  7:43                     ` Neil Bothwick
2012-03-29  2:16                       ` Dale
2012-03-29  8:52                         ` Neil Bothwick
2012-03-28 17:36                     ` Mike Edenfield
2012-03-29 15:56                   ` Alan Mackenzie
2012-03-29 16:35                     ` Neil Bothwick
2012-03-29 17:13                       ` Michael Mol
2012-03-29 18:11                         ` Neil Bothwick
2012-03-29 18:35                           ` Michael Mol
2012-03-30  0:04                             ` Neil Bothwick
2012-03-30  2:10                               ` Mike Edenfield
2012-03-30  3:17                                 ` Pandu Poluan
2012-03-30  0:10                             ` Neil Bothwick
2012-03-29 17:29                       ` Alan Mackenzie
2012-03-29 18:04                         ` Neil Bothwick
2012-03-29 18:10                     ` Mike Edenfield
2012-03-28 19:14           ` che
2012-03-27 15:30     ` [gentoo-user] " Mike Edenfield

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADPrc81OBDN9FGPVLXRDjz7Mn=s8A5q8FPCDEuVgR=CExEtSYw@mail.gmail.com' \
    --to=caneko@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox