[wplug] Working with a DD image

Moshe Hyzon mokatz at gmail.com
Thu Mar 20 09:36:47 EST 2008


more than likely, you can use gnu parted
(http://www.gnu.org/software/parted/index.shtml) and just operate on
the image instead of a normal block device.

So you'd do something like:

# parted imagefile.img

or whatever, and it would just work.


If you had just a single partition as an image, you could run
resize2fs directly on it.  But for a full disk, a complete tool like
parted would probably be best.

Moshe


On Thu, Mar 20, 2008 at 8:42 AM, scoob8000 <scoob8000 at gmail.com> wrote:
> I did some data recovery on a disk, and now need to put it back on the
>  replacement drive which is smaller.
>
>  Problem being, I need to resize the partitions first..
>
>  So long story short, can I mount the image in a manner that I can
>  resize the partitions on it before putting it
>  on the new drive?
>
>  Any thoughts/comments appreciated!
>
>  -Mike
>  _______________________________________________
>  wplug mailing list
>  wplug at wplug.org
>  http://www.wplug.org/mailman/listinfo/wplug
>


More information about the wplug mailing list