[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: DD To a Smaller Partition



On Sun, Jan 09, 2011 at 02:21:22PM -0500, Hal Vaughan wrote:
> I have a 10 GB partition that is nowhere near full, less than 5 GB of data on it (far less).  Unfortunately, the partition I'd like to copy it to is 5 GB.  I can do "rsync -av" but normally I'd use DD.  Is there a way to copy an image of just the files from one drive to another?  For example, an intelligent DD that won't copy unused sectors, or will create an archive of just the files?
> 
> 
> Thanks!
> 
> 
> 
> Hal
> 
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> Archive: [🔎] ABF06B01-FE96-44DA-B00D-FB16EE6E8F86@halblog.com">http://lists.debian.org/[🔎] ABF06B01-FE96-44DA-B00D-FB16EE6E8F86@halblog.com

change to where you want the data to go to.

rsync -pavz --delete <source directory> .

If the rsync fails, you can always restart it. Works for me and is quick.

All the best,

AndyC


Reply to: