LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   sometimes headless server... (https://www.linuxquestions.org/questions/debian-26/sometimes-headless-server-854820/)

radiodee1 01-07-2011 07:30 AM

sometimes headless server...
 
I'm using squeeze and grub2, and I want to make a server that is sometimes headless, and sometimes has a monitor connected.

I added this line to my inittab file:

Code:

s0:2345:respawn:/sbin/agetty -L -f /etc/issueserial 9600 ttyS0 vt100
and this to my /etc/default/grub file:

Code:

GRUB_TERMINAL=serial
GRUB_CMDLINE_LINUX="console=ttyS0,9600"
GRUB_SERIAL_COMMAND="serial --unit=0 speed=9600 --word=8 --parity=no --stop=1"

now when I boot I get a text style grub screen and the boot up text goes to the serial connection. So far so good. The problem is that I want to see the boot up text on the monitor AND have it go to the serial connection. Is there a way to do this?

AlucardZero 01-07-2011 11:29 AM

Yes. Use multiple console arguments.
Code:

console=tty0 console=ttyS0,9600

radiodee1 01-15-2011 12:04 PM

Quote:

Originally Posted by AlucardZero (Post 4216591)
Yes. Use multiple console arguments.
Code:

console=tty0 console=ttyS0,9600

I have been away. Sorry for replying so late. Unfortunately this doesn't work. What I get is grub's boot up messages on the serial line, and then the system's start up messages on the serial line too. I googled and all I came up with is AlucardZero's suggestion. Is anyone else doing this? I'd like to be able to see the progress of an fsck check weather or not I'm looking at a serial terminal or a monitor.


All times are GMT -5. The time now is 11:22 PM.