enable serial console in ubuntu gutsy 7.10

this is mainly a copy of the ubuntu documentation on this

edit or create a file in /etc/event.d/ttyS0


# ttyS0 - getty
#
# This service maintains a getty on ttyS0 from the point the system is
# started until it is shut down again.

start on runlevel 2
start on runlevel 3
start on runlevel 4
start on runlevel 5

stop on runlevel 0
stop on runlevel 1
stop on runlevel 6

respawn
exec /sbin/getty 115200 ttyS0

now edit /boot/grub/menu.lst
add the folowing line at the top of the file to get grub over the serial console…


# Enable console output via the serial port. unit 0 is /dev/ttyS0, unit 1 is /dev/ttyS1...
serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1
terminal --timeout=15 serial console

and now edit the kernel-line in the same file and add the folowing parameters at the end of the line…


 console=tty0 console=ttyS0,115200n8

so your kernel like should look something like that:


kernel          /boot/vmlinuz-2.6.10-5-386 root=/dev/hda1 ro quiet splash console=tty0 console=ttyS0,115200n8

you’re done.. reboot the machine and you’ll see everything on the serial console :)

Leave a Reply