On Tuesday 03 April 2007 03:11:48 Alan McKinnon wrote:
> On Tuesday 03 April 2007, [EMAIL PROTECTED] wrote:
> > /etc, /var, /usr, /bin and so on I can see the (potential) problems.
> > But just /root ? It is a must to have it does not contain important
> > tuned up files, does it ? It is just an account that root use for
> > admin task, so is there a known problem to share it ?
> >
> > I used to mount /root aside from /.

/root being separate shouldn't cause a lot of problems, although many 
programs 
idly write to $HOME so you may accumulate some files in the mountpoint, 
especially if you have to do any rescue procedures with /root mounted.  
That 
said, I don't suggest it.

If you have the habit of treating /root like a normal home directory (in 
which 
case it could grow large), I suggest you symlink /root/files (or similar) 
to /home/root (which you should create) and modify your habits slightly to 
use /root/files.

> The / partition on any sane system *must* contain at
> least /bin, /sbin, /etc, /lib and /root (if those dirs are not
> available all kinds of trouble erupts at start time).

initscripts and anything else that might be invoked before /home is mounted 
shouldn't use $HOME or /root, IMHO.  That said, it is generally assumed 
that /root is part of /, so you might find some (IMHO broken) parts of the 
init system that depend of /root being available before /home is.

I once wanted to stick /etc on RAID6, but have / on RAID0 (along 
with /bin, /sbin, and /lib), so I've thought about the ways to do this.  

Basically you'd need to write your own initrd/initramfs that makes sure 
both 
the real / and /etc are mounted before handing your layout over to your 
distro's init system -- I don't know a single disto that has support 
for /etc 
being separate, it's needed incredibly early in the boot process -- in 
particular /etc/fstab needs to be available so the init scripts and mount 
your other filesystems.

An alternative that *might* work is having a bare-bones /etc 
(including /etc/fstab) as part of /, but keep most of your configuration on 
a 
separate /etc.  However, this would probably need to be tuned to the 
specific 
distro since they may expect different files to be available before 
mounting 
the filesystems in /etc/fstab.  Of course, there are other problems with 
this, including synchronizing configuration between the bare-bones /etc and 
the full /etc.

Both techniques could be extended to /bin, /sbin, and/or /lib in lieu of or 
in 
addition to /etc.  I don't recommend either, though.

-- 
Boyd Stephen Smith Jr.                     ,= ,-_-. =. 
[EMAIL PROTECTED]                      ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy           `-'(. .)`-' 
http://iguanasuicide.org/                      \_/     

Attachment: pgpz64YnfE772.pgp
Description: PGP signature

Reply via email to