ash: Can't access tty problems (initramfs)

Dallas Clement dallas.a.clement at gmail.com
Thu May 17 16:28:06 UTC 2007


I'm getting the infamous "Can't access tty; job control turned off"
message when I try to invoke the ash shell during my initial bootup.

I'm using busybox 1.5.0.  I also understand that ash requires a
controlling tty rather than the console.  Though, I don't understand all
the reasons.

If I don't define a console however, I get a kernel panic from
initramfs.

Could someone please give me some pointers on how tty and console should
be configured?  I'm connected via my VGA port (not a serial port).

Here is the contents of my initramfs makefile:

dir /dev 755 0 0
nod /dev/tty0 666 0 5 c 5 0
nod /dev/tty1 666 0 5 c 4 1
nod /dev/tty2 666 0 5 c 4 2
nod /dev/tty3 666 0 5 c 4 3
nod /dev/tty4 666 0 5 c 4 4
nod /dev/tty5 666 0 5 c 4 5
nod /dev/tty6 666 0 5 c 4 6
nod /dev/tty7 666 0 5 c 4 7
nod /dev/tty8 666 0 5 c 4 8
nod /dev/ttyS0 666 0 5 c 5 0
nod /dev/console 644 0 0 c 5 1
nod /dev/null 666 0 0 c 1 3
nod /dev/hda 660 0 6 b 3 0
nod /dev/hda1 660 0 0 b 3 1
nod /dev/hdb 660 0 6 b 3 0
nod /dev/hdb1 660 0 0 b 3 1
nod /dev/hdf 660 0 6 b 3 0
nod /dev/hdf1 660 0 0 b 3 1
dir /bin 755 1000 1000
file /bin/busybox /home/dallas/initramfs/busybox 755 0 0
slink /bin/ash busybox 777 0 0
slink /bin/mkdir busybox 777 0 0
slink /bin/mount busybox 777 0 0
slink /bin/cat busybox 777 0 0
slink /bin/switch_root busybox 777 0 0
dir /root 700 0 0
dir /proc 755 0 0
dir /sys 755 0 0
dir /var 755 0 0
dir /var/lock 755 0 0
dir /tmp 755 0 0
dir /mnt 755 0 0
dir /mnt/realroot 755 0 0
dir /etc 755 0 0
file /etc/fstab /home/dallas/initramfs/fstab 755 0 0
file /init /home/dallas/initramfs/init.ash 755 0 0







More information about the busybox mailing list