# man > KPARTX(8)

[_KPARTX_(8)](https://www.chedong.com/phpMan.php/man/KPARTX/8/markdown)                              System Manager's Manual                             [_KPARTX_(8)](https://www.chedong.com/phpMan.php/man/KPARTX/8/markdown)

## NAME
       kpartx - Create device maps from partition tables.

## SYNOPSIS
       **kpartx **[**-a**|**-d**|**-u**|**-l**] [**-r**] [**-p**] [**-f**] [**-g**] [**-s**|**-n**] [**-v**] **wholedisk**

## DESCRIPTION
       This  tool,  derived  from  util-linux' partx, reads partition tables on specified device and
       create device maps over partitions segments detected. It is called from hotplug  upon  device
       maps creation and deletion.

## OPTIONS
### -a     

### -d     

### -u     

### -l     

### -r     

### -p     

### -f     

### -g     

### -s     

### -n     

### -v     

## EXAMPLE
       To mount all the partitions in a raw disk image:

              kpartx -av disk.img

       This will output lines such as:

              add map loop1p1 (254:4): 0 409597 linear 7:1 3

       The  _loop1p1_  is  the name of a device file under _/dev/mapper_ which you can use to access the
       partition, for example to fsck it:

              fsck /dev/mapper/loop1p1

       When you're done, you need to remove the devices:

              kpartx -d disk.img

## SEE ALSO
       [**multipath**(8)](https://www.chedong.com/phpMan.php/man/multipath/8/markdown) [**multipathd**(8)](https://www.chedong.com/phpMan.php/man/multipathd/8/markdown) [**hotplug**(8)](https://www.chedong.com/phpMan.php/man/hotplug/8/markdown)

## AUTHORS
       This man page was assembled By Patrick Caulfield for the Debian project.

       _multipath-tools_ was developed by Christophe Varoqui <<christophe.varoqui@opensvc.com>> and oth‐
       ers.

Linux                                        2019-04-27                                    [_KPARTX_(8)](https://www.chedong.com/phpMan.php/man/KPARTX/8/markdown)
