From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5DFB41396D9 for ; Wed, 25 Oct 2017 03:29:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DB6AF2BC019; Wed, 25 Oct 2017 03:28:53 +0000 (UTC) Received: from pecan2.exetel.com.au (pecan2-mail.exetel.com.au [220.233.0.71]) by pigeon.gentoo.org (Postfix) with ESMTP id 55FC0E07D0 for ; Wed, 25 Oct 2017 03:28:53 +0000 (UTC) Received: from 217.249.70.115.static.exetel.com.au ([115.70.249.217] helo=[192.168.14.1]) by pecan2.exetel.com.au with esmtp (Exim 4.84) (envelope-from ) id 1e7CN9-0000Eg-1n for gentoo-user@lists.gentoo.org; Wed, 25 Oct 2017 14:28:51 +1100 To: gentoo-user@lists.gentoo.org From: Andrew Lowe Subject: [gentoo-user] Machine not booting properly: profile.env cannot execute binary file Organization: Wombat High Tech Message-ID: <13632be0-a3a3-2395-567e-7d67ff7cfd28@wht.com.au> Date: Wed, 25 Oct 2017 11:28:50 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: d6e1dcc3-afe0-4b31-a351-2b96b15bf6f9 X-Archives-Hash: d667774189ce8e2f55d96485de12a53d 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