Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible on boot to redirect the console output to a screen session? The server has no monitor attached, and I'd like to be able to see the primary console output. I've seen other posts about redirecting to a serial port, but I'd rather use screen if possible, or another method to see the console output when logged in over SSH.

The box is running Raspbian Linux (Debian Wheezy).

share|improve this question
But at boot, neither screen nor sshd will have been started yet! Still, it must be possible somehow, at least when it's a virtual machine that's booting, since this is what Linode does. If it's a physical machine that's booting, I'll be surprised to hear that it is really possible. – dubiousjim Oct 20 '12 at 16:49
Can you not just read /var/log/boot once you have logged in? – jasonwryan Oct 20 '12 at 18:30

You can add a screen session to the inittab at a specific run level :

# GNU Screen on runlevel 4
scr2:4:respawn:/sbin/mingetty --autologin <user> tty1 linux

is your user.

Then configure grub to output to that device.

# (0) Arch Linux
title  Arch Linux Screen
root   (hd0,2)
kernel /vmlinuz-linux root=/dev/disk/your_disk ro acpi_no_auto_ssdt irqpoll 4
initrd /initramfs-linux.img
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.