GNU bug report logs - #18660
Partprobe and advanced format disks

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: parted; Reported by: Nuzhna Pomoshch <nuzhna_pomoshch@HIDDEN>; dated Wed, 8 Oct 2014 00:43:01 UTC; Maintainer for parted is bug-parted@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 8 Oct 2014 18:25:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 08 14:25:46 2014
Received: from localhost ([127.0.0.1]:38232 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Xbvvl-0007k2-IL
	for submit <at> debbugs.gnu.org; Wed, 08 Oct 2014 14:25:45 -0400
Received: from eggs.gnu.org ([208.118.235.92]:33943)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <bcl@HIDDEN>) id 1Xbvvj-0007jt-JZ
 for submit <at> debbugs.gnu.org; Wed, 08 Oct 2014 14:25:44 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <bcl@HIDDEN>) id 1Xbvva-0002qB-CZ
 for submit <at> debbugs.gnu.org; Wed, 08 Oct 2014 14:25:43 -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 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:32807)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <bcl@HIDDEN>) id 1Xbvva-0002q7-A2
 for submit <at> debbugs.gnu.org; Wed, 08 Oct 2014 14:25:34 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:35623)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <bcl@HIDDEN>) id 1XbvvU-0005Pv-4G
 for bug-parted@HIDDEN; Wed, 08 Oct 2014 14:25:34 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <bcl@HIDDEN>) id 1XbvvN-0002oC-Lk
 for bug-parted@HIDDEN; Wed, 08 Oct 2014 14:25:28 -0400
Received: from mx1.redhat.com ([209.132.183.28]:7262)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <bcl@HIDDEN>) id 1XbvvN-0002ny-ER
 for bug-parted@HIDDEN; Wed, 08 Oct 2014 14:25:21 -0400
Received: from int-mx14.intmail.prod.int.phx2.redhat.com
 (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27])
 by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s98IPKMa030007
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL)
 for <bug-parted@HIDDEN>; Wed, 8 Oct 2014 14:25:20 -0400
Received: from lister.brianlane.com (ovpn-113-61.phx2.redhat.com [10.3.113.61])
 by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id
 s98IPIta023201
 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NO)
 for <bug-parted@HIDDEN>; Wed, 8 Oct 2014 14:25:20 -0400
Date: Wed, 8 Oct 2014 11:25:18 -0700
From: "Brian C. Lane" <bcl@HIDDEN>
To: bug-parted@HIDDEN
Subject: Re: bug#18660: Partprobe and advanced format disks
Message-ID: <20141008182518.GP2469@HIDDEN>
References: <1412658405.35592.YahooMailBasic@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <1412658405.35592.YahooMailBasic@HIDDEN>
User-Agent: Mutt/1.5.23 (2014-03-12)
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://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: <http://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: -5.0 (-----)

On Mon, Oct 06, 2014 at 10:06:45PM -0700, Nuzhna Pomoshch wrote:
> Partprobe is a fantastically useful too. It is absolutely
> vital to access new partitions without rebooting, as
> well as easily get to partitions on a mapped device.
> 
> However, I am having a large problem with it now
> on a 4096 byte sector hard drive.

You left out the most important tool :) What does the output from:

parted -s /dev/mapper/disk u s p

show?


-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)




Information forwarded to bug-parted@HIDDEN:
bug#18660; Package parted. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 8 Oct 2014 00:42:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 07 20:42:34 2014
Received: from localhost ([127.0.0.1]:37069 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1XbfKs-0001VY-2i
	for submit <at> debbugs.gnu.org; Tue, 07 Oct 2014 20:42:34 -0400
Received: from eggs.gnu.org ([208.118.235.92]:55780)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <nuzhna_pomoshch@HIDDEN>) id 1XbfKn-0001VM-M3
 for submit <at> debbugs.gnu.org; Tue, 07 Oct 2014 20:42:30 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <nuzhna_pomoshch@HIDDEN>) id 1XbfKc-0006Go-Dn
 for submit <at> debbugs.gnu.org; Tue, 07 Oct 2014 20:42:28 -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]:49304)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <nuzhna_pomoshch@HIDDEN>) id 1XbfKc-0006Gk-9y
 for submit <at> debbugs.gnu.org; Tue, 07 Oct 2014 20:42:18 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:57369)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <nuzhna_pomoshch@HIDDEN>) id 1XbfKT-0007mf-6j
 for bug-parted@HIDDEN; Tue, 07 Oct 2014 20:42:18 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <nuzhna_pomoshch@HIDDEN>) id 1XbfKJ-0006ET-Um
 for bug-parted@HIDDEN; Tue, 07 Oct 2014 20:42:09 -0400
Received: from nm49-vm2.bullet.mail.gq1.yahoo.com ([67.195.87.232]:35105)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <nuzhna_pomoshch@HIDDEN>) id 1XbfKJ-0006EO-L5
 for bug-parted@HIDDEN; Tue, 07 Oct 2014 20:41:59 -0400
