On Thu, May 23, 2002 at 11:49:20AM -0400, Jianping Zhu wrote:

> I have a linux sever with redhat7.1 on it.
> I have bought a new hard disk, I want to move the /home diretoy to the new
> hard disk, and extend /usr in the old hard disk. but I am not sure how to
> do it. 
> Any suggestion will be greatly appreicated.

After you install the disk, you need to create a partition on it,
format that partition, and create a filesystem on it. That's easy to
do with fdisk, and mkfs. Then, bring your system to single-user mode,
mount this new partition, use rsync, tar or cpio to copy everything
under /home to the new partition, unmount /home, and then remount the
new partition under /home.  Don't forget to edit /etc/fstab to make sure
that the new partition is mounted correctly at the next boot.

Now you can free up the space used by the old /home parititon on the
first disk. I know there is a tool called resize2fs, but I have never
used it, so read the man page, and proceed carefully.

-- 
Anand Buddhdev
Personal site: http://anand.org



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to