On Tue, 18 Jul 2006, Ian C. Blenke wrote:
> Eben King wrote:
>
>> What could cause this?
>>
>> root@pc:/# /etc/init.d/sysklogd stop
>> * Stopping system log daemon...
>> /etc/init.d/sysklogd: line 71: /sbin/start-stop-daemon: cannot execute
>> binary file
>> [fail]
>>
>> root@pc:/# stat /sbin/start-stop-daemon
>> File: `/sbin/start-stop-daemon'
>> Size: 18520 Blocks: 40 IO Block: 4096 regular file
>> Device: 1602h/5634d Inode: 226463 Links: 1
>> Access: (0755/-rwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
>> Access: 2006-07-18 13:53:39.000000000 -0400
>> Modify: 2005-09-24 13:39:30.000000000 -0400
>> Change: 2006-01-30 17:45:06.000000000 -0500
>>
>> root@pc:/# lsattr /sbin/start-stop-daemon
>> ----------------- /sbin/start-stop-daemon
>>
>> root@pc:/#
>
>
> What do the following commands show:
>
> # file /sbin/start-stop-daemon
> # ldd /sbin/start-stop-daemon
>
> Also check to see if the file is full of nulls.
>
> # od -x /sbin/start-stop-daemon
Well it corrected itself in the mean time so any checks now would be
meaningless, but I'll be sure to check those if this happens again.
> If you see nothing but 0000's, the file has been zeroed out. We usually see
> this when file is open for writing when a system running XFS is powered off
> abruptly. Hooray for metadata journaled filesystems (where the actual data
> isn't journalled).
I'm not running XFS. Should I be? Is ext3 OK for a not-heavily-used
machine?
eben@pc:~$ mount
/dev/hdc2 on / type ext3 (rw,errors=remount-ro)
...
TTBOMK, all shutdown have been orderly and intentional.
FTR, those tests now produce:
eben@pc:~$ file /sbin/start-stop-daemon
/sbin/start-stop-daemon: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.0, dynamically linked (uses shared libs), stripped
eben@pc:~$ ldd /sbin/start-stop-daemon
linux-gate.so.1 => (0xffffe000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7e62000)
/lib/ld-linux.so.2 (0xb7f9e000)
-- -eben QebWenE01R@vTerYizUonI.nOetP http://royalty.no-ip.org:81 GEMINI: Your birthday party will be ruined once again by your explosive flatulence. Your love life will run into trouble when your fiancee hurls a javelin through your chest. -- Weird Al, _Your Horoscope for Today_ ----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.
This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 14:48:34 EDT