X-Loop: help-debbugs@HIDDEN
Subject: bug#23301: I found a bug in GNU Parted 3.2
Resent-From: Luca Coianiz <luca@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-parted@HIDDEN
Resent-Date: Sat, 16 Apr 2016 17:31:01 +0000
Resent-Message-ID: <handler.23301.B.14608278263091 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 23301
X-GNU-PR-Package: parted
X-GNU-PR-Keywords:
To: 23301 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-parted <bug-parted@HIDDEN>
Reply-To: Luca Coianiz <luca@HIDDEN>
Received: via spool by submit <at> debbugs.gnu.org id=B.14608278263091
(code B ref -1); Sat, 16 Apr 2016 17:31:01 +0000
Received: (at submit) by debbugs.gnu.org; 16 Apr 2016 17:30:26 +0000
Received: from localhost ([127.0.0.1]:37600 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1arU38-0000nn-Ad
for submit <at> debbugs.gnu.org; Sat, 16 Apr 2016 13:30:26 -0400
Received: from eggs.gnu.org ([208.118.235.92]:49552)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <luca@HIDDEN>) id 1arPW6-0002NQ-Fd
for submit <at> debbugs.gnu.org; Sat, 16 Apr 2016 08:40:02 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from <luca@HIDDEN>) id 1arPW0-00007m-0x
for submit <at> debbugs.gnu.org; Sat, 16 Apr 2016 08:39:57 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: **
X-Spam-Status: No, score=2.8 required=5.0 tests=BAYES_50,XPRIO
autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:38369)
by eggs.gnu.org with esmtp (Exim 4.71)
(envelope-from <luca@HIDDEN>) id 1arPVz-00007c-Uc
for submit <at> debbugs.gnu.org; Sat, 16 Apr 2016 08:39:55 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:40514)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from <luca@HIDDEN>) id 1arPVy-0003RE-DK
for bug-parted@HIDDEN; Sat, 16 Apr 2016 08:39:55 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from <luca@HIDDEN>) id 1arPVv-00006p-1L
for bug-parted@HIDDEN; Sat, 16 Apr 2016 08:39:54 -0400
Received: from hostingsmtp89.register.it ([81.88.62.178]:41590
helo=hostingsmtp.register.it) by eggs.gnu.org with esmtp (Exim 4.71)
(envelope-from <luca@HIDDEN>) id 1arPVu-00006b-Mg
for bug-parted@HIDDEN; Sat, 16 Apr 2016 08:39:50 -0400
Received: from popper02.register.it ([81.88.56.99]) by paganini36 with
id j0fm1s00A28SfA9010fmbr; Sat, 16 Apr 2016 14:39:47 +0200
Date: Sat, 16 Apr 2016 14:39:46 +0200 (CEST)
From: Luca Coianiz <luca@HIDDEN>
Message-ID: <1925355535.697161.1460810386216.JavaMail.open-xchange@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Priority: 3
Importance: Medium
X-Mailer: Open-Xchange Mailer v7.6.2-Rev49
X-Originating-IP: 213.203.165.77
X-Originating-Client: open-xchange-appsuite
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -3.0 (---)
X-Mailman-Approved-At: Sat, 16 Apr 2016 13:30:25 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)
Premise: I thought my 2 disks, 1 TB each, which I assembled into a software
RAID1 /dev/md0, was not correctly added to the RAID, in details: /dev/sdb5
wasn't added as linux-swap unlike /dev/sda5, so I was trying to use parted to
make sdb5 recognized as swap, to later add it to the RAID1.
--------------------------------------------------------------------------------
[...]
(parted) select /dev/sda
Using /dev/sda
(parted) print 5
(parted) print devices
/dev/sda (1000GB)
/dev/sdb (1000GB)
/dev/md0 (998GB)
/dev/sdb5 (2123MB)
(parted) print
Model: ATA Hitachi HDT72101 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 998GB 998GB primary boot, raid
2 998GB 1000GB 2123MB extended
5 998GB 1000GB 2123MB logical linux-swap(v1)
(parted) help mkpart
mkpart PART-TYPE [FS-TYPE] START END make a partition
PART-TYPE is one of: primary, logical, extended
FS-TYPE is one of: zfs, btrfs, nilfs2, ext4, ext3, ext2, fat32, fat16,
hfsx, hfs+, hfs, jfs, swsusp, linux-swap(v1), linux-swap(v0), ntfs, reiserfs,
freebsd-ufs, hp-ufs, sun-ufs, xfs, apfs2, apfs1, asfs, amufs5, amufs4, amufs3,
amufs2, amufs1, amufs0, amufs,
affs7, affs6, affs5, affs4, affs3, affs2, affs1, affs0, linux-swap,
linux-swap(new), linux-swap(old)
START and END are disk locations, such as 4GB or 10%. Negative values
count from the end of the disk. For example, -1s specifies exactly the last
sector.
'mkpart' makes a partition without creating a new file system on the
partition. FS-TYPE may be specified to set an appropriate partition ID.
(parted) print
Backtrace has 11 calls on stack:
11: /lib/i386-linux-gnu/libparted.so.2(ped_assert+0x51) [0xb76aadc1]
10: /lib/i386-linux-gnu/libparted.so.2(+0x1de36) [0xb76bfe36]
9: /lib/i386-linux-gnu/libparted.so.2(+0x1df46) [0xb76bff46]
8: /lib/i386-linux-gnu/libparted.so.2(+0x1fc38) [0xb76c1c38]
7: /lib/i386-linux-gnu/libparted.so.2(+0xe424) [0xb76b0424]
6: /lib/i386-linux-gnu/libparted.so.2(ped_disk_set_flag+0x6e) [0xb76b0b5e]
5: parted() [0x804e755]
4: parted(interactive_mode+0x101) [0x80536c1]
3: parted(main+0x10f4) [0x804cb14]
2: /lib/i386-linux-gnu/i686/cmov/libc.so.6(__libc_start_main+0xf3)
[0xb74a4a63]
1: parted() [0x804cb67]
You found a bug in GNU Parted! Here's what you have to do:
Don't panic! The bug has most likely not affected any of your data.
Help us to fix this bug by doing the following:
Check whether the bug has already been fixed by checking
the last version of GNU Parted that you can find at:
http://ftp.gnu.org/gnu/parted/
Please check this version prior to bug reporting.
If this has not been fixed yet or if you don't know how to check,
please visit the GNU Parted website:
http://www.gnu.org/software/parted
for further information.
Your report should contain the version of this release (3.2)
along with the error message below, the output of
parted DEVICE unit co print unit s print
and the following history of commands you entered.
Also include any additional information about your setup you
consider important.
Assertion (part->disk->dev->sector_size % PED_SECTOR_SIZE_DEFAULT == 0) at
../../../libparted/labels/dos.c:589 in function probe_filesystem_for_geom()
failed.
Aborted
root@home:~# parted /dev/sdb5 unit co print unit s print
Error: /dev/sdb5: unrecognised disk label
Model: Unknown (unknown)
Disk /dev/sdb5: 2123MB
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags:
Error: /dev/sdb5: unrecognised disk label
Model: Unknown (unknown)
Disk /dev/sdb5: 4147200s
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags:
root@home:~# uname -a
Linux home 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt25-1 (2016-03-06) i686
GNU/Linux
root@home:~#
--------------------------------------------------------------------------------
I sent this mail to the bug-parted ML, as requested, but I've not subscribed the
ML itself, so I'm available for further investigations on direct mail basis.
Luca Coianiz
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Luca Coianiz <luca@HIDDEN> Subject: bug#23301: Acknowledgement (I found a bug in GNU Parted 3.2) Message-ID: <handler.23301.B.14608278263091.ack <at> debbugs.gnu.org> References: <1925355535.697161.1460810386216.JavaMail.open-xchange@HIDDEN> X-Gnu-PR-Message: ack 23301 X-Gnu-PR-Package: parted Reply-To: 23301 <at> debbugs.gnu.org Date: Sat, 16 Apr 2016 17:31:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-parted@HIDDEN If you wish to submit further information on this problem, please send it to 23301 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 23301: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D23301 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.