On Thu, Jun 08, 2000 at 10:46:49AM +0400, S.Sekar typed:
> I wanted to have more space and added a second harddisk (hdb2, formatted
> for ext2).
> How can I move some of the existing directories like /home and /usr to
> the new
> drive. These are in hda6 now.
You can try mounting the new partition as say "/newhd", move the /home and
/usr directories into it using the mv command and put in symlinks for /home
and /usr as :
ln -s /newhd/home /home
ln -s /newhd/usr /usr
I've never tried this out myself and so am not sure if this can create any
other complications - So wait for a day or two before you implement this,
maybe someone will see this message and come out with a reason why this
isn't a very good idea after all :-)
Of course if you need to move only one directory (say /home) into a new
partition, you can first mount it under a new name, (say "/newhd"), copy
all files/directories from "/home" into "/newhd", rename the /home directory
to say /oldhome, and then change your /etc/fstab entry to mount the new
partition as /home from next time on. (And delete in /oldhome when everything
is working OK)
Kala
-----------------------------------------------------------------------
The LIH mailing list archives are available at:
http://lists.linux-india.org/cgi-bin/wilma/linux-india-help