On 11/10/05, Jon Wahlmann <[EMAIL PROTECTED]> wrote:
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of
> > Carl Lowenstein
> > Sent: Thursday, November 10, 2005 3:46 PM
> > To: Main Discussion List for KPLUG
> > Subject: Re: multiple installs sharing /home or /root
> >
> > /root needs to be on the root (/) partition for a number of reasons.
> > Particularly so that
> > you can boot without mounting all partitions.  For the same
> > reason, /bin and /sbin and /etc need to be on the root
> > partition.  I don't think you want to try to share the same
> > root partition between different distributions.
>
> Well, you *could* share your /root directory.  Under pretty much any distro
> that I've used, /root is the equivalent of if there were a /home/root.  The
> only thing is, as you say, it's typically on / so that it's available without
> having to mount other partitions.
>
> One scheme would be to go ahead and say mount a "/root" partition on /root
> (via /etc/fstab).  This would then, in effect, override whatever is in the
> distribution default /root.  When I first install, /root has a very minimal
> user environment, just like a normal user.  That is, except for the installer
> logs (Fedora).  Not sure what other distros might put in there.  If you need
> to boot in a mode where you are unable to mount other partitions, then the
> distribution default /root is still there.  Nothing lost.
>
> Now, I'm trying to remember if it's possible to, say, have a /home/root on the
> same partition as /home and mount that on /root.  I seem to recall being able
> to do that but standard mount is only on block or loopback devices.  Perhaps
> I'm confusing mounting host directories from inside UML...

$ man mount
# look at the --bind and --move options.

At the moment, I'm not sure about the distinction between them, but I
use --bind in a few places.  Like binding /var/tmp and /usr/tmp,
/usr/local and /home/local, and /dev/shm and /tmp.  The last of these
gives you /tmp in memory, which is faster and automatically cleared on
reboot, for bettor or worse.

    carl
--
    carl lowenstein         marine physical lab     u.c. san diego
                                                 [EMAIL PROTECTED]


--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to