Files
cheatsheet-tldr/tldr/linux/kpartx

22 lines
376 B
Plaintext

---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# kpartx
> Create device maps from partition tables.
> More information: <https://manned.org/kpartx>.
- Add partition mappings:
`kpartx -a {{whole_disk.img}}`
- Delete partition mappings:
`kpartx -d {{whole_disk.img}}`
- List partition mappings:
`kpartx -l {{whole_disk.img}}`