Wednesday, January 21, 2009

Add partition devices on linux

I often end up with a Linux block device or file which contains a PC partition table. The `kpartx` utility (part of the Linux multipath-tools) can create device nodes for partitions which were not detected at boot.

# kpartx -av /dev/loop1
add map loop1p1 : 0 144522 linear /dev/loop1 63
#

No comments: