← Back to team overview

touch-packages team mailing list archive

[Bug 294871] Re: fdisk gives an incomplete list of partitions

 

** This bug is no longer a duplicate of bug 1174098
   blockdev doesn't work as reported with loop devices

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to util-linux in Ubuntu.
https://bugs.launchpad.net/bugs/294871

Title:
  fdisk gives an incomplete list of partitions

Status in “util-linux” package in Ubuntu:
  Triaged

Bug description:
  I use Ubuntu Intrepid on Acer Aspire One A110L and are trying to use
  both built-in card readers. When the netbook is booted with both
  readers containing SD cards, both cards are mounted and can be used.
  However, the command "fdisk -l" shows only the SSD (which in my system
  contains two partitions, one for root, and one for swap):

  Platte /dev/sda: 8069 MByte, 8069677056 Byte
  255 Köpfe, 63 Sektoren/Spuren, 981 Zylinder
  Einheiten = Zylinder von 16065 × 512 = 8225280 Bytes
  Disk identifier: 0x0007da04

     Gerät  boot.     Anfang        Ende     Blöcke   Id  System
  /dev/sda1   *           1         850     6827593+  83  Linux
  /dev/sda2             851         981     1052257+  82  Linux Swap / Solaris

  You will notice that none of the SD cards are listed. mount says about them:
  /dev/mmcblk0p1 on /media/SANVOL type vfat (ro,nosuid,nodev,uhelper=hal,shortname=mixed,uid=1000,utf8,umask=077,flush)
  /dev/mmcblk1p1 on /media/disk type vfat (rw,nosuid,nodev,uhelper=hal,shortname=mixed,uid=1000,utf8,umask=077,flush)

  This is what the "man fdisk" is saying about the "-l" option to fdisk:

        -l     List  the partition tables for the specified devices and then exit.  If no devices are given, those men‐
                tioned in /proc/partitions (if that exists) are used.

  However, the /proc/partitions contain: cat /proc/partitions:

  major minor  #blocks  name

     8     0    7880544 sda
     8     1    6827593 sda1
     8     2    1052257 sda2
   179     0     128000 mmcblk0
   179     1     127968 mmcblk0p1
   179     8   15694336 mmcblk1
   179     9   15690240 mmcblk1p1

  Obviously, fdisk gives an incomplete list of partitions, inconsistent
  with its stated behaviour, since all mmcbl* partitions are missing!

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/294871/+subscriptions