GNU bug report logs - #26393
Found a bug

Previous Next

Package: parted;

Reported by: Joshua Nelson <jyn514 <at> gmail.com>

Date: Fri, 7 Apr 2017 15:04:02 UTC

Severity: normal

Done: Phil Susi <psusi <at> ubuntu.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 26393 in the body.
You can then email your comments to 26393 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-parted <at> gnu.org:
bug#26393; Package parted. (Fri, 07 Apr 2017 15:04:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Joshua Nelson <jyn514 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-parted <at> gnu.org. (Fri, 07 Apr 2017 15:04:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Joshua Nelson <jyn514 <at> gmail.com>
To: bug-parted <at> gnu.org
Subject: Found a bug
Date: Fri, 7 Apr 2017 05:30:24 -0400
[Message part 1 (text/plain, inline)]
Hello, sorry to bother you.
I ran into a bug in parted this morning when trying to label an
encrypted partition. Does parted support LUKS partitions?
Thanks for your time.
Details:

version: 3.2
error message: *Assertion (disk != NULL) at ../../libparted/disk.c:1598
in function ped_disk_get_partition() failed.

*backtrace:
*(parted) name Encrypted
Error: /dev/sda3: unrecognised disk label
Error: Expecting a partition number.
(parted) name 3 Encrypted                                                
Error: /dev/sda3: unrecognised disk label
Backtrace has 8 calls on stack:                                          
  8: /lib/x86_64-linux-gnu/libparted.so.2(ped_assert+0x44) [0x7fdbcc169644]
  7: /lib/x86_64-linux-gnu/libparted.so.2(+0x11d65) [0x7fdbcc16dd65]
  6: parted(command_line_get_partition+0x4d) [0x40b67d]
  5: parted() [0x4078f2]
  4: parted(interactive_mode+0xff) [0x40ca2f]
  3: parted(main+0x119f) [0x405f6f]
  2: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)
[0x7fdbcb95eb45]
  1: parted() [0x405fc7]
*
output of command `parted` told me to run:
*joshua <at> Debian:~$ sudo parted /dev/sda unit co print unit s print
Model: ATA ST500LT012-9WS14 (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags:

Number  Start   End     Size    Type      File system     Flags
 1      1048kB  100GB   100GB   extended
 5      1049kB  25.0GB  25.0GB  logical   ext4
 6      25.0GB  27.0GB  1999MB  logical   linux-swap(v1)
 7      27.0GB  29.0GB  1999MB  logical   fat32           boot, esp
 4      100GB   247GB   147GB   primary   ext4
 2      247GB   326GB   78.6GB  primary   ext4
 3      326GB   327GB   1000MB  primary

Model: ATA ST500LT012-9WS14 (scsi)
Disk /dev/sda: 976773168s
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags:

Number  Start       End         Size        Type      File system     Flags
 1      2046s       195315711s  195313666s  extended
 5      2048s       48828415s   48826368s   logical   ext4
 6      48830464s   52733951s   3903488s    logical   linux-swap(v1)
 7      52736000s   56639487s   3903488s    logical   fat32          
boot, esp
 4      195315712s  482529279s  287213568s  primary   ext4
 2      482529280s  636129279s  153600000s  primary   ext4
 3      636131328s  638084452s  1953125s    primary

joshua <at> Debian:~$ sudo parted /dev/sda3 unit co print unit s print
Error: /dev/sda3: unrecognised disk label
Model: Unknown (unknown)                                                 
Disk /dev/sda3: 1000MB
Sector size (logical/physical): 512B/4096B
Partition Table: unknown
Disk Flags:
Error: /dev/sda3: unrecognised disk label
Model: Unknown (unknown)                                                 
Disk /dev/sda3: 1953125s
Sector size (logical/physical): 512B/4096B
Partition Table: unknown
Disk Flags:
*

-- 

--This message was sent with a PGP signature. For more information about
PGP and encryption, visit https://gnupg.org.--

[Message part 2 (text/html, inline)]
[signature.asc (application/pgp-signature, attachment)]

Reply sent to Phil Susi <psusi <at> ubuntu.com>:
You have taken responsibility. (Wed, 19 Apr 2017 18:11:01 GMT) Full text and rfc822 format available.

Notification sent to Joshua Nelson <jyn514 <at> gmail.com>:
bug acknowledged by developer. (Wed, 19 Apr 2017 18:11:01 GMT) Full text and rfc822 format available.

Message #10 received at 26393-done <at> debbugs.gnu.org (full text, mbox):

From: Phil Susi <psusi <at> ubuntu.com>
To: 26393-done <at> debbugs.gnu.org
Subject: Re: bug#26393: Found a bug
Date: Wed, 19 Apr 2017 14:12:35 -0400
On 4/7/2017 5:30 AM, Joshua Nelson wrote:
> Hello, sorry to bother you.
> I ran into a bug in parted this morning when trying to label an
> encrypted partition. Does parted support LUKS partitions?
> Thanks for your time.
> Details:
> 
> version: 3.2
> error message: *Assertion (disk != NULL) at ../../libparted/disk.c:1598
> in function ped_disk_get_partition() failed.
> 
> *backtrace:
> *(parted) name Encrypted
> Error: /dev/sda3: unrecognised disk label

You don't partition a partition ( /dev/sda3 ).  The crash was caused by
an already fixed bug with the name command when there is no partition table.





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 18 May 2017 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 8 years and 35 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.