KPARTX(8) Linux Administrator's Manual KPARTX(8)NAME
kpartx - Create device maps from partition tables
kpartx [-a | -d | -l] [-v] wholedisk
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 Add partition mappings
-r Read-only partition mappings
-d Delete partition mappings
-u Update partition mappings
-l List partition mappings that would be added -a
-p set device name-partition number delimiter
-f force creation of mappings; overrides 'no_partitions' feature
-g force GUID partition table (GPT)
-v Operate verbosely
-s Sync mode. Don't return until the partitions are created
To mount all the partitions in a raw disk image:
kpartx -av disk.img
This will output lines such as:
loop3p1 : 0 20964762 /dev/loop3 63
The loop3p1 is the name of a device file under /dev/mapper which you can use to access the partition, for example to fsck it:
When you're done, you need to remove the devices:
kpartx -d disk.img
SEE ALSO multipath(8)multipathd(8)hotplug(8)AUTHORS
This man page was assembled By Patrick Caulfield for the Debian project. From documentation provided by the multipath author Christophe
Varoqui, <firstname.lastname@example.org> and others.
July 2006 KPARTX(8)
Check Out this Related Man Page
PARTX(8) System Manager's Manual PARTX(8)NAME
partx - telling the kernel about presence and numbering of on-disk partitions.
partx [-a|-d|-l] [--type TYPE] [--nr M-N] [partition] disk
Given a block device ( disk ) and a partition table type , try to parse the partition table, and list the contents. Optionally add or
This is not an fdisk - adding and removing partitions is not a change of the disk, but just telling the kernel about presence and numbering
of on-disk partitions.
OPTIONS -a add specified partitions or read disk and add all partitions
-d delete specified or all partitions
-l list partitions. Note that the all numbers are in 512-byte sectors.
Specify the partition type -- dos, bsd, solaris, unixware or gpt.
Specify the range of partitions (e.g --nr 2-4).
SEE ALSO addpart(8), delpart(8), fdisk(8), parted(8), partprobe(8)AVAILABILITY
The partx command is part of the util-linux-ng package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/.
11 Jan 2007 PARTX(8)
Hola. Here is how my partition table looks:
Device Boot Start End Blocks Id System
/dev/hde1 1 1689 13566861 7 HPFS/NTFS
/dev/hde2 * 1690 2783 8787555 83 Linux
/dev/hde3 2784 2813 240975 82 Linux swap
/dev/hde4 ... (5 Replies)
I created a ufsdump of a directory (opt) to a file. The partition it was on had to be resized. I resized the partition. I did a newfs on it. I remounted the partition. I ran ufsrestore fs /tmp/opt.dmp in the /opt directory. It worked the first time. Then I found out I had to resize the partition. I... (5 Replies)
I backed up my RHEL 4 as an image.
Then I restored the image (by mondorestore) on my machine. Everything went fine but I dont get the normal boot sequence as it used to come when I freshly installed RHEL4.
The messages that are shown when the system boots are something like-
"... (13 Replies)
On a PL1650, with AIX partitions (micropartitionning).
When a partition is "Not Actived", the processor and memory resources are not free (display in the HMC) and I can't by DLPAR.
The partition keeps the resources.
An idea ?
Trunk. (5 Replies)
I have got 2 hdds (2x Seagate 7200.12, 500GB).
I had two RAID volumes on them:
1: 100GB RAID0 (strip)
2: ~415GB RAID1 (mirror)
due to problems with matrix I removed RAID0 and RAID1 - i thougth that all data from RAID1 would be available.
Unfortunately it is not.
On 1 disk I set... (7 Replies)
Hi guys, need some help with a simple renaming task under SUSE.
I'm trying to use a custom name for a disk device under OpenSUSE.
I have a device named "c0d0" which contains a partition "c0d0p1"
/dev/cciss/c0d0p1 is the name of the file as well as the name reported by "fdisk".
I'd like... (8 Replies)
As going thru LVM concepts in rhel 6, got hit with a question about "how to use the raw partition of an harddisk which extended volume is taken a bit"
please find the attached diagram...
is it possible to use this raw space with previously created extended partition without data... (13 Replies)
a little while ago, one of the GPT Partitioned hard disk had gone faulty in a Mirror RAID and is now successfully replaced.
here is how I did that.
1) created identical partition table on the new disk.
2) attached the mirrors using md commands.
The whole procedure is given... (5 Replies)
I'm new to the Linux world and whilst I've been learning the ropes, I've read some conflicting opinions regarding the creation of separate partitions for /home and other directories during OS install.
Some say that having these directories in separate partitions allows you to reinstall without... (12 Replies)
I am testing on iSCSI + multipath, where i have one iSCSI lun assigned to one server.
mpatha (1IET 00010001) dm-2 IET,VIRTUAL-DISK
size=100M features='0' hwhandler='0' wp=rw
|-+- policy='round-robin 0' prio=1 status=active
| `- 2:0:0:1 sda 8:0 active ready running
`-+-... (6 Replies)
I created a new partition through "Integrated Virtualization Manager" but there have an error when I added a new disk to the partition. The disk already created without any issue,
Below error is to add the disk to the partition
An error occured while modifying the assignments... (5 Replies)
I have been facing one issue here and I am not understanding what is causing.
I am getting a lot of alarms complaining that the partition for example /proc/12345 , is full, but the partition does not existe on the server. Which is not supposed to happen, because /proc is not a real... (10 Replies)
I am trying to setup a storage server with salvaged equipments:
QSSC-S4R server, with QLogic 2562 FC HBA's
Clariion KTN-STL4 4GB FC Enclosures
Disks Salvaged from EMC Vmax
Disks are 520B sector size so i converted to 512B in linux environment and create multipath successfully. But... (4 Replies)