See below.
At 04:22 PM 6/23/00 -0400, Nauman ul-Haque wrote:
>hi,
>I ve got some problems here lets see if some one can help me.
>
>1). First of all, I was wondering if I run out of hardisk space on my linux
>box, what do I have to do then? can i get another hard disk and mount my
>/usr or /home on it? if so, I think all I have to do is copy my /usr on the
>new Hard disk and thats all, now what I dont know is, how do I make the /usr
>mounted on the new HDD every time Reboot? WHat i know is that I can mount
>the new HDD in some directory, give the entry in fstab and then make a link
>of /usr to /newDirectory/WhereHardDiskIsMounted, please tell me if this is
>the right process or if there is more sophisticated ways?
That's about it. Basically, you do the following:
1. Make a Linux partition on the new hard disk (with fdisk or cfdisk ... or,
I suppose, Disk Druid).
2. Put a filesystem on the partition with mke2fs (assuming an ext2 partition).
3. Mount it somewhere temporarily, e.g.
mount /dev/hdc1 /mnt/temporary
4. Copy to it the portion of the old filesystem you want to move, e.g.
cp -a /home /mnt/temporary
[I think the -a option handles everything you need when doing
this sort of copy, but please check the man page to be sure]
5. Look through the new filesystem to make sure everything copied properly.
6. If it did, delete the old files, e.g.
rm -r /home/*
7. Add a line to fstab that mounts the new partition on the old directory,
e.g.,
/dev/hdc1 /home ext2 defaults 0 1
8. Reboot.
To move /usr is a bit trickier, since a lot ofapps are in /usr . You
probably want to reboot to single-user mode, or even boot from a rescue
disk, to move it ... but otherwise, the procedure is the same.
Afraid I can only help with the one question, so I've deleted you others
from this response.
--
------------------------------------"Never tell me the odds!"---
Ray Olszewski -- Han Solo
Palo Alto, CA [EMAIL PROTECTED]
----------------------------------------------------------------