Hey guys,
I've been successfully ghosting hard drives using:
Code:
dd if=/dev/sda of=/dev/sdb ibs=1M obs=1M
I use dd because i want all of the partition info to copy, the MBR, and so forth... this would not be possible with a cp method
However i've run into the problem of wanting to ghost an 80gb hard drive to a 30gb hard drive. The caviat is that the 80gb drive only has 15gb in use. The problem I see here is that the data could be out past 15GB worth of sectors... therefore a dd of 15gb might not catch all the data. The only way i could think of this being done is to re-arrange the data on the disk, which I have no clue how to do or if it is possible.
therefore I was wondering if anyone knows of a way of doing this? Not necessarily re-arranging the data, just solving the problem in general
Thanks!
George