Fred Smith
2014-Oct-04 22:56 UTC
[CentOS] how2 mount ntfs partition that is part of a full HD image file
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). I'll be doing some digging, but thought I'd inquire here too. thanks in advance! -- ------------------------------------------------------------------------------- Under no circumstances will I ever purchase anything offered to me as the result of an unsolicited e-mail message. Nor will I forward chain letters, petitions, mass mailings, or virus warnings to large numbers of others. This is my contribution to the survival of the online community. --Roger Ebert, December, 1996 ----------------------------- The Boulder Pledge -----------------------------
Robert Nichols
2014-Oct-04 23:34 UTC
[CentOS] how2 mount ntfs partition that is part of a full HD image file
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). -- Bob Nichols "NOSPAM" is really part of my email address. Do NOT delete it.