GNU bug report logs - #47945
4096 Sector bug

Previous Next

Package: parted;

Reported by: Eric Wood <ewood <at> uwo.ca>

Date: Thu, 22 Apr 2021 00:33: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 47945 in the body.
You can then email your comments to 47945 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#47945; Package parted. (Thu, 22 Apr 2021 00:33:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Eric Wood <ewood <at> uwo.ca>:
New bug report received and forwarded. Copy sent to bug-parted <at> gnu.org. (Thu, 22 Apr 2021 00:33:02 GMT) Full text and rfc822 format available.

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

From: Eric Wood <ewood <at> uwo.ca>
To: bug-parted <at> gnu.org
Subject: 4096 Sector bug
Date: Wed, 21 Apr 2021 19:46:50 -0400
[Message part 1 (text/plain, inline)]
I recently installed Ubuntu on a SSD with logical/physical sector size 
of 4096/4096.  Everything works fine; however, just for curiosity I did 
a check on the efi partition 500MB, formatted as FAT32.

I got the following error messages: (See image).

This does not happen on a usb drive with 512 byte sectors.

Everything looks fine when I check with fsck.fat:

fsck.fat 4.1 (2017-01-24)
Checking we can access the last sector of the filesystem
Boot sector contents:
System ID "mkfs.fat"
Media byte 0xf8 (hard disk)
      4096 bytes per logical sector
      4096 bytes per cluster
        32 reserved sectors
First FAT starts at byte 131072 (sector 32)
         2 FATs, 32 bit entries
    512000 bytes per FAT (= 125 sectors)
Root directory start at cluster 2 (arbitrary size)
Data area starts at byte 1155072 (sector 282)
    127718 data clusters (523132928 bytes)
63 sectors/track, 255 heads
      2048 hidden sectors
    128000 sectors total
Checking for unused clusters.
Checking free cluster summary.
/dev/sda1: 11 files, 1997/127718 clusters


Here is the output you requested from parted:


Model: Unknown (unknown)
Disk /dev/sda1: 524MB
Sector size (logical/physical): 4096B/4096B
Partition Table: loop
Disk Flags:

Number  Start  End    Size   File system  Flags
 1      0.00B  524MB  524MB  fat32

Model: Unknown (unknown)
Disk /dev/sda1: 128000s
Sector size (logical/physical): 4096B/4096B
Partition Table: loop
Disk Flags:

Number  Start  End      Size     File system  Flags
 1      0s     127999s  128000s  fat32

Model: Unknown (unknown)
Disk /dev/sda1: 55,197,1
Sector size (logical/physical): 4096B/4096B
BIOS cylinder,head,sector geometry: 55,255,9.  Each cylinder is 9400kB.
Partition Table: loop
Disk Flags:

Thanks!

Eric (Wood)

[Untitled3.png (image/png, attachment)]

Information forwarded to bug-parted <at> gnu.org:
bug#47945; Package parted. (Thu, 22 Apr 2021 17:39:01 GMT) Full text and rfc822 format available.

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

From: "Brian C. Lane" <bcl <at> redhat.com>
To: bug-parted <at> gnu.org
Subject: Re: bug#47945: 4096 Sector bug
Date: Thu, 22 Apr 2021 10:37:01 -0700
On Wed, Apr 21, 2021 at 07:46:50PM -0400, Eric Wood wrote:
> I recently installed Ubuntu on a SSD with logical/physical sector size 
> of 4096/4096.  Everything works fine; however, just for curiosity I did 
> a check on the efi partition 500MB, formatted as FAT32.
> 
> I got the following error messages: (See image).

We need an error from parted in order to diagnose problems, or a
stacktrace from libparted if something crashes.

> This does not happen on a usb drive with 512 byte sectors.
> 
> Everything looks fine when I check with fsck.fat:
> 
> fsck.fat 4.1 (2017-01-24)
> Checking we can access the last sector of the filesystem
> Boot sector contents:
> System ID "mkfs.fat"
> Media byte 0xf8 (hard disk)
>        4096 bytes per logical sector
>        4096 bytes per cluster
>          32 reserved sectors
> First FAT starts at byte 131072 (sector 32)
>           2 FATs, 32 bit entries
>      512000 bytes per FAT (= 125 sectors)
> Root directory start at cluster 2 (arbitrary size)
> Data area starts at byte 1155072 (sector 282)
>      127718 data clusters (523132928 bytes)
> 63 sectors/track, 255 heads
>        2048 hidden sectors
>      128000 sectors total
> Checking for unused clusters.
> Checking free cluster summary.
> /dev/sda1: 11 files, 1997/127718 clusters
> 
> 
> Here is the output you requested from parted:
> 
> 
> Model: Unknown (unknown)
> Disk /dev/sda1: 524MB
> Sector size (logical/physical): 4096B/4096B
> Partition Table: loop
> Disk Flags:
> 
> Number  Start  End    Size   File system  Flags
>   1      0.00B  524MB  524MB  fat32
> 
> Model: Unknown (unknown)
> Disk /dev/sda1: 128000s
> Sector size (logical/physical): 4096B/4096B
> Partition Table: loop
> Disk Flags:
> 
> Number  Start  End      Size     File system  Flags
>   1      0s     127999s  128000s  fat32
> 
> Model: Unknown (unknown)
> Disk /dev/sda1: 55,197,1
> Sector size (logical/physical): 4096B/4096B
> BIOS cylinder,head,sector geometry: 55,255,9.  Each cylinder is 9400kB.
> Partition Table: loop
> Disk Flags:
> 
> Thanks!
> 
> Eric (Wood)
> 

That looks like parted wasn't used to partition the disk, the file
system is starting at sector 0 and the table is 'loop'.

I'm not clear on what you think is wrong with parted.

Brian

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





Information forwarded to bug-parted <at> gnu.org:
bug#47945; Package parted. (Thu, 22 Apr 2021 23:34:02 GMT) Full text and rfc822 format available.

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

From: Eric Wood <ewood <at> uwo.ca>
To: 47945 <at> debbugs.gnu.org
Subject: My Mistake
Date: Thu, 22 Apr 2021 19:21:34 -0400
I apologize for sending my bug report to the wrong place:  I assumed 
that gparted was just a short form for GNU Parted which it is not.  The 
problem is with gparted not parted.  Sorry for any inconvenience caused.

Cheers!

Eric (Wood)





Reply sent to "Brian C. Lane" <bcl <at> redhat.com>:
You have taken responsibility. (Thu, 22 Apr 2021 23:44:01 GMT) Full text and rfc822 format available.

Notification sent to Eric Wood <ewood <at> uwo.ca>:
bug acknowledged by developer. (Thu, 22 Apr 2021 23:44:02 GMT) Full text and rfc822 format available.

Message #16 received at 47945-close <at> debbugs.gnu.org (full text, mbox):

From: "Brian C. Lane" <bcl <at> redhat.com>
To: 47945-close <at> debbugs.gnu.org
Subject: Re: bug#47945: My Mistake
Date: Thu, 22 Apr 2021 16:42:59 -0700
On Thu, Apr 22, 2021 at 07:21:34PM -0400, Eric Wood wrote:
> I apologize for sending my bug report to the wrong place:  I assumed 
> that gparted was just a short form for GNU Parted which it is not.  The 
> problem is with gparted not parted.  Sorry for any inconvenience caused.

Thanks for the clarification.

Brian

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





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

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

Previous Next


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