Mick writes: > I used: > > tar -X file.list -lcvSf - . | (cd /new_gentoo_partition; tar -xpvf - ) > > to clone a gentoo / partition to another partition on the same disk (I > want to run some tests from it). > > The file.list has this is in it: > > tmp/* > proc/* > sys/* > dev/* > etc/mtab > usr/portage/distfiles/*
Which also excludes /usr/include/sys, not only /sys. And so on. You probably have to rewrite this as ./tmp/* , but I did not test this. And I just learnt that -l is no longer a synonym for --one-file-system, at least for tar 1.25. I'd do it with a bind mount this: mount -o bind / /mnt cd /mnt tar -cvSf - . | (cd /new_gentoo_partition; tar -xpvf - ) This way, the original /dev is being copied (including entries console and null), without the udev stuff that is mounted on top of /dev, while with --one-file-system only the empty /dev directory would be created. Wonko