X-Loop: help-debbugs@HIDDEN
Subject: bug#26214: parted miscalculates size of USB disk that has been written a raw ISO image
Resent-From: =?UTF-8?Q?Bj=C3=B8rn?= Forsman <bjorn.forsman@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-parted@HIDDEN
Resent-Date: Wed, 22 Mar 2017 08:29:02 +0000
Resent-Message-ID: <handler.26214.B.149017131725664 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 26214
X-GNU-PR-Package: parted
X-GNU-PR-Keywords:
To: 26214 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-parted@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.149017131725664
(code B ref -1); Wed, 22 Mar 2017 08:29:02 +0000
Received: (at submit) by debbugs.gnu.org; 22 Mar 2017 08:28:37 +0000
Received: from localhost ([127.0.0.1]:38601 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1cqbdF-0006fs-BF
for submit <at> debbugs.gnu.org; Wed, 22 Mar 2017 04:28:37 -0400
Received: from eggs.gnu.org ([208.118.235.92]:50364)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <bjorn.forsman@HIDDEN>) id 1cqbdD-0006fd-Ao
for submit <at> debbugs.gnu.org; Wed, 22 Mar 2017 04:28:35 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from <bjorn.forsman@HIDDEN>) id 1cqbd6-0002Ex-Uh
for submit <at> debbugs.gnu.org; Wed, 22 Mar 2017 04:28:30 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level:
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:53565)
by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
(Exim 4.71) (envelope-from <bjorn.forsman@HIDDEN>)
id 1cqbd6-0002Es-R9
for submit <at> debbugs.gnu.org; Wed, 22 Mar 2017 04:28:28 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:41317)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from <bjorn.forsman@HIDDEN>) id 1cqbd5-0004bJ-6L
for bug-parted@HIDDEN; Wed, 22 Mar 2017 04:28:28 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from <bjorn.forsman@HIDDEN>) id 1cqbd4-0002D4-9P
for bug-parted@HIDDEN; Wed, 22 Mar 2017 04:28:27 -0400
Received: from mail-wr0-x235.google.com ([2a00:1450:400c:c0c::235]:33043)
by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
(Exim 4.71) (envelope-from <bjorn.forsman@HIDDEN>)
id 1cqbd4-0002Ck-3B
for bug-parted@HIDDEN; Wed, 22 Mar 2017 04:28:26 -0400
Received: by mail-wr0-x235.google.com with SMTP id y90so7858190wrb.0
for <bug-parted@HIDDEN>; Wed, 22 Mar 2017 01:28:25 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=mime-version:from:date:message-id:subject:to
:content-transfer-encoding;
bh=QS+b8XfsZhtIuQnMSrd7JimzHEfLOdrXx4g8jyKC5KY=;
b=pQ7Dzpa+LnH5K3pf9I0ao7LbyZ6Xulh8XDKlMX79u/QSJOXJ/L5Tr2/zt4ijznFB/X
eg6EbuY5cbUtv/Fbd9PxN+ylssFY9qpF64RviHGVnKEVER5SDYejP/FRgVPkCwHUoWTU
9bc0O3lWw2EpJI+fhpWk44WtAs6Cyl6XhaiIdCI5ANvIE77CkS6DXTNvRU21KRdDUkko
zFmbKOjQii3vSEt319x4RNbGAkpntuiZj3fXirBun16Pws1wAmParKm4Lf9kKy6PkgYO
8WhD9EYLQEvMz4Q4s7OhSh6+9JDv2e0UeqrS4Af0+D9WNHXR8R72mlFUQJSazwCaypHL
mDSw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:from:date:message-id:subject:to
:content-transfer-encoding;
bh=QS+b8XfsZhtIuQnMSrd7JimzHEfLOdrXx4g8jyKC5KY=;
b=YAofEh/EyJBUFGBZGcEGChF4ZadoawM0tp+4HrCWK3Ul1O5GfN/Y0n03yL8XYpX4Oh
+EUBxSMKI/xA6zJWZW130NLWWtF7ZDWVKVvGXTleZuJH1DIwxElvKpyhiIuutNmtlBAS
CTTUksquRwss8G+AooIDAy/222aOW6jv0LBT6pJF8q35w1NmhO2wiXV8ucM+IT6bz32M
SaU4oyyP8zhMukEKHg1OVutvYhcmLODn51x68MMWvfwSPELRQXk0cZulULh+LRx49J7H
540vontDiiS9MDGKcZgIz4upeeJAOsuD3JwbrXwo/xP3mAms95El2BTX578hDsfoL1MB
UpEQ==
X-Gm-Message-State: AFeK/H3WLDCZIWvC5B9sUPSB+qCV5PdkAz0KAVePIsLryomCwnCYfEo4xMoj1/xxvksw8Av0W2TGFkwxdcZhCA==
X-Received: by 10.223.155.193 with SMTP id e1mr35342223wrc.86.1490171304474;
Wed, 22 Mar 2017 01:28:24 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.223.134.114 with HTTP; Wed, 22 Mar 2017 01:28:23 -0700 (PDT)
From: =?UTF-8?Q?Bj=C3=B8rn?= Forsman <bjorn.forsman@HIDDEN>
Date: Wed, 22 Mar 2017 09:28:23 +0100
Message-ID: <CAEYzJUG7Q19=WAS8JeYLGWNZ7k4O9gZa+9zw=Swhrk7-RNwzVQ@HIDDEN>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)
Hi parted developers,
After having written an ISO image to my USB disk, parted gets really
confused. The USB disk is 64 GB, but parted thinks it's 257 GB! And
worse, when I try to reset the disk with "mklabel gpt" it throws
errors.
This issue is very much related to
http://lists.gnu.org/archive/html/bug-parted/2016-12/msg00016.html.
You can find the log of my parted session below my signature.
--=20
Best regards,
Bj=C3=B8rn Forsman
$ sudo dd if=3Dubuntu.iso of=3D/dev/sdb bs=3D1M
$ sudo parted /dev/sdb
GNU Parted 3.2
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
Warning: The driver descriptor says the physical block size is 2048
bytes, but Linux says it is 512 bytes.
Ignore/Cancel? I
Model: Samsung Flash Drive (scsi)
Disk /dev/sdb: 257GB
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
(parted) mklabel gpt
Warning: The existing disk label on /dev/sdb will be destroyed and all
data on this disk will be lost. Do you want to continue?
Yes/No? y
Error: Invalid argument during seek for write on /dev/sdb
Retry/Ignore/Cancel? I
Error: Invalid argument during seek for write on /dev/sdb
Retry/Ignore/Cancel? ^C
(parted) q
$ sudo parted /dev/sdb
GNU Parted 3.2
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
Error: /dev/sdb: unrecognised disk label
Model: Samsung Flash Drive (scsi)
Disk /dev/sdb: 64.2GB
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags:
(parted)
So in the end it seemed like parted managed to reset the drive, but
why make it so difficult?
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: =?UTF-8?Q?Bj=C3=B8rn?= Forsman <bjorn.forsman@HIDDEN> Subject: bug#26214: Acknowledgement (parted miscalculates size of USB disk that has been written a raw ISO image) Message-ID: <handler.26214.B.149017131725664.ack <at> debbugs.gnu.org> References: <CAEYzJUG7Q19=WAS8JeYLGWNZ7k4O9gZa+9zw=Swhrk7-RNwzVQ@HIDDEN> X-Gnu-PR-Message: ack 26214 X-Gnu-PR-Package: parted Reply-To: 26214 <at> debbugs.gnu.org Date: Wed, 22 Mar 2017 08:29:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-parted@HIDDEN If you wish to submit further information on this problem, please send it to 26214 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 26214: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D26214 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
Received: (at control) by debbugs.gnu.org; 19 Apr 2017 13:12:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 19 09:12:32 2017
Received: from localhost ([127.0.0.1]:55697 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1d0pPL-00060w-Rm
for submit <at> debbugs.gnu.org; Wed, 19 Apr 2017 09:12:32 -0400
Received: from mail-ua0-f195.google.com ([209.85.217.195]:33907)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <phillsusi@HIDDEN>) id 1d0pPJ-00060j-Ox
for control <at> debbugs.gnu.org; Wed, 19 Apr 2017 09:12:30 -0400
Received: by mail-ua0-f195.google.com with SMTP id 110so2148573uas.1
for <control <at> debbugs.gnu.org>; Wed, 19 Apr 2017 06:12:29 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=sender:to:from:message-id:date:user-agent:mime-version
:content-transfer-encoding;
bh=Gw6o9aJOpiulk4ozF8YC5jmuXeriPopS6U2BbxTpVUo=;
b=bcoNbUHoQ/zNLiObvKiAMe93wAFRKTD9dlxEEDJd1mfEw+c4pAyz9qgItItRZHN03S
vP5Dm86Z0xbv585hqIZ5tKDC5INdVkGy3+BSb3Xtp5HzXSfyaAxrhb64dvtltm1+wjt5
UVgo7Y4UxF+OgOvqtB5U89RXsAiKKJu7MqAlGyo1UM3YgZU9E+r6syeq4S+1hpSctpN1
eFmQo8BnwniOpoAwVKrDyRQpa6r676XvlXn74YkMW2T3APsZ7swuPuY7on5Vvnn8WPi3
ZKk6RXmGXtELRzw0+Ty+PUWl+NRkDS2jqaPwt4tDgHzU+ZDm+GKWb1HwJED5HmiZj15o
SAvQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:sender:to:from:message-id:date:user-agent
:mime-version:content-transfer-encoding;
bh=Gw6o9aJOpiulk4ozF8YC5jmuXeriPopS6U2BbxTpVUo=;
b=HiIyIUDZvItnHJXOxYYvYNFlJT1rkETQlOl+IbvdT/K7ZnpDILFca2aG8ktTbW69RJ
rI7N2NMRPKcwk5nnq2ZuGEOiAqGZ4TOwVsRyawXKDvziVu8krvlxMEt1KC1FQ3ilfSP2
MeJxZJLSVNnwp7gyEl1052wFWmLRqNNN211+RFYLmGHGdwCmXXXqA0IkDWtNhe5TR2kV
wMd+qX+w/TrMjh+iniQvBZ+4Qrz0YZcDEekgQSzArC5ZSj2+JWUKD9yq0ueIvQLKAyzr
vTvo9pnSLgjvE4ce1bp8TRWxN+zcbC63oSTj+F7b1R8tY99jKWQTGncLSTfe0MrGE3qo
4u9Q==
X-Gm-Message-State: AN3rC/7RlG6nj0hNYuzr4YBHz5gN7nuLYAZVTGuszjbP94lOb7aQy+75
QxoH4VL81Czv+79cadE=
X-Received: by 10.176.2.80 with SMTP id 74mr1314227uas.23.1492607544137;
Wed, 19 Apr 2017 06:12:24 -0700 (PDT)
Received: from [10.1.1.184] (fl-67-77-88-12.sta.embarqhsd.net. [67.77.88.12])
by smtp.googlemail.com with ESMTPSA id
q42sm611210uaf.6.2017.04.19.06.12.22 for <control <at> debbugs.gnu.org>
(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Wed, 19 Apr 2017 06:12:23 -0700 (PDT)
To: control <at> debbugs.gnu.org
From: Phil Susi <psusi@HIDDEN>
Message-ID: <4133cbbc-913e-51ac-148e-0753baec9a25@HIDDEN>
Date: Wed, 19 Apr 2017 09:14:04 -0400
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Spam-Score: 2.7 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
has NOT identified this incoming email as spam. The original
message has been attached to this so you can view it or label
similar future email. If you have any questions, see
the administrator of that system for details.
Content preview: merge 26214 25233 [...]
Content analysis details: (2.7 points, 10.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
0.0 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail
domains are different
0.5 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source
[209.85.217.195 listed in dnsbl.sorbs.net]
-0.0 SPF_PASS SPF: sender matches SPF record
0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider
(phillsusi[at]gmail.com)
-0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3)
[209.85.217.195 listed in wl.mailspike.net]
-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no
trust [209.85.217.195 listed in list.dnswl.org]
-0.0 RCVD_IN_MSPIKE_WL Mailspike good senders
1.8 MISSING_SUBJECT Missing Subject: header
0.2 NO_SUBJECT Extra score for no subject
0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom
freemail headers are different
0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid
X-Debbugs-Envelope-To: control
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 2.7 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
has NOT identified this incoming email as spam. The original
message has been attached to this so you can view it or label
similar future email. If you have any questions, see
the administrator of that system for details.
Content preview: merge 26214 25233 [...]
Content analysis details: (2.7 points, 10.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
0.5 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source
[209.85.217.195 listed in dnsbl.sorbs.net]
-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no
trust
[209.85.217.195 listed in list.dnswl.org]
-0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3)
[209.85.217.195 listed in wl.mailspike.net]
0.0 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail
domains are different
-0.0 SPF_PASS SPF: sender matches SPF record
0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider
(phillsusi[at]gmail.com)
-0.0 RCVD_IN_MSPIKE_WL Mailspike good senders
1.8 MISSING_SUBJECT Missing Subject: header
0.2 NO_SUBJECT Extra score for no subject
0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom
freemail headers are different
0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid
merge 26214 25233
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.