[Parted-maintainers] Bug#591096: parted: misparses -1s on command line

Marc Haber mh+debian-bugs at zugschlus.de
Sat Jul 31 21:16:04 UTC 2010


Package: parted
Version: 2.3-1
Severity: normal

# parted /dev/sda print
Model: ATA WDC WD1002FBYS-0 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system  Name   Flags
 1      1049kB  2097kB  1049kB               grub2  bios_grub
 2      2097kB  602MB   600MB                boot

# parted /dev/sda mkpart foo ext2 602MB -1s
parted: invalid option -- '1'
Usage: parted [-hlmsv] [-a<align>] [DEVICE [COMMAND [PARAMETERS]]...]
#                                                             

The docs say that -1s means the end of the disk. Parted should
correctl parse this.

A workaround is writing
parted /dev/sda mkpart -- foo ext2 602MB -1s
works fine.

Greetings
Marc

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

Kernel: Linux 2.6.34.1-zgws1 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (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-2       Embedded GNU C Library: Shared lib
ii  libdevmapper1.02.1        2:1.02.48-2    The Linux Kernel Device Mapper use
ii  libncurses5               5.7+20100313-2 shared libraries for terminal hand
ii  libparted0debian1         2.3-1          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:
ii  parted-doc                    2.3-1      The GNU Parted disk partition resi

-- no debconf information





More information about the Parted-maintainers mailing list