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 ED63F139083 for ; Mon, 11 Dec 2017 19:13:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 251A0E1076; Mon, 11 Dec 2017 19:12:57 +0000 (UTC) Received: from mailsec107.isp.belgacom.be (mailsec107.isp.belgacom.be [195.238.20.103]) (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 5C1C1E105C for ; Mon, 11 Dec 2017 19:12:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=skynet.be; i=@skynet.be; q=dns/txt; s=securemail; t=1513019576; x=1544555576; h=date:from:reply-to:subject:to:in-reply-to:message-id: mime-version:content-transfer-encoding; bh=ElOWuLLOQHrgqRvyJUOjO/SNd85OZJlJ0d8v7ir1iE8=; b=vC7g1le3V2EkF9hISXHGGed4Eadidge+ExMNgSJ0oyb9b8HjVuLOJI4H MOIm8BE9pSi7u5XVouMdFkVkAxsiZA==; IronPort-PHdr: =?us-ascii?q?9a23=3AqBFz4R+o/QDAFv9uRHKM819IXTAuvvDOBiVQ1KB4?= =?us-ascii?q?1+IcTK2v8tzYMVDF4r011RmSDNWds6oMotGVmpioYXYH75eFvSJKW713fDhBt/?= =?us-ascii?q?8rmRc9CtWOE0zxIa2iRSU7GMNfSA0tpCnjYgBaF8nkelLdvGC54yIMFRXjLwp1?= =?us-ascii?q?Ifn+FpLPg8it2e2//57ebx9UiDahfLh/MAi4oQLNu8cMnIBsMLwxyhzHontJf+?= =?us-ascii?q?RZ22ZlLk+Nkhj/+8m94odt/zxftPw9+cFAV776f7kjQrxDEDsmKWE169b1uhTF?= =?us-ascii?q?UACC+2ETUmQSkhpPHgjF8BT3VYr/vyfmquZw3jSRMMvrRr42RDui9b9mRhHohi?= =?us-ascii?q?cdKjA37mPYhMtzgq1UvB2uuhNxzpXIYIGMLvdyYrnQcc8ESWdHQ81fVzZBAoS5?= =?us-ascii?q?b4YXDeQOI+JYr4zgp1sSsBCwAROjBPn1xT9VnX/5wa062PkmHAHExgMgBcgBsG?= =?us-ascii?q?nPrNrpNKcfSvu1zKrIzDXFcfxWxS3x55PWfR04p/yHQLF+cdLJxEUyCw/Iik+c?= =?us-ascii?q?pZH7Mz6WzOgBrWeW4ul6We6xhGMqqwd8qSW1yMg2kInGnIcVx0jB9SV+3Yk6O8?= =?us-ascii?q?W1SFV+Yd64CJtQsDyaN5duTsMiXW5ovCE6x6UAuZ6meSgF0o0ryAXBZPCfcoiI?= =?us-ascii?q?5AzsVPqJLDtlmH5ofKiziwus/UWj0OHwSMa53VVQoiZbndTBtmgB1xnJ5ciGTv?= =?us-ascii?q?t98F2h2TGK1w3L6OFLO1o0mrDGK5463rEwloEesV/AHi72nkX5krOWel8/9ee2?= =?us-ascii?q?8+jneKnppoeAN49ojQHzKqsuldK5AeQkNQgOWHGX+fmn1LL95030W7FKjvwtkq?= =?us-ascii?q?nFq5DWP8sbqbC/Aw9J1YYj7AyzDzC80NQXzjE7KwdKdRSbiI+sJkrDOtj8DOyj?= =?us-ascii?q?mBKjnTF3wPeAOafuUa/ANnzSrLC0f79n4lNHwwob1tNO4Z9ITLsMc9zpXUqklN?= =?us-ascii?q?HcCwIley692e/6E959ntccUHiGH7SSMIvJsk6O6/5pKeTaN9xdgyr0N/Vwv62m?= =?us-ascii?q?tnQ+g1JIJaQ=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2CoAgBM2C5a//X4gG1bGgEBAQEBAgEBA?= =?us-ascii?q?QEIAQEBAYM+gVqPPpAHNAGWV4IVCoU7AoRxQhYBAQEBAQEBAQEBaiiCOCKCSQE?= =?us-ascii?q?FOhw7AxhnHopFmByHdYpHhHKGJINohUqDK4UfTIUsBYo/iUKPEKkEll6BOyYFL?= =?us-ascii?q?YFPTCAYgWh8hFVAihYBAQE?= X-IPAS-Result: =?us-ascii?q?A2CoAgBM2C5a//X4gG1bGgEBAQEBAgEBAQEIAQEBAYM+gVq?= =?us-ascii?q?PPpAHNAGWV4IVCoU7AoRxQhYBAQEBAQEBAQEBaiiCOCKCSQEFOhw7AxhnHopFm?= =?us-ascii?q?ByHdYpHhHKGJINohUqDK4UfTIUsBYo/iUKPEKkEll6BOyYFLYFPTCAYgWh8hFV?= =?us-ascii?q?AihYBAQE?= Received: from 245.248-128-109.adsl-dyn.isp.belgacom.be (HELO numa-be) ([109.128.248.245]) by relay.skynet.be with ESMTP/TLS/AES256-GCM-SHA384; 11 Dec 2017 20:12:54 +0100 Date: Mon, 11 Dec 2017 20:12:49 +0100 From: Helmut Jarausch Subject: Re: [gentoo-user] How to repair a 'secondary Gentoo system' To: gentoo-user@lists.gentoo.org In-Reply-To: <20171211165842.dovnjea2yza27log@grusum.endjinn.de> (from gentoo@dhaller.de on Mon Dec 11 17:58:42 2017) X-Mailer: Balsa 2.5.3a-269-g3a9924b5 Message-Id: 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=us-ascii; DelSp=Yes; Format=Flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable X-Archives-Salt: cec5f48f-ca6c-4e38-b143-228e40854de3 X-Archives-Hash: 5b30b512f81712ade6f9dd2b51780983 On 12/11/2017 05:58:42 PM, David Haller wrote: > Hello, >=20 > On Mon, 11 Dec 2017, Helmut Jarausch wrote: > >But now, don't ask me why, > >chroot /OtherGentoo /bin/bash > >dies of a segment fault. > > > >Is there any means to repair such a Gentoo system short of =20 > rebuilding it > >(nearly) from scratch? >=20 > How about a bit of debugging first? >=20 > # catchsegv chroot /OtherGentoo /bin/bash > # cd /OtherGentoo/ && chroot /OtherGentoo/ /bin/bash >=20 > (ISTR, there was/is a reason for first cd-ing into the chroot and then > chrooting with the full-path...) >=20 > Have you (bind) mounted /sys, /dev, /proc into the chroot? >=20 > I use this as the top and bottom of a little bit longer > chroot-wrapper-script: >=20 > =3D=3D=3D=3D /root/bin/chrooter =3D=3D=3D=3D > #!/bin/bash > root=3D"$1" > shift >=20 > test -e "${root}/proc/kcore" || mount --bind /proc/ "${root}/proc" > test -e "${root}/sys/block" || mount --bind /sys/ "${root}/sys" > test -e "${root}/dev/root" || mount --bind /dev/ "${root}/dev" > test -e "${root}/dev/pts/0" || mount --bind /dev/pts/ =20 > "${root}/dev/pts" > [..] > cd "$root" > chroot "$root" /bin/bash -l > =3D=3D=3D=3D My procedure is quite similar, I only use mount --rbind /dev/ "${root}/dev" and mount --rbind /run /${NROOT}/run --- I've tried catchsegv chroot /OtherGentoo /bin/bash as well as chroot /OtherGentoo catchsegv /bin/bash In both cases, I don't get any error messages BUT I don't get chrooted. Strangely enough, dmesg shows systemd-coredump[25375]: Failed to connect to coredump service: No such =20 file or directory although I'm not using system but openrc on both system Thanks, Helmut =