Tobias DiPasquale on 31 Aug 2004 17:44:04 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Adding a new HD


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

On Aug 31, 2004, at 12:53 PM, Art Alexion wrote:
I am adding a new (additional) hard drive. My current HD has a simple ext3 partitioning: (/, /boot, & /swap). I want to move /home to the new drive as well as installing a new distro.

Can I just do a

   mkdir /newhome

on the new HD, and then

   mv /home /newhome
   mv /newhome/home /home

That doesn't seem right.

Yeah, its not. You have to bind /home to the partition on the new HD. This is done by editing /etc/fstab.


What I would do is add this line to /etc/fstab:

/dev/<whatever>	/newhome	ext3	rw	0	2

Where <whatever> is the particular device file for the partition you want on the new HD. Then:

# mount /newhome
# cp -R /home /newhome
# rm -rf /home/*
# umount /newhome

Now change the mount point for that partition on the new HD in /etc/fstab to /home and mount /home.

- --
Tobias DiPasquale
202A 04C4 2CE6 B985 8520  88D6 CD25 1A6C B9B5 1595
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (Darwin)

iD8DBQFBNLe2zSUabLm1FZURAi+cAJ9HeMHpbjyEpTpVjYhk3vKv5GFu0QCfSHty
ERhr2SHecTlRaEcU72Uuk8E=
=9mEV
-----END PGP SIGNATURE-----

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug