Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

lilo "single" boots to runlevel 3

168 views
Skip to first unread message

buck

unread,
Nov 20, 2009, 3:27:14 AM11/20/09
to
Any idea why the computer would boot into runlevel 3 even when single
is specified?

A) At the LILO prompt, I hit TAB and type `Linux-2.6.28.7 single'
but the boot ignores "single".

B) When the boot completes `cat /proc/cmdline' says
BOOT_IMAGE=Linux-2.6.28.7 ro root=fd00 vt.default_utf8=0 single

C) `runlevel' says
N 3

If it matters, `uname -r' says
2.6.28.7-smp

and `lilo -V' says
LILO version 22.8

and `ls -l /etc/rc.d/rc.K' says
-rwxr-xr-x 1 root root 2425 2008-12-02 12:31 /etc/rc.d/rc.K*

Does this have anything to do with my initrd? The /boot/initrd-
tree/etc directory is empty. If that's wrong, what should it contain?

If not initrd, is the kernel or lilo version buggy? What else should
I check?
--
buck

Matt Hayes

unread,
Nov 20, 2009, 8:38:35 AM11/20/09
to


Buck,

Try entering at the LILO prompt: Linux-2.6.28.7 init=1

-Matt

Douglas Mayne

unread,
Nov 20, 2009, 9:06:21 AM11/20/09
to

AFAIK, for single user mode, the following arguments are valid {s|S|1}

Note: single is not a valid argument. man init.

--
Douglas Mayne


buck

unread,
Nov 20, 2009, 1:19:11 PM11/20/09
to
Douglas Mayne <do...@localhost.localnet> wrote in
news:pan.2009.11.20....@localhost.localnet:

> On Fri, 20 Nov 2009 08:27:14 +0000, buck wrote:
>
>> Any idea why the computer would boot into runlevel 3 even when
single
>> is specified?
>>
>> A) At the LILO prompt, I hit TAB and type `Linux-2.6.28.7 single'
>> but the boot ignores "single".
>>
>> B) When the boot completes `cat /proc/cmdline' says
>> BOOT_IMAGE=Linux-2.6.28.7 ro root=fd00 vt.default_utf8=0 single

> AFAIK, for single user mode, the following arguments are valid {s|S|


1}
>
> Note: single is not a valid argument. man init.

While passing 1 works, man init says
It is possible to pass a number of flags to init from the boot monitor
(eg. LILO). Init accepts the following flags:

-s, S, single
Single user mode boot. In this mode /etc/inittab is
examined and the bootup rc scripts are usually run
before the single user mode shell is started.

1-5 Runlevel to boot into.

-b, emergency
Boot directly into a single user shell without run-
ning any other startup scripts.

so I don't understand why "single" didn't work but "1" did...

But I guess it doesn't matter since "1" does work.
--
buck

Mike Jones

unread,
Nov 20, 2009, 6:12:31 PM11/20/09
to
Responding to buck:


I vaguely recall having a similar problem some time ago.

Maybe the -s flag has been "retired" and nobody has updated the man page?

--
*=( http://www.thedailymash.co.uk/
*=( For all your UK news needs.

0 new messages