Gentoo Archives: gentoo-user

From: Pavel Volkov <negaipub@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] fdisk: DOS/GPT
Date: Wed, 24 Jul 2013 11:25:48
Message-Id: CAGBogHyXQ4b80KSVX1h2aq++fqy1jpNDKRptvY+mLH89y+=q1Q@mail.gmail.com
1 Noticed something strange about fdisk output.
2
3 EXAMPLE 1.
4 We see nothing out of place here. It displays a warning.
5
6 [rondo:rondo]$ sudo fdisk -l /dev/sda
7 Password:
8 WARNING: fdisk GPT support is currently new, and therefore in an
9 experimental phase. Use at your own discretion.
10
11 Disk /dev/sda: 64.0 GB, 64023257088 bytes, 125045424 sectors
12 Units = sectors of 1 * 512 = 512 bytes
13 Sector size (logical/physical): 512 bytes / 512 bytes
14 I/O size (minimum/optimal): 512 bytes / 512 bytes
15 Disk label type: gpt
16
17
18 # Start End Size Type Name
19 1 2048 69631 33M EFI System
20 2 69632 415743 169M Microsoft basic
21 3 415744 31873023 15G Microsoft basic
22 4 31873024 125042687 44,4G Microsoft basic
23
24 EXAMPLE 2.
25 It says disk label is 'dos', not 'gpt' anymore. What is the GPT "system" of
26 sdb1 then? And there's no warning now.
27
28 [rondo:rondo]$ sudo fdisk -l /dev/sdb
29
30 Disk /dev/sdb: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
31 Units = sectors of 1 * 512 = 512 bytes
32 Sector size (logical/physical): 512 bytes / 4096 bytes
33 I/O size (minimum/optimal): 4096 bytes / 4096 bytes
34 Disk label type: dos
35 Disk identifier: 0x00000000
36
37 Device Boot Start End Blocks Id System
38 /dev/sdb1 1 4294967295 2147483647+ ee GPT
39 Partition 1 does not start on physical sector boundary.
40
41 EXAMPLE 3.
42 I use parted now instead of fdisk. It says both sda and sdb have GPT labels.
43
44 Model: ATA M4-CT064M4SSD2 (scsi)
45 Disk /dev/sda: 64,0GB
46 Sector size (logical/physical): 512B/512B
47 Partition Table: gpt
48 Disk Flags:
49
50 Number Start End Size File system Name Flags
51 1 1049kB 35,7MB 34,6MB fat32 boot
52 2 35,7MB 213MB 177MB ext4
53 3 213MB 16,3GB 16,1GB ext4
54 4 16,3GB 64,0GB 47,7GB
55
56
57 Model: ATA ST3000VX000-9YW1 (scsi)
58 Disk /dev/sdb: 3001GB
59 Sector size (logical/physical): 512B/4096B
60 Partition Table: gpt
61 Disk Flags:
62
63 Number Start End Size File system Name Flags
64 1 1049kB 3001GB 3001GB lvm
65
66
67 BOTTOM LINE.
68
69 Is fdisk lying to me?

Replies

Subject Author
Re: [gentoo-user] fdisk: DOS/GPT Kerin Millar <kerframil@×××××××××××.uk>