On Tue, 2005-04-05 at 02:21 -0400, Colin wrote: > I assume I can just fdisk the new drive and then "cp -L /dev/hdbn > /dev/hdan" my partitions (where n={1,2,3}). Being a *nix newbie, I > think I'd better check before I do something potentially dangerous (for > example, I already know I'm missing an option to preserve permissions).
Do not use cp, it doesn't preserve permission bits. use either tar or rsync. eg: (I do this quite often to change from hda2 to hda5 for example) sudo rsync -av --progress --delete / /New/partition and you can choose which to exclude too eg: --exclude /home --exclude /dev --exclude /mnt --exclude /tmp --exclude /proc --exclude /sys or use Tar su - cd / && tar -cf - * | (cd /new/partition; tar -xvpf - ) -- Ow Mun Heng Gentoo/Linux on DELL D600 1.4Ghz 98% Microsoft(tm) Free!! Neuromancer 14:56:22 up 18:51, 5 users, load average: 0.33, 0.20, 0.20 -- gentoo-user@gentoo.org mailing list