'cp -R /' but keep old permissions
i bought a new hdd and need to move everything onto the new hdd.
I've tried Code:
cp -R / /mnt/newroot Code:
chown -R opaltoad / |
That is what the -p option is for. "cp -Rp". Also, when you copy mount your original hd to /mnt/oldroot, so you can do "cp -Rp /mnt/oldroot /mnt/newroot". And don't forget to umount /proc.
|
Quote:
|
You could use a boot floppy. Tom's rtb, or one of the several hundred other boot linux floppies could work for this too. You could also look at network or USB boot if your motherboard supports it, but I doubt it if you only have single connector cables ;)
You could also take the time to install a tiny distro into another partition, boot from it, and then do your work with the umounted devices. Several very viable options, but really the best is to just grab a 2 connector cable for 5 bucks (USD, not sure what the conversion or cost is to the Euro currently ;) ) Cool |
I don't think you need to use a boot cd/floppy:
Code:
# mount /dev/hda2 /mnt/tmp -t ext3 |
cheers! i'll give that a go.
|
WICKED!! got it working...obviously! :D
Thanks guys!!! only problem is the boot screen is still garbled. any ideas? |
All times are GMT -5. The time now is 01:50 AM. |