1834465 Members
2843 Online
110067 Solutions
New Discussion

getty message

 
j773303
Super Advisor

getty message

While the rp5470 boot, it can't login from the console, the getty message as below.
getty : fail to open /dev/tty : no such device or address
Does anyone has the experience how to fix this problem?
Hero
5 REPLIES 5
T G Manikandan
Honored Contributor

Re: getty message

The /etc/inittab should have
cons:123456:respawn:/usr/sbin/getty console console


check the file is present
crw--w--w- 1 root tty 0 0x000000 Oct 9 09:25 /dev/console

you can re-create the file

#insf -e
T G Manikandan
Honored Contributor

Re: getty message

Also do check whether the file is used by another process using

#fuser -u /dev/console

REvert
j773303
Super Advisor

Re: getty message

I check the /etc/inittab and insf -e, but the problem are still exists. I try to login to single user 1, it's ok. But fail to init 2 and init 3. The console will suspend and no prompt. The below message still displays.

"getty: fail to open /dev/tty : no such device or address"

Any suggestion on this problem? Thankx.
Hero
Dietmar Konermann
Honored Contributor

Re: getty message

You still posted no fuser result...

# ps -f $(fuser /dev/console | sed 's/ */ -p /g')

Best regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
doug mielke
Respected Contributor

Re: getty message

the last entry on the console line in /etc/inittab is a label used in the file /etc/gettydefs

Make sure /etc/gettydefs is still there, and that there is an entry for console.

( if gettydefs is missing, no ttys should work )