Received: from [127.0.0.1] by nm49.bullet.mail.gq1.yahoo.com with NNFMP;
 08 Oct 2014 00:41:58 -0000
Received: from [98.137.12.189] by nm49.bullet.mail.gq1.yahoo.com with NNFMP;
 07 Oct 2014 05:06:46 -0000
Received: from [98.139.215.141] by tm10.bullet.mail.gq1.yahoo.com with NNFMP;
 07 Oct 2014 05:06:45 -0000
Received: from [98.139.212.240] by tm12.bullet.mail.bf1.yahoo.com with NNFMP;
 07 Oct 2014 05:06:45 -0000
Received: from [127.0.0.1] by omp1049.mail.bf1.yahoo.com with NNFMP;
 07 Oct 2014 05:06:45 -0000
X-Yahoo-Newman-Property: ymail-4
X-Yahoo-Newman-Id: 680149.33378.bm@HIDDEN
Received: (qmail 56188 invoked by uid 60001); 7 Oct 2014 05:06:45 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024;
 t=1412658405; bh=daPlLJgPKjE1RdprOO+u470HnjvFbcVyeaA+jN7WsXY=;
 h=Message-ID:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding;
 b=OCS62CSw21y4OTqZ9ZY5SHXuoLXHTXKxxgRgSPvwaBfnlKEXKJLwTDx4HWR6EGDSP8i78ez97jX24wyfZVdWIUAhPsDoiD1DhT66xuE/C8O2hFAMIJMJ5tD56mokuVgJ3vPQ+sj1YlkTNVQxvHrAnAdY+VGWghjZ3aOvnzKZVho=
X-YMail-OSG: QObM4usVM1keeNvUi9Qv3kTnHkvK2Ow7LPqXM1KLKkDFjQ.
 e1M0I0Ul5fMX8jUwvMYu1jLDWFi2qpJPSyRd_qnQrIqkvSJk1n4PiZA0IqBh
 AcxdZPF98gFx0qsoc4rNmUs2gfvPv7.eQxAktFr_BKicfuV6yYVNkhZ.BG9r
 p_uE1xgxVvsGclMp97c.FY.TbYk4N2KKP.Lu.BrkW8WDmusFcn6cwxI_pzKa
 oO3pSSG_0HcNE9nA.LnmqoW0DFMSBumcPx7WTjGgE5qKpsjroBCtCx8EB6OB
 xLPS4892WWaYLT3fCXwCtkgxFKOJmBH2y2w51th5qbXQCSR.4NMqdtEx73a2
 PTRrov76bGB7aIwRTe7i0znD79Hmwf8JcQgjCdLrUOjcIUXi57Cb2OikCsET
 uT1NeHqBfq50RFRsUEaLfpShwJhgd5IqS4iudDFPNNddGg8MZHkMQuZ77IqS
 mn7UMOjeXYcacxtZmLSbXnxbOQ55cgEYynOavqPu5fwEKNajphxnkIdTKebT
 v6h2FADD_TYzMQqLiJFaih3U.hh_rjSaJ_xDDS15ATRZpZ3aUKmv.k6MYnMJ
 rnRDdXZfs7b.nfD9p
Received: from [122.60.72.200] by web161306.mail.bf1.yahoo.com via HTTP;
 Mon, 06 Oct 2014 22:06:45 PDT
X-Rocket-MIMEInfo: 002.001,
 UGFydHByb2JlIGlzIGEgZmFudGFzdGljYWxseSB1c2VmdWwgdG9vLiBJdCBpcyBhYnNvbHV0ZWx5DQp2aXRhbCB0byBhY2Nlc3MgbmV3IHBhcnRpdGlvbnMgd2l0aG91dCByZWJvb3RpbmcsIGFzDQp3ZWxsIGFzIGVhc2lseSBnZXQgdG8gcGFydGl0aW9ucyBvbiBhIG1hcHBlZCBkZXZpY2UuDQoNCkhvd2V2ZXIsIEkgYW0gaGF2aW5nIGEgbGFyZ2UgcHJvYmxlbSB3aXRoIGl0IG5vdw0Kb24gYSA0MDk2IGJ5dGUgc2VjdG9yIGhhcmQgZHJpdmUuDQoNCkFsbCBvZiB0aGUgZmlsZXN5c3RlbSB0b29scyB3b3JrIGYBMAEBAQE-
X-Mailer: YahooMailClassic/799 YahooMailWebService/0.8.203.696
Message-ID: <1412658405.35592.YahooMailBasic@HIDDEN>
Date: Mon, 6 Oct 2014 22:06:45 -0700
From: Nuzhna Pomoshch <nuzhna_pomoshch@HIDDEN>
Subject: Partprobe and advanced format disks
To: bug-parted@HIDDEN
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.3 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://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: <http://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.3 (----)

