From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 738A513877A for ; Fri, 1 Aug 2014 23:39:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E9F83E0B8D; Fri, 1 Aug 2014 23:39:05 +0000 (UTC) Received: from mail-yh0-f42.google.com (mail-yh0-f42.google.com [209.85.213.42]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CEC64E0B6E for ; Fri, 1 Aug 2014 23:39:04 +0000 (UTC) Received: by mail-yh0-f42.google.com with SMTP id a41so3035762yho.29 for ; Fri, 01 Aug 2014 16:39:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=eHqJ8IQLmA+21s3KFWUYOZOmvzZ5wlSHjbqkFva9wd0=; b=ccDgc5GZj8ZVtwk3wJvfmEQ3bwDlS/+mDDwWwghP3i8b4ezEMOTehHAxTmLn7ssLU1 7HM+hCKEBI7esrsZK223lt/qm8F1QrxsrENX6ZNxPzeNketMVY5FTO14FXYIl+FJf+a/ vn5S7orYQpzRZUuyl6OTsT8TQmrcR+3xnflI3R80Tn6Ll5tX9dI7ypXjw+fc2VAaOgMv J/xIM2AdSUvGexHmcobLwomp/grtBOXijuQPPyhFAstt7qWBjVikAph2ZJCEM4qZAB4B jHGSeUomM7VkXgMxBmrFJqo8eGFJa8O+TUhZqR91DtB8R4mQ9hUkUqq7coMQIBMk+2Cj cE4A== X-Received: by 10.236.149.48 with SMTP id w36mr13174yhj.181.1406936343745; Fri, 01 Aug 2014 16:39:03 -0700 (PDT) Received: from [192.168.2.5] (adsl-65-0-95-27.jan.bellsouth.net. [65.0.95.27]) by mx.google.com with ESMTPSA id u23sm16580103yhh.30.2014.08.01.16.39.02 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Aug 2014 16:39:03 -0700 (PDT) Message-ID: <53DC2516.7040506@gmail.com> Date: Fri, 01 Aug 2014 18:39:02 -0500 From: Dale User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0 SeaMonkey/2.26.1 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 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] What to put in chroot mtab References: <3566559.YT61t9IyHV@wstn> <6536155.f0GWtIUbSO@wstn> <53DB95E1.5010709@gmail.com> In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: 0bccc971-0e1f-46cc-8843-ac52eee094b4 X-Archives-Hash: 537b839d79716fb17a58dbd7fd0b9637 J. Roeleveld wrote: > On 1 August 2014 15:28:01 CEST, Dale wrote: > >> It has been a good while since I used this. So, make sure it makes >> sense to you before trying this. This may not work if something has >> changed in the past several years. Use with caution if at all. >> >> This is a little script, if you want to call it that, that I used to do >> mine. It also lists the command to use to do a 32 bit chroot from a 64 >> bit rig. Here it is: >> >> root@fireball / # cat /root/xx.chroot-mount-32bit >> >> >> mount -o bind /dev /mnt/gentoo32/dev >> mount -o bind /dev/pts /mnt/gentoo32/dev/pts >> mount -o bind /dev/shm /mnt/gentoo32/dev/shm >> mount -o bind /proc /mnt/gentoo32/proc >> mount -o bind /proc/bus/usb /mnt/gentoo32/proc/bus/usb >> mount -o bind /sys /mnt/gentoo32/sys >> mkdir -p /mnt/gentoo32/usr/portage/ >> mount -o bind /usr/portage /mnt/gentoo32/usr/portage/ >> >> >> echo " mounting finished" >> >> echo "run linux32 chroot /mnt/gentoo32 /bin/bash next" >> root@fireball / # >> >> >> You may have different mount points at the very least so edit to match >> what you have. Again, things could have changed and that no longer >> will >> work. It may not be a bad idea to let someone who has done this more >> recently to give a thumbs up to that. >> >> That last command should be: >> >> linux32 chroot /mnt/gentoo32 /bin/bash >> >> Dale >> >> :-) :-) > That script is too long :) > > cd /mnt/gentoo > mount -o rbind /dev dev > mount -o rbind /sys sys > mount -o rbind /proc proc > cp -L /etc/resolv.conf etc/resolv.conf > cd .. > chroot gentoo /bin/bash > > To undo: > cd /mnt/gentoo > umount -l proc sys dev > > If you need a 32bit chroot, put linux32 before the chroot like Dale mentioned. > > -- > Joost Well, at the time, I made it do what I was having to do by hand following the guide. I just got tired of typing it all in so I made a little scripty thingy. It worked for me. As I mentioned before, it was a long time ago so things may have changed. Dale :-) :-)