[Parted-maintainers] Bug#597741: parted offers confusing report status about filesystem type

Daniel Kahn Gillmor dkg at fifthhorseman.net
Wed Sep 22 17:08:01 UTC 2010


Package: parted
Version: 2.3-2
Severity: normal

parted seems to get confused about what type i specify.  i say
"fat32", and it reports "ntfs":

0 pip:~# parted /dev/sdc print
Model: WD My Passport 071A (scsi)
Disk /dev/sdc: 320GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start  End  Size  Type  File system  Flags

0 pip:~# parted /dev/sdc mkpart primary fat32 1MiB 10MiB
Information: You may need to update /etc/fstab.                           

0 pip:~# parted /dev/sdc print
Model: WD My Passport 071A (scsi)
Disk /dev/sdc: 320GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  10.5MB  9437kB  primary  ntfs         lba

0 pip:~# 

This is probably because the underlying disk used to have an NTFS
volume positioned in the same spot, so the "print" is scanning the
actual disk contents, while "mkpart" is just setting the flag in the
partition table itself.

this is confusing, though.  it's especially confusing given that
"mkpartfs" (which would actually fiddle with the bytes in the
partition itself and thereby cause the report to reflect the request)
is apparently deprecated.

   --dkg

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing'), (200, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages parted depends on:
ii  libblkid1                 2.17.2-3.1     block device id library
ii  libc6                     2.11.2-5       Embedded GNU C Library: Shared lib
ii  libdevmapper1.02.1        2:1.02.48-3    The Linux Kernel Device Mapper use
ii  libncurses5               5.7+20100313-2 shared libraries for terminal hand
ii  libparted0debian1         2.3-2          The GNU Parted disk partitioning s
ii  libreadline6              6.1-3          GNU readline and history libraries
ii  libuuid1                  2.17.2-3.1     Universally Unique ID library

parted recommends no packages.

Versions of packages parted suggests:
pn  parted-doc                    <none>     (no description available)

-- no debconf information





More information about the Parted-maintainers mailing list