GNU bug report logs -
#25233
hybrid iso reports 4x disk size with 2k sectors
Previous Next
To reply to this bug, email your comments to 25233 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-parted <at> gnu.org
:
bug#25233
; Package
parted
.
(Mon, 19 Dec 2016 16:40:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Bjørn Forsman <bjorn.forsman <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-parted <at> gnu.org
.
(Mon, 19 Dec 2016 16:40:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi all,
[My name is Bjørn Forsman, end user of parted, I'm using parted as my
primary partitioning tool.]
When I run parted (latest version, 3.2) on an ISO file, it gets
confused about the block size:
$ parted ubuntu-16.04-desktop-amd64.iso p
WARNING: You are not superuser. Watch out for permissions.
Warning: The driver descriptor says the physical block size is 2048
bytes, but Linux says it is 512 bytes.
Ignore/Cancel?
If I select "Ignore", it misinterprets the size and the partition table:
Model: (file)
Disk /home/bfo/Downloads/ubuntu-16.04-desktop-amd64.iso: 5944MB
Sector size (logical/physical): 2048B/512B
Partition Table: mac
Disk Flags:
Number Start End Size File system Name Flags
1 2048B 6143B 4096B Apple
2 1479MB 1481MB 2425kB EFI
And if I select "Cancel" it gets the size right but doesn't show any more data:
Model: (file)
Disk /home/bfo/Downloads/ubuntu-16.04-desktop-amd64.iso: 1486MB
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags:
Why cannot parted handle this like fdisk?
$ fdisk -l ubuntu-16.04-desktop-amd64.iso
Disk ubuntu-16.04-desktop-amd64.iso: 1.4 GiB, 1485881344 bytes,
2902112 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x0e0e8e70
Device Boot Start End Sectors Size Id Type
ubuntu-16.04-desktop-amd64.iso1 * 0 2902111 2902112 1.4G 0 Empty
ubuntu-16.04-desktop-amd64.iso2 2888004 2892739 4736 2.3M
ef EFI (FAT-12/16/32)
I wonder if commit f98f791e19669b900345dad7d96ea4df974e4596
("libparted: device mapper uses 512b sectors") fixes this.
This commit is from february 2015. Any plans on making a new release?
(I'm an end user, I use released software.)
Best regards,
Bjørn Forsman
Reply sent
to
Phil Susi <psusi <at> ubuntu.com>
:
You have taken responsibility.
(Tue, 18 Apr 2017 15:23:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Bjørn Forsman <bjorn.forsman <at> gmail.com>
:
bug acknowledged by developer.
(Tue, 18 Apr 2017 15:23:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 25233-done <at> debbugs.gnu.org (full text, mbox):
On 12/19/2016 7:19 AM, Bjørn Forsman wrote:
> Hi all,
>
> [My name is Bjørn Forsman, end user of parted, I'm using parted as my
> primary partitioning tool.]
>
> When I run parted (latest version, 3.2) on an ISO file, it gets
> confused about the block size:
>
> $ parted ubuntu-16.04-desktop-amd64.iso p
> WARNING: You are not superuser. Watch out for permissions.
> Warning: The driver descriptor says the physical block size is 2048
> bytes, but Linux says it is 512 bytes.
> Ignore/Cancel?
This is because the image contains a mac partition table using a block
size of 2048 bytes since the image is meant to go on a cdrom, which has
a sector size of 2048 bytes.
> If I select "Ignore", it misinterprets the size and the partition table:
>
> Model: (file)
> Disk /home/bfo/Downloads/ubuntu-16.04-desktop-amd64.iso: 5944MB
> Sector size (logical/physical): 2048B/512B
> Partition Table: mac
> Disk Flags:
>
> Number Start End Size File system Name Flags
> 1 2048B 6143B 4096B Apple
> 2 1479MB 1481MB 2425kB EFI
No; that is correctly interpreting the partition table.
> And if I select "Cancel" it gets the size right but doesn't show any more data:
>
> Model: (file)
> Disk /home/bfo/Downloads/ubuntu-16.04-desktop-amd64.iso: 1486MB
> Sector size (logical/physical): 512B/512B
> Partition Table: unknown
> Disk Flags:
This has the size wrong, and shows no data since you bailed out of
trying to interpret the mac partition table.
> Why cannot parted handle this like fdisk?
Because fdisk does not know about mac partition tables.
Information forwarded
to
bug-parted <at> gnu.org
:
bug#25233
; Package
parted
.
(Tue, 18 Apr 2017 16:09:01 GMT)
Full text and
rfc822 format available.
Message #13 received at 25233-done <at> debbugs.gnu.org (full text, mbox):
On 18 April 2017 at 17:23, Phil Susi <psusi <at> ubuntu.com> wrote:
> On 12/19/2016 7:19 AM, Bjørn Forsman wrote:
>> Hi all,
>>
>> [My name is Bjørn Forsman, end user of parted, I'm using parted as my
>> primary partitioning tool.]
>>
>> When I run parted (latest version, 3.2) on an ISO file, it gets
>> confused about the block size:
>>
>> $ parted ubuntu-16.04-desktop-amd64.iso p
>> WARNING: You are not superuser. Watch out for permissions.
>> Warning: The driver descriptor says the physical block size is 2048
>> bytes, but Linux says it is 512 bytes.
>> Ignore/Cancel?
>
> This is because the image contains a mac partition table using a block
> size of 2048 bytes since the image is meant to go on a cdrom, which has
> a sector size of 2048 bytes.
>
>> If I select "Ignore", it misinterprets the size and the partition table:
>>
>> Model: (file)
>> Disk /home/bfo/Downloads/ubuntu-16.04-desktop-amd64.iso: 5944MB
>> Sector size (logical/physical): 2048B/512B
>> Partition Table: mac
>> Disk Flags:
>>
>> Number Start End Size File system Name Flags
>> 1 2048B 6143B 4096B Apple
>> 2 1479MB 1481MB 2425kB EFI
>
> No; that is correctly interpreting the partition table.
Ok. Maybe I was wrong about the parition table (don't know what I
expected). But the size of the image (5944MB) is wrong. The real file
is 1.5GB.
Best regards,
Bjørn Forsman
Information forwarded
to
bug-parted <at> gnu.org
:
bug#25233
; Package
parted
.
(Tue, 18 Apr 2017 17:53:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 25233 <at> debbugs.gnu.org (full text, mbox):
reopen 25233
retitle 25233 hybrid iso reports 4x disk size with 2k sectors
thanks
On 4/18/2017 12:08 PM, Bjørn Forsman wrote:
> Ok. Maybe I was wrong about the parition table (don't know what I
> expected). But the size of the image (5944MB) is wrong. The real file
> is 1.5GB.
That looks like an error. I'll look at it.
Did not alter fixed versions and reopened.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 18 Apr 2017 17:53:02 GMT)
Full text and
rfc822 format available.
Changed bug title to 'hybrid iso reports 4x disk size with 2k sectors' from 'parted is confused by ISO images, miscalculates sizes/offsets'
Request was from
Phil Susi <psusi <at> ubuntu.com>
to
control <at> debbugs.gnu.org
.
(Tue, 18 Apr 2017 17:53:02 GMT)
Full text and
rfc822 format available.
Merged 25233 26214.
Request was from
Phil Susi <psusi <at> ubuntu.com>
to
control <at> debbugs.gnu.org
.
(Wed, 19 Apr 2017 13:13:01 GMT)
Full text and
rfc822 format available.
This bug report was last modified 8 years and 58 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.