HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

kpartx — Create device maps from partition tables. More information: <https://manned.org/kpartx>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
createcommanddevicefrompartitionclimapskpartx
linux

Problem

How to use the kpartx command: Create device maps from partition tables. More information: <https://manned.org/kpartx>.

Solution

kpartx — Create device maps from partition tables. More information: <https://manned.org/kpartx>.

Add partition mappings and print created mappings:
kpartx -av {{whole_disk.img}}


Delete partition mappings:
kpartx -d {{whole_disk.img}}


List partition mappings:
kpartx -l {{whole_disk.img}}

Code Snippets

Add partition mappings and print created mappings

kpartx -av {{whole_disk.img}}

Delete partition mappings

kpartx -d {{whole_disk.img}}

List partition mappings

kpartx -l {{whole_disk.img}}

Context

tldr-pages: linux/kpartx

Revisions (0)

No revisions yet.