Gentoo Archives: gentoo-user

From: John Runyon <me@×××.im>
To: gentoo-user@l.g.o
Subject: [gentoo-user] System only recognizes 1 of 2 partitions
Date: Wed, 09 Dec 2015 09:22:24
Message-Id: 20151209091945.GA20368@precision
1 I recently received and installed a 3TB drive. Before formatting it, I
2 zeroed the first GiB (dd if=/dev/zero of=/dev/sdb bs=1M count=1024).
3 Then formatted with gdisk.
4
5 Both gdisk and parted report the partition table correctly as containing a
6 ~1MB (empty) sdb1 and ~2.7TB sdb2 (with a protective MBR). However, on boot,
7 only one partition is recognized: the 1MB sdb1. And yet after running
8 partprobe, sdb2 will magically appear.
9
10 I've managed to work around this for now with a /etc/local.d/ file that
11 just does "partprobe; mount /home" but I'd like to figure out the underlying
12 cause... Has anyone ever run into this before?
13
14 # grep sdb /var/log/messages
15 Dec 9 01:38:49 precision kernel: [ 1.224703] sd 1:0:0:0: [sdb] 5860533168 512-byte logical blocks: (3.00 TB/2.72 TiB)
16 Dec 9 01:38:49 precision kernel: [ 1.228246] sd 1:0:0:0: [sdb] 4096-byte physical blocks
17 Dec 9 01:38:49 precision kernel: [ 1.230017] sd 1:0:0:0: [sdb] Write Protect is off
18 Dec 9 01:38:49 precision kernel: [ 1.231765] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
19 Dec 9 01:38:49 precision kernel: [ 1.245054] sdb: sdb1
20 Dec 9 01:38:49 precision kernel: [ 1.247172] sd 1:0:0:0: [sdb] Attached SCSI disk
21 Dec 9 01:38:57 precision kernel: [ 23.777108] sdb: sdb1
22 Dec 9 01:38:58 precision kernel: [ 25.120921] EXT4-fs (sdb2): mounted filesystem with ordered data mode. Opts: (null)
23
24 # gdisk -l /dev/sdb
25 GPT fdisk (gdisk) version 1.0.1
26
27 Partition table scan:
28 MBR: protective
29 BSD: not present
30 APM: not present
31 GPT: present
32
33 Found valid GPT with protective MBR; using GPT.
34 Disk /dev/sdb: 5860533168 sectors, 2.7 TiB
35 Logical sector size: 512 bytes
36 Disk identifier (GUID): 0A8A7DB1-45D0-44DD-AACB-1A4957077401
37 Partition table holds up to 128 entries
38 First usable sector is 34, last usable sector is 5860533134
39 Partitions will be aligned on 2048-sector boundaries
40 Total free space is 2014 sectors (1007.0 KiB)
41
42 Number Start (sector) End (sector) Size Code Name
43 1 2048 4095 1024.0 KiB 8300 Linux filesystem
44 2 4096 5860533134 2.7 TiB 8300 Linux filesystem
45
46 # parted -l
47 [...]
48 Model: ATA ST3000DM001-1ER1 (scsi)
49 Disk /dev/sdb: 3001GB
50 Sector size (logical/physical): 512B/4096B
51 Partition Table: gpt
52 Disk Flags:
53
54 Number Start End Size File system Name Flags
55 1 1049kB 2097kB 1049kB Linux filesystem
56 2 2097kB 3001GB 3001GB ext4 Linux filesystem
57 [...]

Replies

Subject Author
Re: [gentoo-user] System only recognizes 1 of 2 partitions "J. Roeleveld" <joost@××××××××.org>