5

What is the recommended way to use chroot from Ubuntu Stable (in my case 11.04) with Ubuntu+1 (11.10)?

Linked (but probably separate) is "Is there anything special that I need to do in order to get Xorg working?"

Reason I ask is because I'd like to test a few GTK3 programs without losing my current (stable) Ubuntu, or having to get my data synced.

I thought about maybe running a SSH server from 11.10 and then using SSH's X forwarding, but that seems rather cumbersome.

jokerdino
  • 41,732
jrg
  • 61,707

1 Answers1

4

In order to chroot to do things like.. configure/install grub, do the following-

#first, mount new install to /mnt/oneiric
mount -t proc proc /mnt/oneiric/proc
mount -t sysfs sys /mnt/oneiric/sys
mount -o bind /dev /mnt/oneiric/dev

chroot /mnt/oneiric /bin/bash

I wouldn't try to start full gnome this way.
The only reason you should really be doing this is if you can't boot into the linux installation for some reason, but still need to run a few things from it. You can't just chroot over and change the distro you're running.

user606723
  • 1,802