cancel
Showing results for 
Search instead for 
Did you mean: 

Inappropriate ioctl for device

Chakravarthi
Trusted Contributor

Inappropriate ioctl for device

why do you get this "Inappropriate ioctl for device" error message??

regards
chakri
3 REPLIES
Paul Cross_1
Respected Contributor

Re: Inappropriate ioctl for device

Under what conditions do you get the error?

Re: Inappropriate ioctl for device

Are you getting this error after typing in a command, or does this just appear in the system log?
Is it repeatable?
What version of OS is this?
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Chakravarthi
Trusted Contributor

Re: Inappropriate ioctl for device

i just want to understand in which satuation do you get this message?

i'm getting this message when i try to do init -q,

agetty is not running so i cant access server using console, i tries tracing the command using strace command, there i found this message

#strace -o /tmp/output /sbin/agetty -t 60 -L ttyS1 19200

i observe the following error message

ioctl(0, 0x5401, {B19200 -opost -isig -icanon -echo ...}) = 0
chown32(0xbffffa42, 0, 0) = 0
chmod("ttyS1", 0600) = 0
getpid() = 24595
ioctl(0, 0x5410, [24595]) = -1 ENOTTY (Inappropriate ioctl for dev
ice)
ioctl(0, 0x540b, 0x2) = 0
ioctl(0, 0x5402, {B19200 -opost -isig -icanon -echo ...}) = 0
fcntl64(0, 0x3, 0, 0xcbe) = 34818
fcntl64(0, 0x4, 0x8002, 0xbffffa42) = 0
alarm(60) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({1, 0}, {1, 0}) = 0
ioctl(0, 0x540b, 0) = 0
uname({sys="Linux", node="nmhost01", ...}) = 0
write(1, "\r\n", 2) = 2
open("/etc/issue", O_RDONLY|O_LARGEFILE) = 3
ioctl(0, 0x5403, {B19200 opost -isig -icanon -echo ...}) = -1 EINTR (Interrupted
system call)
--- SIGALRM (Alarm clock) ---
+++ killed by SIGALRM +++