On Sat, Feb 17, 2001 at 11:30:26AM -0600, Nathan E Norman wrote: > On Sat, Feb 17, 2001 at 06:21:04PM +0100, Carel Fellinger wrote: > > On Sat, Feb 17, 2001 at 02:49:03PM +0100, Thor wrote: > > ... > > > Speak for cloning a single partition then i suggest a simple > > > 'cp -ax /mount_point_of_original_parition /mount_point_of_target_partiton' ... > > The disadvantage of this command is that it doesn't preserve hardlinks. > > So you can end up using a lot more diskspace than before, as I learned > > the hardway when moving my debian mirror to a new disk:) > > To avoid this problem use "find . | cpio -padm /target"
yep, but I'm old, so I'm stuck with tar:), besides I heard cpio doesn't handle hardlinks well, it bluntly copies the files:( Not sure though, never tested it myself, nothing found in the info/man pages, so testing time...And yes it preserves hardlinks:) -- groetjes, carel