[CentOS] how2 mount ntfs partition that is part of a full HD image file

Fred Smith fredex at fcshome.stoneham.ma.us
Sun Oct 5 00:33:37 UTC 2014


On Sat, Oct 04, 2014 at 06:34:55PM -0500, Robert Nichols wrote:
> On 10/04/2014 05:56 PM, Fred Smith wrote:
> >I have a full disk image file (courtesy of ddrescue), and need to mount
> >one of its partitions. I suppose I should have just extracted the single
> >partition when I was using ddrescue, but right now I have the whole disk
> >instead, and no disk space left to re-do the extraction (in fact I won't
> >be able to use the system where I did it for several weeks, so I'd love
> >to be able to mount just the partition from the image I have).
> 
> Piece of cake!
>    kpartx -a -v /path/to/image/file
> 
> Now you'll have devices in /dev/mapper corresponding to the partitions
> in the image.  Run "kpartx -d -v /path/to/image/file" when you are done
> (after unmounting any of the partitions, of course).

Thanks!

I had known about kpartx, but it had slipped my mind. (I seem to be
of an age where that happens altogether too much.)

Fred

-- 
---- Fred Smith -- fredex at fcshome.stoneham.ma.us ----------------------------
                    Do you not know? Have you not heard? 
    The LORD is the everlasting God, the Creator of the ends of the earth. 
  He will not grow tired or weary, and his understanding no one can fathom.
----------------------------- Isaiah 40:28 (niv) -----------------------------



More information about the CentOS mailing list