GNU bug report logs - #27884
parted reports the partition is not optimally aligned, even though it's 1MiB-aligned

Previous Next

Package: parted;

Reported by: Alicia Boya García <ntrrgc <at> gmail.com>

Date: Mon, 31 Jul 2017 00:06:01 UTC

Severity: normal

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Alicia Boya García <ntrrgc <at> gmail.com>
To: 27884 <at> debbugs.gnu.org
Subject: bug#27884: parted reports the partition is not optimally aligned, even though it's 1MiB-aligned
Date: Mon, 31 Jul 2017 00:46:34 +0200
Hi.

Is there any explanation to this GNU parted output?

GNU Parted 3.2
Using /dev/sde
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) unit B                                                          
(parted) p                                                               
Model: Seagate M3 Portable (scsi)
Disk /dev/sde: 4000787029504B
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:

Number  Start     End             Size            File system  Name  Flags
 1      1048576B  4000786153471B  4000785104896B  ext4

(parted) align-check                                                     
alignment type(min/opt)  [optimal]/minimal?                              
Partition number? 1                                                      
1 not aligned

Why does it say it's not aligned? Both the the start and the end are
1MB-aligned (and therefore trivially 4096B-aligned and 512B-aligned), am
I right?

In [1]: 1048576/4096
Out[1]: 256.0

In [2]: 4000785104896/4096
Out[2]: 976754176.0

For the record, at least it says it complies with "minimal" alignment:

(parted) align-check                                                     
alignment type(min/opt)  [optimal]/minimal? minimal                      
Partition number? 1                                                      
1 aligned

Regards,
Alicia.






This bug report was last modified 7 years and 246 days ago.

Previous Next


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