LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 06: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, 10:48 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
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, 01: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, 10:25 AM   #4
namish
Member
 
Registered: Jan 2005
Posts: 51

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

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, 12:32 PM   #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, 02:49 PM   #7
namish
Member
 
Registered: Jan 2005
Posts: 51

Original Poster
Rep: Reputation: 15
bump...
 
  


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 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 10:14 AM
/jdk1.5.0_11/bin/java: cannot execute binary file philosophia Programming 3 12-20-2007 10:20 AM
/bin/basename: cannot execute binary file KasperLotus Linux - Software 7 02-14-2007 03:17 PM
/bin/tar: cannot execute binary file dhammika Linux - General 8 11-08-2005 05:17 PM
bash: /bin/cat: cannot execute binary file inTUXicated Linux - General 9 08-06-2003 08:56 AM


All times are GMT -5. The time now is 10:33 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