3 ms·
I still use tar, for example to copy an entire Linux distribution to a new drive is just: mount /dev/sdb1 /m tar cf - . --exclude=./m --exclude=./proc
by jhallenworld 10y ago
I still use tar, for example to copy an entire Linux distribution to a new drive is just:
mount /dev/sdb1 /m
tar cf - . --exclude=./m --exclude=./proc --exclude=./sys | (cd /m; umask 0; tar -xf -)
mkdir /m/proc /m/sys
grub-install --root-directory=/m /dev/sdb
(except you must also adjust UUIDs in /etc/fstab)