> Hello everybody,
>
> I'd like to change the /home & /var location
> to newly added harddisk partitions, so i need
> the correct cp command phrase which regards
> all and every link & permission issue, like:
>
> cp -??? /mnt/gentoo/var /mnt/gentoo/newvar
>
> (booted from gentoo-basic without chroot)
>
> Sorry if this thread isn't very gentoo-specific.

I've always used this for moving data to new partitions:

 % cd /mnt/gentoo/var
 % find -xdev -depth -print | cpio -padvmB /mnt/gentoo/newvar

find options:
 -xdev  Don't descend directories on other filesystems.
 -depth Process each directory's contents before the directory itself.
 -print Print the full file name on the standard output, followed by a
newline.

cpio options:
 -p Run in copy-pass mode.
 -a Reset the access times of files after reading them, so that it does not
look like they have just been read.
 -d Create leading directories where needed.
 -v Verbose.  List the files processed.
 -m Retain previous file modification times when creating files.
 -B Set the I/O block size to 5120 bytes.  Initially the block size is 512
bytes.

Good luck,

-jrh


--
[EMAIL PROTECTED] mailing list

Reply via email to