Package: gnu-fdisk Version: 1.0-3+b1 Severity: grave data loss + security
On GPT partioned MacBook(Intel Mac), gnu-fdisk read GPT partition properly for: Device Boot Start End Blocks But values displayed for: Id System are bogus. GPT (http://en.wikipedia.org/wiki/GUID_Partition_Table) Partition type GUIDs but it is not like old MBR type info. Filesystem needs to be identified with different method like one used by parted. gptsync just print phrase based on "Partition type GUID". Also this is not a tool maintained by upstream and the maintainer is not willing to fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=461888 If maintainer admits as unmaintained software, there is big security risk. grave bug. I am wondering why this package is kept. People need to have access to libparted, they can do so with parted. Tricking user with fdisk while presenting wrong partition type info confuses people with no gain. It may cause data loss due to wrong imprssion this software gives and freitend user may do funny thing. data loss is grave bug Based on this observation, I am filing this as RC bug to keep this away from lenny release. As for bug 461888, use of update-alternatives may not be good idea. Its backend is perl. fdisk is a program is sometimes used in early installation phase or system recovery, it is not good idea to use such complicated method as alternative either. (diversion is also not so nice) Thus if you think about maintaining this for squeeze, please consider to pick different command names which does not overrap with normail fdisk. Please see below how this displays partitions. ========================= [EMAIL PROTECTED]:~$ sudo fdisk /dev/sda [sudo] password for osamu: GNU Fdisk 1.0 Copyright (C) 1998 - 2006 Free Software Foundation, Inc. This program is free software, covered by the GNU General Public License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. Using /dev/sda Command (m for help): p Disk /dev/sda: 80 GB, 80023749120 bytes 255 heads, 63 sectors/track, 9729 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 * 1 26 208813 83 Linux /dev/sda2 26 2098 16643340 83 Linux /dev/sda3 * 2115 6276 33423232 83 Linux /dev/sda4 * 6292 8364 16643340 83 Linux /dev/sda5 * 8381 8887 4064445 83 Linux /dev/sda6 * 8903 9164 2096482 83 Linux /dev/sda7 9164 9730 4546395 82 Linux Swap / Solaris Command (m for help): q [EMAIL PROTECTED]:~$ sudo gptsync /dev/sda Current GPT partition table: # Start LBA End LBA Type 1 40 409639 EFI System (FAT) 2 409640 33701927 Mac OS X HFS+ 3 33964072 100810791 EFI System (FAT) 4 101072936 134365223 EFI System (FAT) 5 134627368 142753831 EFI System (FAT) 6 143015976 147210279 EFI System (FAT) 7 147210280 156301447 Linux Swap Current MBR partition table: # A Start LBA End LBA Type 1 1 409639 ee EFI Protective 2 409640 33701927 af Mac OS X HFS+ 3 * 33964072 100810791 83 Linux 4 101072936 134365223 83 Linux Status: Tables are synchronized, no need to sync. [EMAIL PROTECTED]:~$ sudo parted /dev/sda print Model: ATA FUJITSU MHV2080B (scsi) Disk /dev/sda: 80.0GB Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags 1 20.5kB 210MB 210MB fat32 EFI System Partition boot 2 210MB 17.3GB 17.0GB hfs+ Apple_HFS_Untitled_1 3 17.4GB 51.6GB 34.2GB ext3 Linux64 boot 4 51.7GB 68.8GB 17.0GB ext3 Linux32 boot 5 68.9GB 73.1GB 4161MB ext3 Linux_test boot 6 73.2GB 75.4GB 2147MB ext3 linuxxxx boot 7 75.4GB 80.0GB 4655MB linux-swap SWAP -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (800, 'unstable'), (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages gnu-fdisk depends on: ii libc6 2.7-15 GNU C Library: Shared libraries ii libncurses5 5.6+20081025-1 shared libraries for terminal hand ii libparted1.8-10 1.8.8.git.2008.03.24-11 The GNU Parted disk partitioning s ii libuuid1 1.41.3-1 universally unique id library gnu-fdisk recommends no packages. gnu-fdisk suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]