[EMAIL PROTECTED] wrote:
>
> I don't think it's possible to do the following, but I'd love to find
> out I am wrong.
>
> I have a machine with an overflowing / partition, and a while back it
> acquired a huge disk that someone simply mounted as /mnt/sdb2, and then
> filled the root of that with piles of stuff. I would now like to make
> better use of the disk, by moving some of the /home contents over there,
> without having to deal with the mess that is in the root directory of
> the second disk.
>
> At the same time I'd like to split out the Apache /home/httpd tree and
> access it from, say, /www on the second disk (because it's less typing,
> that's why).
>
> And no, I do not want to use symbolic links, for obvious performance
> reasons.
>
> So the question is, can I create a directories on that second disk;
>
> mkdir /mnt/sdb2/home /mnt/sdb2/www
>
> and then mount them with something like
>
> mount /mnt/sdb2/home /home
> mount /mnt/sdb2/www /www
>
> As neither of these args is a device, mount is not going to be too
> happy. If someone has done something like this, can they show me their
> /etc/fstab?
I don't this this will work tho I suppose you could export the file
systems and mount them as NFS drives. Why you would want to do this is
beyond me... Perhaps they could be mounted as localhost:/<dirpath>
those this would probably be kind of slow.
What's wrong with symlinks? They can certainly be abused (just ask me
:-) but are a very powerful tool for customizing a file structure.
Frankly I doubt the performance would be any worse than following a
mount across disks. Unless you are going to be thrashing this disk a
_lot_, a couple of extra milliseconds or so per access isn't going to
make any measurable difference.
If you are going to wipe out the new disk and copy stuff over why not
just mount it "normally?" Create a couple or three partitions, mount
them to /tmp_mnt to copy the data across, verify the copy worked, delete
the original trees, and change fstab to reflect the new file structure.
When I finally nuked the Win3.1 drive on my Linux box I split it into
three partitions, left one for DOS, copied all of /opt over to the
second, and left a third as a small extra swap. After copying the /opt
directory I deleted it and changed /etc/fstab to reflect the new
location:
/dev/hdb1 / ext2 defaults 1 1
/dev/hdb2 /home ext2 usrquota 0 2
/dev/hda1 /mnt/c msdos defaults 0 0
/dev/hda2 /opt ext2 defaults 1 2
none /proc proc defaults
/dev/hdb3 none swap sw
--
Stephen Carville
[EMAIL PROTECTED]
=========================================================
Welcome to your future with Microsoft; where your every action will be
regulated by computers you do not control.
=========================================================
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject.