How to perform a nested mount when using chroot?

Posted by user55542 on Super User See other posts from Super User or by user55542
Published on 2012-06-06T07:08:07Z Indexed on 2012/06/06 10:44 UTC
Read the original article Hit count: 142

Filed under:
|
|
|

Note that this question is prompted by the circumstances detailed by me (as Xl1NntniNH7F) in http://www.linuxquestions.org/questions/linux-desktop-74/boot-failure-upon-updating-e2fsprogs-in-ubuntu-10-10-a-947328/. Thus if you could address the underlying cause of the boot failure, I would very much appreciate it.

I'm trying to replicate the environment in my ubuntu installation (where the home folder is on a separate partition) in order to run make uninstall. I'm using a live cd.

How to mount a dir in one partition (sda2, mounted in ubuntu as the home folder) into a directory on another mounted partition (sda3)? I did chroot /mnt/sda2 but I don't know how to mount sda3 to /home, and my various attempts didn't work. As I am unfamiliar with chroot, my approach could be wrong, so it would be great if you could suggest what I should do, given my circumstances.

© Super User or respective owner

Related posts about linux

Related posts about ubuntu