Phil Susi <psusi@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at submit) by debbugs.gnu.org; 22 Mar 2017 08:28:37 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Mar 22 04:28:37 2017 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> Subject: parted miscalculates size of USB disk that has been written a raw ISO image To: bug-parted@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-Debbugs-Envelope-To: submit 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?
Bjørn Forsman <bjorn.forsman@HIDDEN>
:bug-parted@HIDDEN
.
Full text available.bug-parted@HIDDEN
:bug#26214
; Package parted
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.