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

Re: DD To a Smaller Partition



> 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?

In the case where the 10GB indeed has mostly only files in its lower
5GB, it might be worthwhile to do something like:

   resize2fs /dev/foo 4G

and then to `dd' the first 4GB only.  But in all likelyhood "cp -a",
tar, or rsync will be more efficient.


        Stefan


Reply to: