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 7F2921396D9 for ; Wed, 25 Oct 2017 19:26:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5A90AE0C63; Wed, 25 Oct 2017 19:26:26 +0000 (UTC) Received: from mail-qk0-x233.google.com (mail-qk0-x233.google.com [IPv6:2607:f8b0:400d:c09::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 06B1AE0C44 for ; Wed, 25 Oct 2017 19:26:25 +0000 (UTC) Received: by mail-qk0-x233.google.com with SMTP id l194so1438592qke.13 for ; Wed, 25 Oct 2017 12:26:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=1F9Lr8HoH+GjA9sEG5s5l8n+CXWwH52KAmCA5mgOj+k=; b=UFbaW2Z4ZZnpFqqE33I1opn1BMuQLwzzZwmb9ZYsaW063eRMzjevpP+QNps6n7iUKG pzp7iMuiZggY+C4STcLceH62KtZBCstejpbg5BkkZa0byqlv5mHAcf6K/RIaxdzww6K6 ly7QpF0b6pUmHXjTHw0ZA4USWvTKhKMWUYN1cG7incuEoBmsWHyQ72r3bPIh4pCPIXv9 KbelqyQHzi/Sq6nRlFw8s9MTmPtlW+TWyppoD1RoLleHnCt6C/lWON2sTArXiJGlJFUM kVml6N6nseMzJSoeLG4XkTe1HqtR7vaHgXRRfjHW/9OjSKOSJmmIHkzBbcl5FCMrQjnC MOsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=1F9Lr8HoH+GjA9sEG5s5l8n+CXWwH52KAmCA5mgOj+k=; b=R1QvuDk2R4ggAoL6CBD9s4R4JooKME42srXbiRSzSrMB91Gx1gYosWX40JDyvxPS7W Hu2ChmMRY8rAlzDl1vtukaBgfJWt0cRPdx21eEVUyFvKEkYDn3bOCJZ6ogslVIji+yZh TOkcwdkPaNExMp6+oD6gYrefCE2WIJolNMnQ6vdFnD0y9Jimr0uDp95zRFgJiLTxn/7Q xth/VTaHk9HyEBgfRTuICtCw/kJ3+LKQL1mPWnCdZZ8BfZWKMa0Nv8L1hcus2Q2bD2Xj S0ltlNVpRnUmbpn+MVEe8TW+PPPUGGGtMq81Pc9pj1eD4Y9vgBpepDUtkG6qOPC1M4pn qjMA== X-Gm-Message-State: AMCzsaXzDasN9cBeBG9vpqB0iZdMM2sKH/4+iScpK7xI6klYeI5aEFnI 844oEA9AIoM+lJsDasPWDDZTx4aI9V4ZS2Mi/CQsBQ== X-Google-Smtp-Source: ABhQp+RsfrtdC4WGCwPdPGt2pWprU4wXPA3x0DM9ai2+IhuQHy9yzrltKWGVCOR6HI/fvn1rULsokInEtQz/dEWrfXY= X-Received: by 10.55.9.203 with SMTP id 194mr4803277qkj.3.1508959584803; Wed, 25 Oct 2017 12:26:24 -0700 (PDT) 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 Received: by 10.200.3.1 with HTTP; Wed, 25 Oct 2017 12:25:44 -0700 (PDT) In-Reply-To: References: <13632be0-a3a3-2395-567e-7d67ff7cfd28@wht.com.au> From: Alexander Kapshuk Date: Wed, 25 Oct 2017 22:25:44 +0300 Message-ID: Subject: Re: [gentoo-user] Machine not booting properly: profile.env cannot execute binary file To: Gentoo mailing list Content-Type: multipart/alternative; boundary="001a114c4ba808681b055c6408b0" X-Archives-Salt: fafd97eb-f2eb-4baa-abab-731a49e24d79 X-Archives-Hash: a9229509d6b14e16c9d459eb50f24591 --001a114c4ba808681b055c6408b0 Content-Type: text/plain; charset="UTF-8" On Wed, Oct 25, 2017 at 9:45 PM, Andrew Lowe 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. --001a114c4ba808681b055c6408b0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On W= ed, 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,
> =C2=A0=C2=A0=C2=A0=C2=A0My machine went feral which resulted in me hav= ing 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.
>
> =C2=A0=C2=A0=C2=A0=C2=A0I 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
>
> =C2=A0=C2=A0=C2=A0=C2=A0I've now rebooted the machine using a rela= tively recent sysrescueCD
> and had a look at profile.env and it's binary but I thought it sho= uld
> have been text!!!! In the top line or so it mentions "ld" fo= r some
> reason. I checked the same file on the boot disk and it's text. On= e or
> two I found on line are also text.
>
> =C2=A0=C2=A0=C2=A0=C2=A0Does anyone have any idea as to what's goi= ng 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 a= nd
> then run env-update as it says in the header of the text versions I= 9;v seen?
>
> =C2=A0=C2=A0=C2=A0=C2=A0Thoughts greatly appreciated,
>
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Andrew
>
>

=C2=A0 =C2=A0 =C2=A0 =C2=A0 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.

=C2=A0 =C2=A0 =C2=A0 =C2=A0 The cause - I have no idea. It now works so I&#= 39;m happy. Thanks for the
suggestions people provided,

=C2=A0 =C2=A0 =C2=A0 =C2=A0 Andrew


Posting your query = on the gentoo-portage-dev mailing list might get you a more informed respon= se as to why this happened in the first place.

--001a114c4ba808681b055c6408b0--