On Wed, 6 Dec 2000, Bill Carlson wrote:

> On Wed, 6 Dec 2000, Matthew Melvin wrote:
>
> > But when I go to single user mode init shows me the "bash#" prompt but thats
> > it.  I can't use the bash prompt or anything.
>
> > Anyone who's struck this problem or knows what's going on.. I'd love to hear
> > from you. :)  A serial console that doens't work in single user mode is
> > rather pointless.
>
> Hey Matthew,
>
> Can you give some more details, like the contents of /etc/lilo.conf for
> the kernel in question and the line from /etc/inittab where you start
> getty for the serial console?
>

Okay cool...

In /etc/inittab I've got...

S0:2345:respawn:/sbin/getty ttyS0 DT9600 vt102

... for multiuser mode and...

~~:S:wait:/sbin/getty ttyS0 DT9600 vt102

... for single user mode.  init seems to ignore the level S entry unless
its by itself.  Looking at the source it seems that if there no :S: entry at
all init will fake one like...

~~:S:wait:/bin/bash

... so I'm not sure if the ~~ is madatory.  Anwyay - this part works. :)
It's only when I want to use bash instead of getty that I get into trouble.
I have also tried specifing ...

~~:S:wait:/bin/bash < /dev/ttyS0 > /dev/ttyS0 2>&1

... which appears to do the right thing in terms of remapping bash's stdio
but doens't work any better for me.

In /etc/lilo.conf I've got...

boot=/dev/sda
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
linear
serial=0,9600n8

image=/boot/vmlinuz-2.2.16-3_ser505
        label=linux-serial
        alias=serial
        read-only
        root=/dev/sda5
        append="console=tty0 console=ttyS0,9600"

... which works as advertised.  Hope that helps some... :)

M.

-- 
WebCentral Pty Ltd           Australia's #1 Internet Web Hosting Company
Level 1, 96 Lytton Road.           Network Operations - Systems Engineer
PO Box 4169, East Brisbane.                       phone: +61 7 3249 2583
Queensland, Australia.                            pgp key id: 0x900E515F



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to