Comment 0 for bug 232175

Revision history for this message
David Balažic (xerces8) wrote : parted gets partitions wrong

Binary package hint: parted

I have two partitions on /dev/sdc, but parted (and also gparted) claims there is one, covering the whole device.

fdisk and sfdisk get it correctly. Also the kernel reads it correctly (as I can mount both).

ubuntu$ dpkg-query -l parted
||/ Name Version Description
+++-======================-======================-============================================================
ii parted 1.7.1-5.1ubuntu9 The GNU Parted disk partition resizing program

ubuntu$ dpkg-query -l util-linux
||/ Name Version Description
+++-======================-======================-============================================================
ii util-linux 2.13.1-5ubuntu1 Miscellaneous system utilities

$ fdisk -l /dev/sdc

Disk /dev/sdc: 1027 MB, 1027416576 bytes
64 heads, 32 sectors/track, 979 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Disk identifier: 0x00000000

   Device Boot Start End Blocks Id System
/dev/sdc1 * 1 716 733168 6 FAT16
/dev/sdc2 717 979 269312 6 FAT16

$ parted /dev/sdc
GNU Parted 1.7.1
Using /dev/sdc
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print

Disk /dev/sdc: 1027MB
Sector size (logical/physical): 512B/512B
Partition Table: loop

Number Start End Size File system Flags
 1 0.00kB 1027MB 1027MB fat32

This was on a fresh install from Ubuntu 8.04 i386 Desktop CD.