LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-02-2006, 01:39 AM   #1
__spc__
Member
 
Registered: Feb 2006
Location: Bridgend, Wales
Distribution: Kubuntu 10.04.25 (Feb 2011)
Posts: 172

Rep: Reputation: 30
/etc/rc.d/rc.6: cannot execute binary file


Apologies if this is a double post, but I think my last one went awry somewhere...

Whenever I try to shutdown, either through KDE, three-fingered salute, or using the shutdown command, I get this message:

/etc/rc.d/rc.6: /etc/rc.d/rc.6: cannot execute binary file
INIT: no more processes in this runlevel

I then have to hard reset the machine, forcing a fsck on next booting (not ideal!)

Any pointers much appreciated...
 
Old 04-02-2006, 03:40 AM   #2
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 54
Have you made any changes to rc.6? Is init in /sbin? What are the permissions?
 
Old 04-02-2006, 10:24 AM   #3
__spc__
Member
 
Registered: Feb 2006
Location: Bridgend, Wales
Distribution: Kubuntu 10.04.25 (Feb 2011)
Posts: 172

Original Poster
Rep: Reputation: 30
Simple answers - No & Yes!

Still lost...
 
Old 04-02-2006, 11:34 AM   #4
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 54
What are the permissions?
 
Old 04-06-2006, 01:05 PM   #5
__spc__
Member
 
Registered: Feb 2006
Location: Bridgend, Wales
Distribution: Kubuntu 10.04.25 (Feb 2011)
Posts: 172

Original Poster
Rep: Reputation: 30
root@laptop:/sbin# ls -l init
-rwxr-xr-x 1 root bin 470972 2005-08-04 19:29 init*
 
Old 04-06-2006, 01:09 PM   #6
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 54
That looks fine, except for the asterisk. What is that? It shouldn't come from an ls -l.

What about the permission on /etc/rc.d/rc.6?
 
Old 04-06-2006, 02:00 PM   #7
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally Posted by Randux
That looks fine, except for the asterisk. What is that? It shouldn't come from an ls -l.
I think that just shows it's executable (at least, I've seen it only on files that have executable permissions set).
 
Old 04-06-2006, 02:01 PM   #8
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 54
That's if he did ls -F, which is why I'm wondering....
 
Old 04-07-2006, 01:00 PM   #9
__spc__
Member
 
Registered: Feb 2006
Location: Bridgend, Wales
Distribution: Kubuntu 10.04.25 (Feb 2011)
Posts: 172

Original Poster
Rep: Reputation: 30
I also get the error for rc.0 - I've no idea what's caused this; I've made no system changes apart from configuring dhcpcd to work static IP addresses on some of my PCs' NICs. I stopped sendmail, BTW, as I don't use it. 'ls -l' as below on rc.d/

