Re: Hangs in parts.rc

From: Roger Johansson (no-email_at_home.se)
Date: 01/31/04


Date: Sat, 31 Jan 2004 17:29:18 +0100


"J.O. Aho" <user@example.net> wrote:

> That is a okey device, it depends on the dev system used in the system if it's
> /dev/hda or /dev/ide/...
>
> It seems like the system does find the system in the right location.
 
Okay, thanks.
 
> Something that don't look good in the log file is
>
> ---cut---
> > Jan 31 14:58:14 localhost init: Switching to runlevel: 6
> ...
>> Jan 31 14:58:12 localhost init: Entering runlevel: 5
> ---cut---

Yes, but that is at the end, after it has got stuck and I manually force a
reboot. So there is nothing strange about that.
 
> off time from the rest of the entries. But this can be that when booting up,
> time is taken from windows, suddenly the BIOS time is read and then the linux
> time is set with the adjust to the BIOS time.

Yes, that is my interpretation too. Nothing strange or worrying there, it
is only about setting the time, anyway.
 
> The secon thin here is that it appears that the system is set to init 6 before
> init 5, not sure if you know what they stand for,

I have understood that runlevels are modes of operation, and the reboot
mode is used to reboot.

This is a section from INITTAB

# Default runlevel. The runlevels used by RHS are:
# 0 - halt (Do NOT set initdefault to this)
# 1 - Single user mode
# 2 - Multiuser, without NFS (The same as 3, if you do not have
networking)
# 3 - Full multiuser mode
# 4 - unused
# 5 - X11
# 6 - reboot (Do NOT set initdefault to this)
#
id:5:initdefault:

Maybe I should change that line to singleuser, for example.
The X11 environment has maybe not been started yet?

>init 5 is used normally for
> a graphical environment (Gentoo uses init 3 for graphical environments as
> default, but they do a lot thing differently than from other linuxes), while
> init 6 is reboot.
> If you are already starting to boot down when you get to start the graphical
> environment, then you may have services that have been already turned off
> whcih can make the system to behavie badly.

I think it is running in runlevel 5 when I break execution with ctrl-c,
then I do a ctrl-alt-del and it switches to runlevel 6, kills all processes
and reboots.

I don't think this is a problem, it probably works as it should.
I don't know why I cannot use ctrl-alt-del directly, maybe it is still in
the bootup stage, so the process which should be watching the keyboard for
ctrl-alt-del has not been started yet.

I still think the problem is in the line
while [ -d "$mpoint" ]
in rc.parts, where it gets stuck.

Can somebody explain what that line means, and what it is trying to do?

It must be some kind of evaluation of the expression [ -d "$mpoint" ]
Why does it get stuck when it is evaluating that expression?
What does that expression mean?

Could I set the value of mpoint before that line is trying to evaluate it,
so it succeeds in its evaluation?

-- 
Roger J. (No Emails)


Relevant Pages

  • Re: Hangs in parts.rc
    ... > The secon thin here is that it appears that the system is set to init 6 before ... I have understood that runlevels are modes of operation, and the reboot ... I think it is running in runlevel 5 when I break execution with ctrl-c, ... then I do a ctrl-alt-del and it switches to runlevel 6, ...
    (alt.linux)
  • Re: I got Linux server problem .. please help
    ... So i installed the OS again and i can retrieve the whole data.But i am facing one problem that when i shut down the server with init 0. ... no more processes left in this runlevel. ... This is correct bahaviour, you told the box to halt, not to reboot ...
    (RedHat)
  • [PATCH] HVC: do not request the irq twice.
    ... The system is going down for reboot NOW! ... INIT: Switching to runlevel: 6 ... INIT: Sending processes the TERM signal ...
    (Linux-Kernel)
  • Re: [SLE] How do I kill a Zombie?
    ... > to prevent the system from being stopped if INIT was killed? ... > it just enter a runlevel and sit and wait for the PC to reboot etc? ... what do you mean "if the kernel kills init"? ...
    (SuSE)
  • NSA to release Linux distribution based on Rick Hohensees cLIeNUX
    ... changed the name of /bin in his weird little cLIeNUX distro to /command? ... bundle thier seLinux demo kernel in an end-user oriented no-GUI distro ... For use with Miquel Van Smoorenberg's init. ... Runlevel changes may be caused by system ...
    (alt.politics)