cancel
Showing results for 
Search instead for 
Did you mean: 

error code

 
navin
Super Advisor

error code

Any idea about the below error and fix

getty: cannot open "tty0p1". errno: 2


Thanks much
Learning ...
9 REPLIES
Raj D.
Honored Contributor

Re: error code

Navin,


getty: cannot open "tty0p1". errno: 2

- check your inittab file , getty respawns the port from there,
# cat /etc/inittab | grep -i getty
# Also check the port device file is available in /dev/pts/ or under /dev/tty/

-tty0p1 is the port number you are trying to access , however it is not accessible.


Hth,
Raj.


" If u think u can , If u think u cannot , - You are always Right . "
James R. Ferguson
Acclaimed Contributor

Re: error code

Hi:

Standard error #2 is called 'ENOENT' and means "No such file or directory". See: '/usr/include/sys/errno.h'

Regards!

...JRF...
navin
Super Advisor

Re: error code

Thank you very much - can u please kindly suggest the fix
Learning ...
Raj D.
Honored Contributor

Re: error code

Pls. describe more abot this problem:
-What are you trying to connect, ?
-and where are you getting this message,is it in syslog or scrolling on console, or somewhere else.?
- Is the device file present in the system , under /dev/pty/ or /dev/pts/ ,
-or can you run a find command like:# find /dev -type f "tty0p1" -exec ls -l {} \;


" If u think u can , If u think u cannot , - You are always Right . "
navin
Super Advisor

Re: error code

no Raj..those do not exist.the errors are in syslog.log and now getting more than before.
thanks
Learning ...
Raj D.
Honored Contributor

Re: error code

Navin,
Can you check :
# cat /etc/inittab | grep -i getty

Do you see anything for tty0p1,
Hth,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Bill Hassell
Honored Contributor

Re: error code

It sounds like some root user has removed the device file for a serial port. Run insf -e to check and recreate any missing device files. The device file would be: /dev/tty0p1


Bill Hassell, sysadmin
Kapil Jha
Honored Contributor

Re: error code

http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1255482897371+28353475&threadId=364961


DO you have tty files in /dev directory?

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Laurent Menase
Honored Contributor

Re: error code

# mksf -C tty -I 0 -p 1 -v


if it doesn't work, gives the result of a
ioscan -fnkC tty

Some hardware don't have a p1 on GSP
if it is the case, comment the line getty for tty0p1 in your /etc/inittab