root@laptop:/etc/rc.d# ls -l
total 348
lrwxrwxrwx 1 root root 4 2006-03-11 14:14 rc.0 -> rc.6*
-rwxr-xr-x 1 root root 896 2006-03-27 20:49 rc.4*
-rwxr-xr-x 1 root root 143360 2006-03-30 19:07 rc.6*
-rwxr-xr-x 1 root root 1989 2006-03-27 20:49 rc.K*
-rwxr-xr-x 1 root root 8144 2006-03-27 20:49 rc.M*
-rwxr-xr-x 1 root root 10996 2006-03-27 20:49 rc.S*
-rwxr-xr-x 1 root root 466 2006-03-27 20:49 rc.acpid*
-rwxr-xr-x 1 root root 1650 2006-03-27 20:49 rc.alsa*
-rw-r--r-- 1 root root 1032 2006-03-27 20:49 rc.atalk
-rw-r--r-- 1 root root 1031 2006-03-27 20:49 rc.bind
-rw-r--r-- 1 root root 3942 2006-03-27 20:49 rc.cups
-rwxr-xr-x 1 root root 512 2006-03-27 20:49 rc.dnsmasq*
-rwxr-xr-x 1 root root 119 2006-03-27 20:49 rc.font.new*
-rwxr-xr-x 1 root root 1148 2006-03-27 20:49 rc.gpm*
-rwxr-xr-x 1 root root 1529 2006-03-27 20:49 rc.hotplug*
-rwxr-xr-x 1 root root 401 2006-03-27 20:49 rc.httpd*
-rwxr-xr-x 1 root root 8270 2006-03-27 20:49 rc.inet1*
-rw-r--r-- 1 root root 3609 2006-04-01 14:51 rc.inet1.conf
-rwxr-xr-x 1 root root 5267 2006-03-27 20:49 rc.inet2*
-rwxr-xr-x 1 root root 497 2006-03-27 20:49 rc.inetd*
-rw-r--r-- 1 root root 1924 2006-03-27 20:49 rc.ip_forward
-rwxr-xr-x 1 root root 344 2006-03-28 19:25 rc.local*
-rwxr-xr-x 1 root root 25400 2006-03-27 20:49 rc.modules*
-rw-r--r-- 1 root root 2300 2006-03-27 20:49 rc.mysqld
-rwxr-xr-x 1 root root 2389 2006-03-27 20:49 rc.nfsd*
-rwxr-xr-x 1 root root 4790 2006-03-27 20:49 rc.pcmcia*
-rw-r--r-- 1 root root 905 2006-03-27 20:49 rc.portmap
-rwxr-xr-x 1 root root 791 2006-03-27 20:49 rc.samba*
-rw-r--r-- 1 root root 1169 2006-03-27 20:49 rc.saslauthd
-rw-r--r-- 1 root root 687 2006-03-27 20:49 rc.sendmail
-rwxr-xr-x 1 root root 2895 2006-03-27 20:49 rc.serial*
-rwxr-xr-x 1 root root 1222 2006-03-27 20:49 rc.sshd*
-rwxr-xr-x 1 root root 860 2006-03-27 20:49 rc.syslog*
-rwxr-xr-x 1 root root 1740 2006-03-27 20:49 rc.sysvinit*
-rw-r--r-- 1 root root 1396 2006-03-27 20:49 rc.udev
-rwxr-xr-x 1 root root 8293 2006-03-27 20:49 rc.wireless*
-rwxr-xr-x 1 root root 658 2006-03-28 18:57 rc.wireless.conf*
-rwxr-xr-x 1 root root 2323 2006-03-27 20:49 rc.yp*
root@laptop:/etc/rc.d#
 
Old 04-08-2006, 01:30 PM   #10
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 54
I'm sorry, I don't see anything obvious at the moment and I am not on my Slack machines so I can't compare. Hopefully one of the gurus will help out here. Guys????
 
Old 04-17-2006, 03:51 AM   #11
__spc__
Member
 
Registered: Feb 2006
Location: Bridgend, Wales
Distribution: Kubuntu 10.04.25 (Feb 2011)
Posts: 172

Original Poster
Rep: Reputation: 30
Somewhere along the way, rc.6 MUST have got modified as it had a different date stamp from all the other rc.n files (which had the same date, as the initial install).

The problem being with my laptop, I had the identical install on my desktop, so I copied over the rc.6 file from that machine and now the problem on the laptop is solved. Strangely, the dates for the rc.n files on the desktop were all different.

I even got wpa_supplicant with WPA working aswell, so today's a good day in Linux-land for me.
 
Old 04-17-2006, 12:12 PM   #12
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 54
Glad to see you have it fixed.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot Execute Binary File meshcurrent Linux - Software 3 07-09-2005 04:39 PM
cannot execute binary file Quest101 Linux From Scratch 8 11-19-2004 02:16 PM
Cannot execute binary file??? Wimpie22 Linux - General 3 01-11-2004 05:38 PM
Cannot execute binary file Nooodle007 Linux - Software 2 06-25-2003 02:25 PM
Cannot execute binary file Bigun Linux - Software 17 11-03-2002 07:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration