[Bug 605436] Re: kpartx fails to map partitions (device-mapper: resume ioctl failed: Invalid argument)

Michael Casadevall 605436 at bugs.launchpad.net
Mon Sep 24 22:37:46 UTC 2012


** Also affects: multipath-tools (Ubuntu Quantal)
   Importance: Medium
     Assignee: Serge Hallyn (serge-hallyn)
       Status: Triaged

** Also affects: multipath-tools (Ubuntu Precise)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to multipath-tools in Ubuntu.
https://bugs.launchpad.net/bugs/605436

Title:
  kpartx fails to map partitions (device-mapper: resume ioctl failed:
  Invalid argument)

Status in “multipath-tools” package in Ubuntu:
  Triaged
Status in “multipath-tools” source package in Precise:
  New
Status in “multipath-tools” source package in Quantal:
  Triaged
Status in “multipath-tools” package in Debian:
  Fix Released

Bug description:
  Binary package hint: multipath-tools

  Under certain conditions kpartx fails to map partitions.  You can try
  it with the image available here
  <http://m0n0.ch/wall/download.php?file=generic-pc-1.32.img>:

  ----8<----
  root at Otherland:~/Work/m0n0# mv generic-pc-1.32.img generic-pc-1.32.img.gz
  root at Otherland:~/Work/m0n0# gunzip generic-pc-1.32.img.gz

  gzip: generic-pc-1.32.img.gz: decompression OK, trailing garbage ignored
  root at Otherland:~/Work/m0n0# sfdisk -l generic-pc-1.32.img
  Disk generic-pc-1.32.img: cannot get geometry

  Disk generic-pc-1.32.img: 1 cylinders, 255 heads, 63 sectors/track
  Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

     Device Boot Start     End   #cyls    #blocks   Id  System
  generic-pc-1.32.img1          0       -       0          0    0  Empty
  generic-pc-1.32.img2          0       -       0          0    0  Empty
  generic-pc-1.32.img3          0       -       0          0    0  Empty
  generic-pc-1.32.img4   *      0       3-      4-     25000   a5  FreeBSD
                  end: (c,h,s) expected (3,28,41) found (1023,254,63)
  generic-pc-1.32.img5          0+      1-      2-     10232
  root at Otherland:~/Work/m0n0# kpartx -v -a generic-pc-1.32.img
  device-mapper: resume ioctl failed: Invalid argument
  add map loop0p4 (0:0): 0 50000 linear /dev/loop0 0
  ----8<----

  dmesg says:
  device-mapper: table: 252:9: loop0 too small for target: start=0, len=50000, dev_size=20480

  It seems like this is debian bug 586104 and fixed in newer versions of
  multipath-tools.

  ProblemType: Bug
  DistroRelease: Ubuntu 10.04
  Package: kpartx 0.4.8-14ubuntu4
  ProcVersionSignature: Ubuntu 2.6.32-23.37-generic 2.6.32.15+drm33.5
  Uname: Linux 2.6.32-23-generic x86_64
  Architecture: amd64
  Date: Wed Jul 14 16:06:53 2010
  ProcEnviron:
   LANGUAGE=
   PATH=(custom, user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: multipath-tools

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/multipath-tools/+bug/605436/+subscriptions




More information about the foundations-bugs mailing list