kpartx: mount partitions from raw disk images

Wednesday, 12 June 2013

the kpartx tool allows mounting partitions from disk images (created with dd, for example )

Installing on Debian/Ubuntu

sudo apt-get install kpartx
You must be root to run this tool 
 
1)  Creating loop devices for a disk image :
kpartx -a /path/to/disk.img

 

2) Listing available loop devices :

kpartx -l /path/to/disk.img

loop0p1 : 0 15826881 /dev/loop0 63  

 Mounting  a device (you must create and list first, see #1 and #2):

mount /dev/mapper/loop0p1 /mnt/media/part1 -o loop,ro

 

Credits:

http://robert.penz.name/73/kpartx-a-tool-for-mounting-partitions-within-an-image-file/ 



Give us some social love (it really works now)!

Reddit! Del.icio.us! StumbleUpon! Yahoo! Swik!



Be first to comment this article
RSS comments

Write Comment
  • Please keep the topic of messages relevant to the subject of the article.
  • Please don't use comments to plug your web site. Links are rel='nofollow'-ed
  • Please refresh the page if you're having trouble with the security image code
Name:
E-mail
Homepage
Title:
Comment:

:) :grin ;) 8) :p
:roll :eek :upset :zzz :sigh
:? :cry :( :x
Code:* Code

Last Updated ( Wednesday, 12 June 2013 )
 

Europe freelancer directory

Newsletter

Subscribe to TeachMeJoomla's newsletter
Name:
Email:


Auto tags

kpartx

kpartx file for mounting partitions

kpartx refreshing