GNU bug report logs - #25813
Alignment check should not be done to the end of the partition

Previous Next

Package: parted;

Reported by: Harald Dunkel <harald.dunkel <at> aixigo.de>

Date: Mon, 20 Feb 2017 15:51:01 UTC

Severity: normal

To reply to this bug, email your comments to 25813 AT debbugs.gnu.org.

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#25813; Package parted. (Mon, 20 Feb 2017 15:51:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Harald Dunkel <harald.dunkel <at> aixigo.de>:
New bug report received and forwarded. Copy sent to bug-parted <at> gnu.org. (Mon, 20 Feb 2017 15:51:02 GMT) Full text and rfc822 format available.

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

From: Harald Dunkel <harald.dunkel <at> aixigo.de>
To: bug-parted <at> gnu.org
Subject: parted should tell which partition is misaligned
Date: Mon, 20 Feb 2017 16:50:00 +0100
Hi folks,

parted 3.2-17 (Debian Unstable) doesn't tell which partition
is misaligned. Sample session:

# parted /dev/sda
GNU Parted 3.2
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) u s p
Model: AVAGO MR9361-8i (scsi)
Disk /dev/sda: 23438819328s
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:

Number  Start       End           Size          File system     Name       Flags
 1      63s         2047s         1985s                         bios_grub  bios_grub
 2      2048s       524287s       522240s       fat16           efi_boot
 3      524288s     67108863s     66584576s     ext4            root
 4      67108864s   603979775s    536870912s    linux-swap(v1)  swap
 5      603979776s  671088639s    67108864s     ext4            none
 6      671088640s  23438817279s  22767728640s  ext4            export

(parted) rm 6
(parted) mkpart export 671088640s -2049s
Warning: The resulting partition is not properly aligned for best performance.
Ignore/Cancel? i
(parted) q
Information: You may need to update /etc/fstab.


Partition 6 is perfectly aligned (320 MiB), so the warning
is very misleading. How about a message like

Warning: Partition 1 is not properly aligned for best performance.


Regards
Harri




Information forwarded to bug-parted <at> gnu.org:
bug#25813; Package parted. (Wed, 19 Apr 2017 13:10:02 GMT) Full text and rfc822 format available.

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

From: Phil Susi <psusi <at> ubuntu.com>
To: Harald Dunkel <harald.dunkel <at> aixigo.de>, 25813 <at> debbugs.gnu.org
Subject: Re: bug#25813: parted should tell which partition is misaligned
Date: Wed, 19 Apr 2017 09:11:08 -0400
retitle 25813 Alignment check should not be done to the end of the partition
thanks

On 2/20/2017 10:50 AM, Harald Dunkel wrote:
> Hi folks,
> 
> parted 3.2-17 (Debian Unstable) doesn't tell which partition
> is misaligned. Sample session:

> (parted) mkpart export 671088640s -2049s
> Warning: The resulting partition is not properly aligned for best performance.
> Ignore/Cancel? i

It is, of course, referring to the one you are trying to create.  Its
end point is not aligned.  Of course, there isn't much point to the end
being aligned so maybe we should only be checking the start.





Changed bug title to 'Alignment check should not be done to the end of the partition' from 'parted should tell which partition is misaligned' Request was from Phil Susi <psusi <at> ubuntu.com> to control <at> debbugs.gnu.org. (Wed, 19 Apr 2017 13:10:04 GMT) Full text and rfc822 format available.

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

Previous Next


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