[plug] /home directory?? help please
Jeremy Malcolm
Jeremy at Malcolm.wattle.id.au
Sat Nov 13 11:40:25 WST 1999
-----BEGIN PGP SIGNED MESSAGE-----
> What I propose to do is make a new partition on one of my hard
drives and
> set it up as
>
> /home
>
> I plan to reserve about 100Mb for it. If I do that, will the system
> automatically move all of my personal setting to this partition or
will I
> have to do that manually?
Manually. First create the partition (using fdisk or your preferred
tool) and build a filesystem (using mkfs or your preferred tool).
Then mount it at a temporary mount point, like /mnt/temp (you'll have
to mkdir /mnt/temp first - or just use /mnt if it's empty). Then edit
/etc/fstab to include a line for your new partition, something similar
to:
/dev/hda2 /home ext2 defaults 0 2
although your mileage will vary. Then do the following:
cp -a /home /mnt/temp
umount /dev/hda2
mv /home /home.old ; mkdir /home ; mount -t ext2 /dev/hda2 /home
The first line will copy all your files over, the second line will
unmount your new partition from /mnt/temp, the third line will
(quickly! - that is the key) move your old home directory to a backup,
create a new empty home directory as a mount point, and mount the new
partition on it. If everything works, you can "rm -r /home.old".
Hope this helps.
- --
JEREMY MALCOLM Jeremy at Malcolm.wattle.id.au http://malcolm.wattle.id.au
SIG of the day: [ ] Contact [ ] Web [ ] PGP [ ] Taglines #1 [x] #2
"I'm a lawyer." "Honest?" "No, the usual kind." | Linux, the choice of
a GNU generation. | Are you the brain specialist? | "Could anyone pass
the sodium chloride, please?" - Adric (5W) | The Nanites have lawyers?
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.0.2i
iQB1AwUBOCxr/b/mBljD2JABAQFpXQL+KHQsvxlf211rv8adkWuPIucop9U+Ky0b
WWsp8uTrN4/636tfbW6Qa5JHul90KuCINwW/2ZEPTey+VywrVIyWDKEI3jcJlcj9
UHjMDGmlAzhLBNwtUwv9GRhYeRbViuIl
=7AFz
-----END PGP SIGNATURE-----
More information about the plug
mailing list