← Back to team overview

registry team mailing list archive

[Bug 554582] Re: Gparted does not list dmraid devices

 

Hi danwood76,

I believe you have solved the mystery of why GParted does not list
dmraid partitions -- kpartx is missing!

As far as I know, the kpartx command does not "rename devices that end
in a letter to XXXp1".  If this is indeed happening then the nature of
how the kpartx command appears to have changed since ubuntu 8.04.  To my
knowledge, the kpartx command will create new devices if needed
according to the general rule of thumb listed in comment #11.

GParted uses both the dmraid and kpartx commands to create the required
device name entries in the /dev/mapper directory.

The dmraid command appears to always append the partition number to the
device name.  It does not follow the rule of thumb for partition naming.

For instance on my computer, my Intel software RAID is named
"isw_cjbdddajhi_Vol0"

In the /dev/mapper directory, the following three partition names are
created by the dmraid command:

isw_cjbdddajhi_Vol01
isw_cjbdddajhi_Vol02
isw_cjbdddajhi_Vol03

These next three partition names are created by the kpartx command:

isw_cjbdddajhi_Vol0p1
isw_cjbdddajhi_Vol0p2
isw_cjbdddajhi_Vol0p3

You can view the code that creates the device partition names for dmraid devices at:
     http://git.gnome.org/browse/gparted/tree/src/DMRaid.cc
Search for the method "create_dev_map_entries" to see the command line options used by GParted when calling the dmraid and kpartx commands.

In theory, if the dmraid device name ends in a letter then the kpartx
command would not be required.  At the moment the GParted code will
requires both dmraid and kpartx to be present (search for
"is_dmraid_supported" method)

-- 
Gparted does not list dmraid devices
https://bugs.launchpad.net/bugs/554582
You received this bug notification because you are a member of Registry
Administrators, which is the registrant for GParted.



Follow ups