[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: using debian debootstrap and chroot to login to other distro on neighbouring partition etc



On Fri, Feb 05, 2016 at 08:22:53PM +0000, Michael Fothergill wrote:
> On 5 February 2016 at 12:49, Michael Fothergill <
> michael.fothergill@googlemail.com> wrote:
> 
> >
> >
> > On 5 February 2016 at 12:30, Mirko Parthey <mirko.parthey@web.de> wrote:
> >
> >> On Thu, Feb 04, 2016 at 06:05:50PM -0600, Dutch Ingraham wrote:
> >> > I'm not sure debootstrap is what you are looking for here.  If you just
> >> > want to chroot into your Ubuntu,on the same disk, these are the steps:
> >> >
> >> > 1. Make a mount point, say /mnt/ubuntu;
> >> >
> >> > 2. Mount the partition Ubuntu is on, e.g., <mount /dev/sda3
> >> /mnt/ubuntu>;
> >> >
> >> > 3. Change directory to /mnt/ubuntu;
> >> >
> >> > 4. <mount -t proc proc proc/>;
> >> >
> >> > 5. <mount --rbind /sys sys/>;
> >> >
> >> > 6. <mount --rbind /dev dev/>;
> >> >
> >> > 7. <mount --rbind /run run/>;
> >> >
> >> > 8. <cp /etc/resolv.conf etc/resolv.conf>;
> >> >
> >> > 9. <chroot /mnt/ubuntu /bin/bash>;
> >> >
> >> > 10. <source /etc/profile>;
> >> >
> >> > 11. <source ~/.bashrc>;
> >> >
> >> > 12. <export PS1="(chroot) $PS1"
> >> >
> >> > Of course, you will need to determine certain things up front and
> >> modify for
> >> > your particular needs, i.e., which partition Ubuntu is currently
> >> residing on,
> >> > whether you need network access, etc.
> >
> >
> ​If wanted a network connection could I add in /sbin/dhcpd as a command
> etc?​
> 
> ​MF​

Step 8 covers that. 


Reply to: