* [gentoo-user] Machine not booting properly: profile.env cannot execute binary file @ 2017-10-25 3:28 Andrew Lowe 2017-10-25 3:50 ` Dale ` (2 more replies) 0 siblings, 3 replies; 5+ messages in thread From: Andrew Lowe @ 2017-10-25 3:28 UTC (permalink / raw To: gentoo-user Hi all, My machine went feral which resulted in me having to kill the power to kill it. Upon reboot everything looked good, fsck did it's job, [ok]'s scrolled up the screen etc and then I got the login prompt. I entered my username & password and then the fun began. I got: -bash: .: /etc/profile.env: cannot execute binary file If I tried any command, say ls, I got: -bash: ls: no such file or dir I've now rebooted the machine using a relatively recent sysrescueCD and had a look at profile.env and it's binary but I thought it should have been text!!!! In the top line or so it mentions "ld" for some reason. I checked the same file on the boot disk and it's text. One or two I found on line are also text. Does anyone have any idea as to what's going on here? Should I just grab the profile.env from the boot disk and drop it into the /etc dir? Or should I go through the whole process of chroot off a gentoo disc and then run env-update as it says in the header of the text versions I'v seen? Thoughts greatly appreciated, Andrew ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] Machine not booting properly: profile.env cannot execute binary file 2017-10-25 3:28 [gentoo-user] Machine not booting properly: profile.env cannot execute binary file Andrew Lowe @ 2017-10-25 3:50 ` Dale 2017-10-25 5:37 ` Alexander Kapshuk 2017-10-25 18:45 ` Andrew Lowe 2 siblings, 0 replies; 5+ messages in thread From: Dale @ 2017-10-25 3:50 UTC (permalink / raw To: gentoo-user Andrew Lowe wrote: > Hi all, > My machine went feral which resulted in me having to kill the > power to kill it. Upon reboot everything looked good, fsck did it's > job, [ok]'s scrolled up the screen etc and then I got the login > prompt. I entered my username & password and then the fun began. > > I got: > > -bash: .: /etc/profile.env: cannot execute binary file > > If I tried any command, say ls, I got: > > -bash: ls: no such file or dir > > I've now rebooted the machine using a relatively recent > sysrescueCD and had a look at profile.env and it's binary but I > thought it should have been text!!!! In the top line or so it mentions > "ld" for some reason. I checked the same file on the boot disk and > it's text. One or two I found on line are also text. > > Does anyone have any idea as to what's going on here? Should I > just grab the profile.env from the boot disk and drop it into the /etc > dir? Or should I go through the whole process of chroot off a gentoo > disc and then run env-update as it says in the header of the text > versions I'v seen? > > Thoughts greatly appreciated, > > Andrew > > I've heard of that problem you have before but can't recall what causes it. This should give you some links to look into in the meantime. https://www.startpage.com/do/search?q=%2Fetc%2Fprofile.env%3A+cannot+execute+binary+file&lui=english My main reason for replying, you may want to enable the Sys-Rq key sequence, if it isn't already. While rare, I sometimes get a hard lock up and at least that gives file systems a chance to sync up and to have a normal and safe umount of partitions. http://www.linuxhowtos.org/Tips%20and%20Tricks/sysrq.htm Hope that helps. Dale :-) :-) ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] Machine not booting properly: profile.env cannot execute binary file 2017-10-25 3:28 [gentoo-user] Machine not booting properly: profile.env cannot execute binary file Andrew Lowe 2017-10-25 3:50 ` Dale @ 2017-10-25 5:37 ` Alexander Kapshuk 2017-10-25 18:45 ` Andrew Lowe 2 siblings, 0 replies; 5+ messages in thread From: Alexander Kapshuk @ 2017-10-25 5:37 UTC (permalink / raw To: Gentoo mailing list [-- Attachment #1: Type: text/plain, Size: 1310 bytes --] On Wed, Oct 25, 2017 at 6:28 AM, Andrew Lowe <agl@wht.com.au> wrote: > Hi all, > My machine went feral which resulted in me having to kill the > power to kill it. Upon reboot everything looked good, fsck did it's job, > [ok]'s scrolled up the screen etc and then I got the login prompt. I > entered my username & password and then the fun began. > > I got: > > -bash: .: /etc/profile.env: cannot execute binary file > > If I tried any command, say ls, I got: > > -bash: ls: no such file or dir > > I've now rebooted the machine using a relatively recent > sysrescueCD and had a look at profile.env and it's binary but I thought it > should have been text!!!! In the top line or so it mentions "ld" for some > reason. I checked the same file on the boot disk and it's text. One or two > I found on line are also text. > > Does anyone have any idea as to what's going on here? Should I > just grab the profile.env from the boot disk and drop it into the /etc dir? > Or should I go through the whole process of chroot off a gentoo disc and > then run env-update as it says in the header of the text versions I'v seen? > > Thoughts greatly appreciated, > > Andrew > > Something else for you to try. https://forums.gentoo.org/viewtopic-t-797683-start-0.html [-- Attachment #2: Type: text/html, Size: 1909 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] Machine not booting properly: profile.env cannot execute binary file 2017-10-25 3:28 [gentoo-user] Machine not booting properly: profile.env cannot execute binary file Andrew Lowe 2017-10-25 3:50 ` Dale 2017-10-25 5:37 ` Alexander Kapshuk @ 2017-10-25 18:45 ` Andrew Lowe 2017-10-25 19:25 ` Alexander Kapshuk 2 siblings, 1 reply; 5+ messages in thread From: Andrew Lowe @ 2017-10-25 18:45 UTC (permalink / raw To: gentoo-user On 25/10/17 11:28, Andrew Lowe wrote: > Hi all, > My machine went feral which resulted in me having to kill the power > to kill it. Upon reboot everything looked good, fsck did it's job, > [ok]'s scrolled up the screen etc and then I got the login prompt. I > entered my username & password and then the fun began. > > I got: > > -bash: .: /etc/profile.env: cannot execute binary file > > If I tried any command, say ls, I got: > > -bash: ls: no such file or dir > > I've now rebooted the machine using a relatively recent sysrescueCD > and had a look at profile.env and it's binary but I thought it should > have been text!!!! In the top line or so it mentions "ld" for some > reason. I checked the same file on the boot disk and it's text. One or > two I found on line are also text. > > Does anyone have any idea as to what's going on here? Should I just > grab the profile.env from the boot disk and drop it into the /etc dir? > Or should I go through the whole process of chroot off a gentoo disc and > then run env-update as it says in the header of the text versions I'v seen? > > Thoughts greatly appreciated, > > Andrew > > Well, I managed to work this out. I grabbed profile.env from a laptop running gentoo and using sysrescuecd booted the desktop and dropped profile.env into it's /etc dir. Fiddled the permissions and rebooted. This time after the reboot, it only told me that it couldn't find commands, ls, cd etc. Obviously pathing wasn't working. I found out where env-update lived, /usr/sbin/env-update, providing the full path to it, ran it then kicked over into another terminal, logged in and hey presto, things are good. A reboot and this was confirmed. The cause - I have no idea. It now works so I'm happy. Thanks for the suggestions people provided, Andrew ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] Machine not booting properly: profile.env cannot execute binary file 2017-10-25 18:45 ` Andrew Lowe @ 2017-10-25 19:25 ` Alexander Kapshuk 0 siblings, 0 replies; 5+ messages in thread From: Alexander Kapshuk @ 2017-10-25 19:25 UTC (permalink / raw To: Gentoo mailing list [-- Attachment #1: Type: text/plain, Size: 2144 bytes --] On Wed, Oct 25, 2017 at 9:45 PM, Andrew Lowe <agl@wht.com.au> wrote: > On 25/10/17 11:28, Andrew Lowe wrote: > > Hi all, > > My machine went feral which resulted in me having to kill the power > > to kill it. Upon reboot everything looked good, fsck did it's job, > > [ok]'s scrolled up the screen etc and then I got the login prompt. I > > entered my username & password and then the fun began. > > > > I got: > > > > -bash: .: /etc/profile.env: cannot execute binary file > > > > If I tried any command, say ls, I got: > > > > -bash: ls: no such file or dir > > > > I've now rebooted the machine using a relatively recent sysrescueCD > > and had a look at profile.env and it's binary but I thought it should > > have been text!!!! In the top line or so it mentions "ld" for some > > reason. I checked the same file on the boot disk and it's text. One or > > two I found on line are also text. > > > > Does anyone have any idea as to what's going on here? Should I just > > grab the profile.env from the boot disk and drop it into the /etc dir? > > Or should I go through the whole process of chroot off a gentoo disc and > > then run env-update as it says in the header of the text versions I'v > seen? > > > > Thoughts greatly appreciated, > > > > Andrew > > > > > > Well, I managed to work this out. I grabbed profile.env from a > laptop > running gentoo and using sysrescuecd booted the desktop and dropped > profile.env into it's /etc dir. Fiddled the permissions and rebooted. > This time after the reboot, it only told me that it couldn't find > commands, ls, cd etc. Obviously pathing wasn't working. I found out > where env-update lived, /usr/sbin/env-update, providing the full path to > it, ran it then kicked over into another terminal, logged in and hey > presto, things are good. A reboot and this was confirmed. > > The cause - I have no idea. It now works so I'm happy. Thanks for > the > suggestions people provided, > > Andrew > > Posting your query on the gentoo-portage-dev mailing list might get you a more informed response as to why this happened in the first place. [-- Attachment #2: Type: text/html, Size: 2865 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-10-25 19:26 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2017-10-25 3:28 [gentoo-user] Machine not booting properly: profile.env cannot execute binary file Andrew Lowe 2017-10-25 3:50 ` Dale 2017-10-25 5:37 ` Alexander Kapshuk 2017-10-25 18:45 ` Andrew Lowe 2017-10-25 19:25 ` Alexander Kapshuk
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox