Moving partition to new hard drive

Terry Polzin fox3ec208 at wideopenwest.com
Wed Jun 9 01:58:42 UTC 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday June 8 2004 21:39, David Maier wrote:
> I'm running FC2 on a 20 Gb hard drive, on which I have a separate
> partition for my /home directory.  I just installed a 120 Gb hard drive,
> and would like to migrate the /home directory to that drive. How can I
> do this without completely repartitioning my installation?
>
> Thanks,
>
> Dave Maier

My general recipe, RTFM as always. You did not state if you were adding SCSI 
or IDE disks so I made the commands generic

1) fdisk (make the partition(s) 
2) e2fsck format the partition(s)
3) mount (new home partition) on /mnt
4) cd /home; tar cf - . | (cd /mnt|tar xvf- )
5) edit /etc/fstab for new partition(s)
6) umount /mnt
7) umount old /home
8) mount new /home
9) ls -l /home -- check to see all data is there

Good Luck,

Terry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAxm7bAAXwNnTBlswRAk1aAJ990x3pxiMKUU5dlzuuBDzVF41XZQCeI+Vv
dm8Llq9nYQj7Xyi8cXPHzqI=
=Xlgn
-----END PGP SIGNATURE-----





More information about the fedora-list mailing list