kpartx
Create device maps from partition tables. More information: <https://manned.org/kpartx>.
Install
- All systems
-
curl cmd.cat/kpartx.sh
- Debian
-
apt-get install kpartx
- Ubuntu
-
apt-get install kpartx
- Arch Linux
-
pacman -S kpartx
- Kali Linux
-
apt-get install kpartx
- CentOS
-
yum install kpartx
- Fedora
-
dnf install kpartx
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install kpartx
- Raspbian
-
apt-get install kpartx
- Dockerfile
- dockerfile.run/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
© tl;dr; authors and contributors