GNU bug report logs - #52125
bug: parted msdos type disk different from expect

Previous Next

Package: parted;

Reported by: lixiaokeng <lixiaokeng <at> huawei.com>

Date: Fri, 26 Nov 2021 14:18:01 UTC

Severity: normal

Done: "Brian C. Lane" <bcl <at> redhat.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 52125 in the body.
You can then email your comments to 52125 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#52125; Package parted. (Fri, 26 Nov 2021 14:18:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to lixiaokeng <lixiaokeng <at> huawei.com>:
New bug report received and forwarded. Copy sent to bug-parted <at> gnu.org. (Fri, 26 Nov 2021 14:18:02 GMT) Full text and rfc822 format available.

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

From: lixiaokeng <lixiaokeng <at> huawei.com>
To: <bug-parted <at> gnu.org>
Cc: linfeilong <linfeilong <at> huawei.com>,
 "liuzhiqiang \(I\)" <liuzhiqiang26 <at> huawei.com>
Subject: bug: parted msdos type disk different from expect
Date: Fri, 26 Nov 2021 17:57:29 +0800
I parted a disk as:

parted /dev/sdb -s mklabel msdos
parted /dev/sdb -s mkpart primary 0cyl 64cyl

The expected result:
Number  Start   End    Size   Type     File system  Flags
 1      1049kB  526MB  525MB  primary

Fault result:
Warning: The resulting partition is not properly aligned for best performance: 1s % 2048s != 0s

Number  Start  End     Size    Type     File system  Flags
 1      512B   16.7MB  16.7MB  primary


The fault result is cause by commit 61dd3d4:
Use BLKSSZGET to get device sector size in _device_probe_geometry()





Information forwarded to bug-parted <at> gnu.org:
bug#52125; Package parted. (Wed, 01 Dec 2021 19:35:02 GMT) Full text and rfc822 format available.

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

From: "Brian C. Lane" <bcl <at> redhat.com>
To: 52125-close <at> debbugs.gnu.org
Cc: linfeilong <linfeilong <at> huawei.com>, 52125 <at> debbugs.gnu.org,
 "liuzhiqiang \(I\)" <liuzhiqiang26 <at> huawei.com>
Subject: Re: bug#52125: bug: parted msdos type disk different from expect
Date: Wed, 1 Dec 2021 11:34:12 -0800
On Fri, Nov 26, 2021 at 05:57:29PM +0800, lixiaokeng via Bug reports for the GNU Parted disk partition editor wrote:
> I parted a disk as:
> 
> parted /dev/sdb -s mklabel msdos
> parted /dev/sdb -s mkpart primary 0cyl 64cyl
> 
> The expected result:
> Number  Start   End    Size   Type     File system  Flags
>  1      1049kB  526MB  525MB  primary
> 
> Fault result:
> Warning: The resulting partition is not properly aligned for best performance: 1s % 2048s != 0s
> 
> Number  Start  End     Size    Type     File system  Flags
>  1      512B   16.7MB  16.7MB  primary
> 
> 
> The fault result is cause by commit 61dd3d4:
> Use BLKSSZGET to get device sector size in _device_probe_geometry()

I would strongly suggest that you don't use cyl as a unit. There is no
good reason to be doing that in 2021.

Brian

-- 
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart





Reply sent to "Brian C. Lane" <bcl <at> redhat.com>:
You have taken responsibility. (Wed, 01 Dec 2021 19:35:02 GMT) Full text and rfc822 format available.

Notification sent to lixiaokeng <lixiaokeng <at> huawei.com>:
bug acknowledged by developer. (Wed, 01 Dec 2021 19:35:02 GMT) Full text and rfc822 format available.

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

This bug report was last modified 2 years and 79 days ago.

Previous Next


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