gparted truncates device names for /dev/mapper devices

Bug #154864 reported by Chris Coulson
6
Affects Status Importance Assigned to Milestone
gparted (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: gparted

GParted in Gutsy appears to truncate device names for /dev/mapper devices, omitting the partition number from the end. I've attached a screenshot, showing GParted listing 8 partitions on 1 device, all with apparently identical device names. Note, the ouptut of fdisk -l /dev/mapper/nvidia_effeccbe is:

sudo fdisk -l /dev/mapper/nvidia_effeccbe

Disk /dev/mapper/nvidia_effeccbe: 500.1 GB, 500118585344 bytes
255 heads, 63 sectors/track, 60802 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xffffffff

                      Device Boot Start End Blocks Id System
/dev/mapper/nvidia_effeccbe1 * 1 19581 157284351 7 HPFS/NTFS
/dev/mapper/nvidia_effeccbe2 19582 60672 330063457+ 5 Extended
/dev/mapper/nvidia_effeccbe3 60673 60802 1044225 83 Linux
/dev/mapper/nvidia_effeccbe5 19582 22072 20008926 83 Linux
/dev/mapper/nvidia_effeccbe6 22073 37012 120005518+ 83 Linux
/dev/mapper/nvidia_effeccbe7 37013 37262 2008093+ 83 Linux
/dev/mapper/nvidia_effeccbe8 37263 39753 20008926 83 Linux
/dev/mapper/nvidia_effeccbe9 39754 60672 168031836 83 Linux

...which is what I'd expect to see in GParted

Revision history for this message
Chris Coulson (chrisccoulson) wrote :
Revision history for this message
Curtis Gedak (gedakc) wrote :

Initial support for /dev/mapper dmraid devices has been developed for GParted.

If you are able to help out with testing, please read the following GParted forum post:
http://gparted-forum.surf4.info/viewtopic.php?id=13264

Revision history for this message
Chris Coulson (chrisccoulson) wrote :

I just tried this with 0.4.3, and this is actually fixed now

Changed in gparted (Ubuntu):
status: New → Fix Released
Revision history for this message
Curtis Gedak (gedakc) wrote :

Chris, if I recall, Ubuntu added a patch to GParted 0.4.3 to recognize /dev/mapper devices. This solves a portion of the problem of dealing with dmraid devices, but is not the whole solution.

For instance the /dev/mapper device entries would not be deleted when a partition was deleted, nor created when a new partition was created.

The current development version of GParted uses the "dmraid", "kpartx", and "dmsetup" commands to address these and other problems when working with /dev/mapper dmraid devices.

This new GParted software is available for testing at the above posted forum link.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.