** Summary changed: - parted gets partitions wrong + Partition tables sometimes misdetected as single large FAT file system
** Description changed: - Binary package hint: parted + When a FAT file system is written to a whole disk device, it appears + rather like a DOS partition table in some ways. libparted therefore + needs to detect this situation and explicitly bail out of treating it as + a DOS partition table. However, its detection is a bit broken at the + moment and has some false positives. Specifically, if the disk + previously had a FAT file system covering its entire extent, but then + had a partition table written to it, it can happen that the FAT + signature is left around and confuses libparted. - I have two partitions on /dev/sdc, but parted (and also gparted) claims - there is one, covering the whole device. + Both the Linux kernel and fdisk use a more reliable method, namely + checking the boot indicator byte of all four partitions in the primary + partition table to ensure that each one is either 0 or 0x80. libparted + should be in sync with these. I sent a patch upstream + (http://lists.alioth.debian.org/pipermail/parted- + devel/2008-May/002243.html and thread) which has been accepted, and I + uploaded this to intrepid as parted 1.7.1-5.1ubuntu10. - 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. + Attached is the diff between 1.7.1-5.1ubuntu9 in hardy and the proposed + 1.7.1-5.1ubuntu9.1. ** Changed in: parted (Ubuntu Hardy) Importance: Undecided => High Assignee: (unassigned) => Colin Watson (kamion) Status: New => Triaged Target: None => ubuntu-8.04.1 ** Attachment added: "hardy-proposed patch" http://launchpadlibrarian.net/14818653/parted_1.7.1-5.1ubuntu9.1.debdiff -- Partition tables sometimes misdetected as single large FAT file system https://bugs.launchpad.net/bugs/232175 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
