KPARTX(8) Linux Administrator's Manual KPARTX(8)NAME
kpartx - Create device maps from partition tables
SYNOPSIS
kpartx [-a | -d | -l] [-v] wholedisk
DESCRIPTION
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 Readonly 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
EXAMPLE
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:
fsck /dev/mapper/loop3p1
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, <christophe.varoqui@opensvc.com> and others.
July 2006 KPARTX(8)
Check Out this Related Man Page
ADDPART(8) System Administration ADDPART(8)NAME
addpart - tell the kernel about the existence of a partition
SYNOPSIS
addpart device partition start length
DESCRIPTION
addpart tells the Linux kernel about the existence of the specified partition. The command is a simple wrapper around the "add partition"
ioctl.
This command doesn't manipulate partitions on a block device.
PARAMETERS
device The disk device.
partition
The partition number.
start The beginning of the partition (in 512-byte sectors).
length The length of the partition (in 512-byte sectors).
SEE ALSO delpart(8), fdisk(8), parted(8), partprobe(8), partx(8)AVAILABILITY
The addpart command is part of the util-linux package and is available from https://www.kernel.org/pub/linux/utils/util-linux/.
util-linux January 2015 ADDPART(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)
hi,
i created a partition c1t0d0s5 sized 10gb and a soft partition on it. now i want to expand this size to 15gb (my hard disk is 36gb). anybody show me the way to do that, please.
here are the outputs of the df and format commands:
# df -h
Filesystem size used avail capacity ... (5 Replies)
hi
I am trying to create primary,extended and logical partitions.
when I try to create a primary partition, I can give it maximum 1027M (1gb). Why? (9 Replies)
Hello All,
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)
Hi,
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)
My /var partition is almost utilized ... Here am not sure where to release space now
OS/model : HP-UX B.11.11 U 9000/800
# bdf /var
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol9 6144000 6142176 1824 100% /var
<root@pb>/var # du -sk * | sort -n |... (20 Replies)
hi all,
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)
Hi OS Experts
I would like to increase root partition from another partition so that I can save more documents in Home and Desktop. whether it is possible without formating root partition if so please explain
here is o/p of df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda9... (8 Replies)
Hi,
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)
Hello, today i get some aix errors (can't lock files and strange things) then i umount FS to do a fsck but i get these errors
root@omega / > fsck -p /dev/fslv06
The current volume is: /dev/fslv06
Unable to read primary superblock.
Unable to read either superblock.
I readed on this page... (9 Replies)
Hi,
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)
Greetings,
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)