On Saturday 22 July 2006 00:06, Darryl Gregorash wrote:
On 21/07/06 14:13, Bruce Marshall wrote:
On Friday 21 July 2006 15:24, Anders Johansson wrote:
But there must be a better way.
Standard procedure is
mount -o bind /dev /mnt/dev mount -o bind /proc /mnt/proc mount -o bind /sys /mnt/sys
before you do the chroot
Sounds like a plan. If this does the trick, I'm going to have it tatoo'd in a visible spot on my body... <grin>
As a Memento? :)
Better not have it tatooed, because surely "/mnt" will someday be changed to something else.. and then you'll be lost ;-)
The manpage for mount has left me a little confused (as manpages so often do -- never let the programmer write the documentation :-) ). Suppose I've done something like this in my fstab:
/dev/hdb1 /var (etc) /dev/hdb2 /var/log (etc)
and now I want to mount the entire /var tree under /mnt/var, so the logs will be available as /mnt/var/log. It seems to me that
mount -o bind /var /mnt/var
will not do the trick (/var/log would not be remounted as /mnt/var/log), rather I should use
mount -o rbind /var /mnt/var
Yes/no?
Apparently so, yes But you can't use rbind on the root partition in Bruce's problem, since the root wasn't mounted anywhere else to begin with, if that was what you were aiming for -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com