[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]
Neil Stone wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Grant Sewell wrote: >> Rob Beard wrote: >>> When I've done this myself I've booted into Knoppix or an Ubuntu Live >>> CD. I have then created and formatted the partitions I want on the >>> destination drives. I then mount the destination drive under sometime >>> like /mnt/new and and the original partition under something like >>> /mnt/old. I then copy what I need to copy over to the new drive. >>> >>> I would use a command line like... >>> >>> cp -Rv /mnt/old/* /mnt/new >>> >>> Which would copy all files and folders from /mnt/old to /mnt/new >>> recursively (so everything under /mnt/old). >>> >>> I'd then make sure I updated the /etc/fstab to point to the new >>> partition (adding the mount point and partition if required). >>> >>> Note, this is coming from memory so it might be slightly wrong. Anyone >>> want to confirm if I am correct or not? >>> >>> Ta, >>> >>> Rob >> Cheers Rob. >> >> I was thinking that this is probably the easiest method - and to be >> honest, since this is not a "production server" or anything, it really >> ain't gonna make that much difference if it is taken offline for a few >> minutes. Methinks I might just do this. >> >> Grant. >> >> > > Micht wanna use "cp -av" as opposed to "cp -Rv" as -a will keep all > atributes and permissions, and recurse directories and show whats going > on as it does it (although this does slow things down a bit) I really advise against using -v unless you are going to mess about with IO redirection, because otherwise you won't see errors. -- The Mailing List for the Devon & Cornwall LUG http://mailman.dclug.org.uk/listinfo/list FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html