LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-30-2012, 05:38 PM   #1
namish
Member
 
Registered: Jan 2005
Posts: 51

Rep: Reputation: 15
/bin/* : cannot execute binary file (and an openrc problem) [gentoo]


I was getting the aforementioned error on my computer. Between when things were working and when I started getting this error, I had made no changes to the computer: no new packages installed, no new kernel, no changes to config files.

I decided to reboot, and now I can't even boot into the system. It starts OpenRC and then I get errors that mainly say "/lib64/rc/init.d/*: Read-only file system." I did an fsck on / and didn't see any issues. I can also mount all my partitions and read files from them in the rescue disk. I assume the two problems are related, since they popped up simultaneously. Any ideas?
 
Old 04-01-2012, 09:48 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
In maintaining a functioning GNU/Linux system, it's vital that one learns to use a web browser to research answers to questions. Searching for "gentoo openrc errors", I found this in the Gentoo documentation which reveals the cause of the problem, and the solution.

Cause:
Quote:
2. Migration to OpenRC

Migration to OpenRC is fairly straightforward; it will be pulled in as part of your regular upgrade process by your package manager. The most important step actually comes after you install the new >=sys-apps/baselayout-2 and sys-apps/openrc packages. It is critical that you run dispatch-conf and ensure your /etc is up to date before rebooting. Failure to do so will result in an unbootable system and will require the use of the Gentoo LiveCD to perform the steps below to repair your system.
Solution: the full text from which the quote above is an excerpt.
http://www.gentoo.org/doc/en/openrc-migration.xml

Good luck with restoring your system to a bootable state.
 
Old 04-02-2012, 12:38 PM   #3
namish
Member
 
Registered: Jan 2005
Posts: 51

Original Poster
Rep: Reputation: 15
The 'solution' you googled does not apply in my circumstances, since I have done nothing to modify any of /etc, as I mentioned in my post. This is not a new installation. There are no changes that dispatch-conf picks up. So please, read things more carefully next time and hold back on the condescending remarks.

At any rate, here is my fstab and a dmesg inside the chrooted system. There seems the be some clashing of my windows partition (/dev/sda2) going on, but I can't quite tell what is going on.

fstab (excluding some network drives):
Code:
/dev/sda5		/boot		ext2		noauto,noatime	1 2
/dev/sda7		/		ext3		noatime		0 1
/dev/sda6		swap		swap		sw		0 0
/dev/cdrom		/mnt/cdrom	auto		noauto,ro,users	0 0
/dev/fd0		/mnt/floppy	auto		noauto,users	0 0
dmesg: http://pastebin.com/C8mXndzu
 
Old 04-04-2012, 09:25 AM   #4
namish
Member
 
Registered: Jan 2005
Posts: 51

Original Poster
Rep: Reputation: 15
bump.
 
Old 04-04-2012, 11:16 AM   #5
TKH
Member
 
Registered: Jul 2011
Location: Milky Way
Distribution: Ubuntu, LFS, Slackware, Fedora
Posts: 223

Rep: Reputation: 20
Possibly, it is a problem with processor architechture. A 32-bit processor cannot run a 64-bit binary.
 
Old 04-04-2012, 11:32 AM   #6
namish
Member
 
Registered: Jan 2005
Posts: 51

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by TKH View Post
Possibly, it is a problem with processor architechture. A 32-bit processor cannot run a 64-bit binary.
Yeah, that seems to be the most common cause with this particular error, but it isn't the case here. The installation had been working for months prior.
 
Old 04-07-2012, 01:49 PM   #7
namish
Member
 
Registered: Jan 2005
Posts: 51

Original Poster
Rep: Reputation: 15
bump...
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
-bash: /bin/umount: cannot execute binary file peeths003 Linux - Software 12 07-19-2009 09:14 AM
/jdk1.5.0_11/bin/java: cannot execute binary file philosophia Programming 3 12-20-2007 09:20 AM
/bin/basename: cannot execute binary file KasperLotus Linux - Software 7 02-14-2007 02:17 PM
/bin/tar: cannot execute binary file dhammika Linux - General 8 11-08-2005 04:17 PM
bash: /bin/cat: cannot execute binary file inTUXicated Linux - General 9 08-06-2003 07:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:39 AM.

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
Open Source Consulting | Domain Registration