I would do it like this:
Make the new partition, mount it, say on /mnt/homenew
I would use rsync to copy the files, as thus:
rsync -acvSHx --exclude lost+found /home/ /mnt/homenew
If you read the rsync manual, a is the archive flag (=-rlptgoD)
c does a checksum
v is verbose
S handles sparse files
H preserves hard links
x stays in one file system
You may of course not need all these flags, but they don't hurt.
Also note that the the trailing slash on /home/ is significant (you want the contents of the directory, not the directory).
Once done, you can overmount the new /home directory on /home (which will hide the old data). After verification that everything works, you can umount the new /home directory, and then delete the old data.
Presumably, you could just do an "mv", but I always like to be safe.
|