Ask Your Question

How to setup serial port in fedora 16

asked 2012-04-11 13:14:43 -0500

tratem1 gravatar image

In fedora 15 you just had to add some lines in grub.conf and in fedora 16 the file looks different and is in a different directory grub2 does anyone have an idea what to set up.

edit retag flag offensive close merge delete

4 Answers

Sort by ยป oldest newest most voted

answered 2012-10-05 09:35:34 -0500

threeonefourtwo gravatar image

I had to work this out on F17 but I think the process would work on F16 as well because its still grub2. I blogged about the solution

edit flag offensive delete link more


Your blog looks good (+1), but could you also provide a brief summary here, in case the blog goes offline, and for extra help to people looking for a quick answer? Thank you very much!

mattdm gravatar imagemattdm ( 2012-10-05 13:10:08 -0500 )edit

answered 2012-10-26 07:08:39 -0500

threeonefourtwo gravatar image

updated 2012-10-26 07:09:42 -0500

I am copying from my blog post as suggested by Matt This appeared first at


WARNING: I have tried this on a virtual machine. I have not tried this on bare metal. So beware !

This is an aid to my memory. I was unable to find a single document about how I could interact entirely with F17 through serial console. So here goes.

My /etc/default/grub file looks like this

GRUB_CMDLINE_LINUX="text KEYTABLE=us SYSFONT=True rd.luks=0 LANG=en_US.UTF-8 rd_NO_PLYMOUTH console=ttyS0,115200 console=ttyS0"
GRUB_TERMINAL="serial console"
GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"

Then I ran

/sbin/grub2-mkconfig /boot/grub2/grub.cfg
/bin/ln -s /lib/systemd/system/serial-getty@.service /etc/systemd/system/

Thats all. Now I can connect to the console and see all the boot-time messages including the dracut messages. I can also log in over the console.


edit flag offensive delete link more

answered 2012-04-26 13:23:08 -0500

Akshay gravatar image

According to the Fedora 16 documentation /etc/rc.serial is responsible for setting up the serial lines.(

rpm -qd setserial shows the available documentation. There is a README and a sample rc.serial file - see the README.

and check for this package if installed

edit flag offensive delete link more

answered 2012-04-25 12:04:45 -0500

mether gravatar image

Fedora 15 uses legacy GRUB. Fedora 16 onwards uses GRUB2. Lookup GRUB2 manual for configuration differences.

edit flag offensive delete link more

Question Tools


Asked: 2012-04-11 13:14:43 -0500

Seen: 7,487 times

Last updated: Oct 26 '12