From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 3CBEA1381F3 for ; Wed, 24 Jul 2013 11:25:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 089C8E0A61; Wed, 24 Jul 2013 11:25:43 +0000 (UTC) Received: from mail-oa0-f41.google.com (mail-oa0-f41.google.com [209.85.219.41]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F3270E09BE for ; Wed, 24 Jul 2013 11:25:41 +0000 (UTC) Received: by mail-oa0-f41.google.com with SMTP id n10so644391oag.0 for ; Wed, 24 Jul 2013 04:25:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=qKX+gEITnb84Rp8dIVO5V+WR9T7mfRHeV7OneCUx7iU=; b=Z/vsWaJij9n6wsNag3qOXK5XjfxwcLNg98mJVeD6DAekiPLvH0qopMsMTjhUssWa67 OjnJA3GAkdq/khWXaY2K5mFQPjl4Hpn9+VoVDq303foxK6RWClBQGRAOXYjXiKNy3MEP 2uo2xaOYxhRoY5rw4QJQx4lwLlqmwam5FeafMJi1snzTJ6LPPKAnOHEkISjZCNlkZcqx C++fHCrKV0s4zg2gI8EDa2NDwxuRiRZ7tFtIoOteWbSPKaYurER24LSSqywQEjElar2u 08DEGRl6/ZLyiBJp0/kPh3rIBkpok8CJKLw06b8IURwVAqb8a9l0mcdosi5ikg9bwRq1 T8Qw== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 X-Received: by 10.60.161.136 with SMTP id xs8mr35778198oeb.77.1374665140945; Wed, 24 Jul 2013 04:25:40 -0700 (PDT) Received: by 10.76.21.69 with HTTP; Wed, 24 Jul 2013 04:25:40 -0700 (PDT) Date: Wed, 24 Jul 2013 15:25:40 +0400 Message-ID: Subject: [gentoo-user] fdisk: DOS/GPT From: Pavel Volkov To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary=089e01183a1869507e04e2402bc0 X-Archives-Salt: 79db8cad-7dd5-44ca-93b6-af0274eb606f X-Archives-Hash: afb234551bba6192c38aac7549d29394 --089e01183a1869507e04e2402bc0 Content-Type: text/plain; charset=ISO-8859-1 Noticed something strange about fdisk output. EXAMPLE 1. We see nothing out of place here. It displays a warning. [rondo:rondo]$ sudo fdisk -l /dev/sda Password: WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion. Disk /dev/sda: 64.0 GB, 64023257088 bytes, 125045424 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 Disk label type: gpt # Start End Size Type Name 1 2048 69631 33M EFI System 2 69632 415743 169M Microsoft basic 3 415744 31873023 15G Microsoft basic 4 31873024 125042687 44,4G Microsoft basic EXAMPLE 2. It says disk label is 'dos', not 'gpt' anymore. What is the GPT "system" of sdb1 then? And there's no warning now. [rondo:rondo]$ sudo fdisk -l /dev/sdb Disk /dev/sdb: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk label type: dos Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sdb1 1 4294967295 2147483647+ ee GPT Partition 1 does not start on physical sector boundary. EXAMPLE 3. I use parted now instead of fdisk. It says both sda and sdb have GPT labels. Model: ATA M4-CT064M4SSD2 (scsi) Disk /dev/sda: 64,0GB Sector size (logical/physical): 512B/512B Partition Table: gpt Disk Flags: Number Start End Size File system Name Flags 1 1049kB 35,7MB 34,6MB fat32 boot 2 35,7MB 213MB 177MB ext4 3 213MB 16,3GB 16,1GB ext4 4 16,3GB 64,0GB 47,7GB Model: ATA ST3000VX000-9YW1 (scsi) Disk /dev/sdb: 3001GB Sector size (logical/physical): 512B/4096B Partition Table: gpt Disk Flags: Number Start End Size File system Name Flags 1 1049kB 3001GB 3001GB lvm BOTTOM LINE. Is fdisk lying to me? --089e01183a1869507e04e2402bc0 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Noticed something strange about fdisk output.

EXAMPLE 1.
We see nothing out of place here. It displays a= warning.

[rondo:rondo]$ sudo fdisk -l /dev/s= da
Password:
WARNING: fdisk GPT support is currently new, and t= herefore in an experimental phase. Use at your own discretion.
Disk /dev/sda: 64.0 GB, 64023257088 bytes, 125045424 sectors
Units =3D sectors of 1 * 512 =3D 512 bytes
Sector size (logi= cal/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): = 512 bytes / 512 bytes
Disk label type: gpt


# =A0 =A0 =A0 =A0 Start =A0 =A0 =A0 =A0 =A0End =A0 =A0Size = =A0Type =A0 =A0 =A0 =A0 =A0 =A0Name
=A01 =A0 =A0 =A0 =A0 2048 =A0= =A0 =A0 =A069631 =A0 =A0 33M =A0EFI System
=A02 =A0 =A0 =A0 =A06= 9632 =A0 =A0 =A0 415743 =A0 =A0169M =A0Microsoft basic
=A03 =A0 = =A0 =A0 415744 =A0 =A0 31873023 =A0 =A0 15G =A0Microsoft basic
=A04 =A0 =A0 31873024 =A0 =A0125042687 =A0 44,4G =A0Microsoft basic

EXAMPLE 2.
It says disk label is = 9;dos', not 'gpt' anymore. What is the GPT "system" o= f sdb1 then? And there's no warning now.

[rondo:rondo]$ sudo fdisk -l /dev/sdb
Disk /dev/sdb: 3000.6 GB, 3000592982016 bytes, 5860533168 sect= ors
Units =3D sectors of 1 * 512 =3D 512 bytes
Sector s= ize (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk lab= el type: dos
Disk identifier: 0x00000000

=A0 =A0Device Boot =A0 =A0 =A0Start =A0 =A0 =A0 =A0 End =A0 =A0 =A0Blocks = =A0 Id =A0System
/dev/sdb1 =A0 =A0 =A0 =A0 =A0 =A0 =A0 1 =A04294967295 =A02147483647+ =A0ee = =A0GPT
Partition 1 does not start on physical sector boundary.

EXAMPLE 3.
I use parted now instead = of fdisk. It says both sda and sdb have GPT labels.

Model: ATA M4-CT064M4SSD2 (scsi)
Disk /d= ev/sda: 64,0GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Numbe= r =A0Start =A0 End =A0 =A0 Size =A0 =A0File system =A0Name =A0Flags
=A01 =A0 =A0 =A01049kB =A035,7MB =A034,6MB =A0fat32 =A0 =A0 =A0 =A0 = =A0 =A0 =A0boot
=A02 =A0 =A0 =A035,7MB =A0213MB =A0 177MB =A0 ext= 4
=A03 =A0 =A0 =A0213MB =A0 16,3GB =A016,1GB =A0ext4
= =A04 =A0 =A0 =A016,3GB =A064,0GB =A047,7GB


Model: ATA ST3000VX000-9YW1 (scsi)
Disk /dev/sdb: = 3001GB
Sector size (logical/physical): 512B/4096B
Parti= tion Table: gpt
Disk Flags:

Number =A0St= art =A0 End =A0 =A0 Size =A0 =A0File system =A0Name =A0Flags
=A01 =A0 =A0 =A01049kB =A03001GB =A03001GB =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 lvm


BOTTOM LINE.=

Is fdisk lying to me?
--089e01183a1869507e04e2402bc0--