1 |
J. Roeleveld wrote: |
2 |
> On 1 August 2014 15:28:01 CEST, Dale <rdalek1967@×××××.com> wrote: |
3 |
> |
4 |
>> It has been a good while since I used this. So, make sure it makes |
5 |
>> sense to you before trying this. This may not work if something has |
6 |
>> changed in the past several years. Use with caution if at all. |
7 |
>> |
8 |
>> This is a little script, if you want to call it that, that I used to do |
9 |
>> mine. It also lists the command to use to do a 32 bit chroot from a 64 |
10 |
>> bit rig. Here it is: |
11 |
>> |
12 |
>> root@fireball / # cat /root/xx.chroot-mount-32bit |
13 |
>> |
14 |
>> |
15 |
>> mount -o bind /dev /mnt/gentoo32/dev |
16 |
>> mount -o bind /dev/pts /mnt/gentoo32/dev/pts |
17 |
>> mount -o bind /dev/shm /mnt/gentoo32/dev/shm |
18 |
>> mount -o bind /proc /mnt/gentoo32/proc |
19 |
>> mount -o bind /proc/bus/usb /mnt/gentoo32/proc/bus/usb |
20 |
>> mount -o bind /sys /mnt/gentoo32/sys |
21 |
>> mkdir -p /mnt/gentoo32/usr/portage/ |
22 |
>> mount -o bind /usr/portage /mnt/gentoo32/usr/portage/ |
23 |
>> |
24 |
>> |
25 |
>> echo " mounting finished" |
26 |
>> |
27 |
>> echo "run linux32 chroot /mnt/gentoo32 /bin/bash next" |
28 |
>> root@fireball / # |
29 |
>> |
30 |
>> |
31 |
>> You may have different mount points at the very least so edit to match |
32 |
>> what you have. Again, things could have changed and that no longer |
33 |
>> will |
34 |
>> work. It may not be a bad idea to let someone who has done this more |
35 |
>> recently to give a thumbs up to that. |
36 |
>> |
37 |
>> That last command should be: |
38 |
>> |
39 |
>> linux32 chroot /mnt/gentoo32 /bin/bash |
40 |
>> |
41 |
>> Dale |
42 |
>> |
43 |
>> :-) :-) |
44 |
> That script is too long :) |
45 |
> |
46 |
> cd /mnt/gentoo |
47 |
> mount -o rbind /dev dev |
48 |
> mount -o rbind /sys sys |
49 |
> mount -o rbind /proc proc |
50 |
> cp -L /etc/resolv.conf etc/resolv.conf |
51 |
> cd .. |
52 |
> chroot gentoo /bin/bash |
53 |
> |
54 |
> To undo: |
55 |
> cd /mnt/gentoo |
56 |
> umount -l proc sys dev |
57 |
> |
58 |
> If you need a 32bit chroot, put linux32 before the chroot like Dale mentioned. |
59 |
> |
60 |
> -- |
61 |
> Joost |
62 |
|
63 |
Well, at the time, I made it do what I was having to do by hand |
64 |
following the guide. I just got tired of typing it all in so I made a |
65 |
little scripty thingy. It worked for me. As I mentioned before, it was |
66 |
a long time ago so things may have changed. |
67 |
|
68 |
Dale |
69 |
|
70 |
:-) :-) |