Code:
[root@asus root]$ strace hddtemp -f /opt/etc/hddtemp.db /dev/discs/disc0/disc
execve("/opt/usr/bin/hddtemp", ["hddtemp", "-f", "/opt/etc/hddtemp.db", "/dev/di
scs/disc0/disc"], [/* 10 vars */]) = 0
svr4_syscall() = -1 ERRNO_4090 (Unknown error 4090)
stat("/opt/etc/ld.so.cache", {st_mode=S_IFREG|0644, st_size=9818, ...}) = 0
open("/opt/etc/ld.so.cache", O_RDONLY) = 3
old_mmap(NULL, 9818, PROT_READ, MAP_SHARED, 0, 0) = 0x2ab00000
close(3) = 0
open("/opt/lib", O_RDONLY) = 3
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 0, 0) = 0x
2aaa9000
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0\220\5\0\0004\0\0\0"...
, 4096) = 3072
old_mmap(NULL, 69632, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaaa000
old_mmap(0x2aaaa000, 1992, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, -1, 0) =
0x2aaaa000
old_mmap(0x2aaba000, 2036, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0) =
0x2aaba000
close(3) = 0
munmap(0x2aaa9000, 4096) = 0
open("/opt/lib/libc.so.0", O_RDONLY) = 3
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 0, 0) = 0x
2aaa9000
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 40
96) = 4096
old_mmap(NULL, 741376, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2ab03000
old_mmap(0x2ab03000, 645496, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, -1, 0)
= 0x2ab03000
old_mmap(0x2abb1000, 4696, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0) =
0x2abb1000
old_mmap(0x2abb3000, 19168, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANON
YMOUS, -1, 0) = 0x2abb3000
close(3) = 0
munmap(0x2aaa9000, 4096) = 0
munmap(0x2ab00000, 9818) = 0
ioctl(0, TIOCNXCL, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TIOCNXCL, {B38400 opost isig icanon echo ...}) = 0
brk(0) = 0x4179c4
brk(0x4189c4) = 0x4189c4
brk(0x419000) = 0x419000
open("/dev/discs/disc0/disc", O_RDONLY|O_NONBLOCK) = 3
ioctl(3, 0x5386, 0x7fff7a88) = 0
ioctl(3, 0x2285, {'S', SG_DXFER_FROM_DEV, cmd[6]=[12, 00, 00, 00, 24, 00], mx_sb
_len=0, iovec_count=0, dxfer_len=36, timeout=3000, flags=0}) = -1 EINVAL (Invali
d argument)
ioctl(3, FIBMAP, 0x7fff7220) = 0
ioctl(3, 0x30d, 0x417780) = -1 EINVAL (Invalid argument)
ioctl(3, 0x5386, 0x7fff7cb0) = 0
ioctl(3, FIBMAP, 0x7fff7428) = 0
ioctl(3, FIBMAP, 0x7fff6ee8) = 0
ioctl(3, FIBMAP, 0x7fff6ee0) = 0
ioctl(3, FIBMAP, 0x7fff7000) = 134217730
close(3) = 0
write(2, "/dev/discs/disc0/disc", 21/dev/discs/disc0/disc) = 21
write(2, ": ", 2: ) = 2
write(2, "log sense failed : Invalid argum"..., 35log sense failed : Invalid arg
ument) = 35
write(2, "\n", 1
) = 1
exit(0) = ?
[root@asus root]$