Partprobe is a fantastically useful too. It is absolutely
vital to access new partitions without rebooting, as
well as easily get to partitions on a mapped device.

However, I am having a large problem with it now
on a 4096 byte sector hard drive.

All of the filesystem tools work fine on the raw
device. However, since I want encryption (AND
separate partitions), I did:

# cryptsetup -v luksFormat /dev/sdx

WARNING!
=3D=3D=3D=3D=3D=3D=3D=3D
This will overwrite data on /dev/sdd irrevocably.

Are you sure? (Type uppercase yes): YES
Enter passphrase:=20
Verify passphrase:=20
Command successful.

# cryptsetup open /dev/sdx disk
Enter passphrase for /dev/sdx:

# ls -al /dev/mapper/
total 0
drwxr-xr-x  2 root root     120 2014-10-07 03:35:21 ./
drwxr-xr-x 17 root root    5480 2014-10-07 03:35:21 ../
crw-------  1 root root 10, 236 2014-07-28 15:33:13 control
lrwxrwxrwx  1 root root       7 2014-10-07 03:35:21 disk -> ../dm-0

# gdisk /dev/mapper/disk
GPT fdisk (gdisk) version 0.8.10

Partition table scan:
  MBR: not present
  BSD: not present
  APM: not present
  GPT: not present

Creating new GPT entries.

Command (? for help): n
Partition number (1-128, default 1): 1
First sector (6-732566127, default =3D 256) or {+-}size{KMGTP}:=20
Last sector (256-732566127, default =3D 732566127) or {+-}size{KMGTP}: +8G
Current type is 'Linux filesystem'
Hex code or GUID (L to show codes, Enter =3D 8300):=20
Changed type of partition to 'Linux filesystem'

Command (? for help): w

Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTIN=
G
PARTITIONS!!

Do you want to proceed? (Y/N): y
OK; writing new GUID partition table (GPT) to /dev/mapper/disk.
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot.
The operation has completed successfully.

# gdisk -l /dev/mapper/disk
GPT fdisk (gdisk) version 0.8.10

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/mapper/disk: 732566133 sectors, 2.7 TiB
Logical sector size: 4096 bytes
Disk identifier (GUID): AF876611-E58D-481A-8836-3FF2CBF581D3
Partition table holds up to 128 entries
First usable sector is 6, last usable sector is 732566127
Partitions will be aligned on 256-sector boundaries
Total free space is 730468970 sectors (2.7 TiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1             256         2097407   8.0 GiB     8300  Linux filesystem


# /usr/sbin/partprobe

# ls -al /dev/mapper/
total 0
drwxr-xr-x  2 root root      140 2014-10-07 04:39:33 ./
drwxr-xr-x 17 root root     5500 2014-10-07 04:39:33 ../
crw-------  1 root root  10, 236 2014-07-28 15:33:13 control
lrwxrwxrwx  1 root root        7 2014-10-07 04:39:33 disk -> ../dm-0
brw-------  1 root root 253,   3 2014-10-07 04:39:33 disk1

# mke2fs -b 4096 -L disk -m 0 -v /dev/mapper/disk1
mke2fs 1.42.10 (18-May-2014)
fs_types for mke2fs.conf resolution: 'ext2'
Filesystem label=3Ddisk
OS type: Linux
Block size=3D4096 (log=3D2)
Fragment size=3D4096 (log=3D2)
Stride=3D0 blocks, Stripe width=3D0 blocks
65536 inodes, 262144 blocks
0 blocks (0.00%) reserved for the super user
First data block=3D0
Maximum filesystem blocks=3D268435456
8 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Filesystem UUID: 678b1ec9-9442-4af2-936b-e353a886b227
Superblock backups stored on blocks:=20
        32768, 98304, 163840, 229376

Allocating group tables: done                           =20
Writing inode tables: done                           =20
Writing superblocks and filesystem accounting information: done

# mount /dev/mapper/disk1 /mnt/disk/

# df
[...]
/dev/mapper/disk1    1032088      1284   1030804   1% /mnt/disk

# dd bs=3D1048576 if=3D/dev/zero of=3D/mnt/disk/file
dd: error writing =E2=80=98/mnt/disk/file=E2=80=99: No space left on device
1006+0 records in
1005+0 records out
1054507008 bytes (1.1 GB) copied, 24.6156 s, 42.8 MB/s

# df
[...]
/dev/mapper/disk1  1032088   1032088         0 100% /mnt/disk

I could show the results of more tools, but you get the idea -
there is only 1 GB of the 8 GB partition available. I suspect
(but don't know for certain) that partprobe is not passing
the correct parameters to the device mapper.

Thanks in advance for your help.

Nuzhna




Acknowledgement sent to Nuzhna Pomoshch <nuzhna_pomoshch@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-parted@HIDDEN. Full text available.
Report forwarded to bug-parted@HIDDEN:
bug#18660; Package parted. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

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