public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: John Runyon <me@jfr.im>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] System only recognizes 1 of 2 partitions
Date: Wed, 9 Dec 2015 03:19:45 -0600	[thread overview]
Message-ID: <20151209091945.GA20368@precision> (raw)

I recently received and installed a 3TB drive. Before formatting it, I
zeroed the first GiB (dd if=/dev/zero of=/dev/sdb bs=1M count=1024).
Then formatted with gdisk.

Both gdisk and parted report the partition table correctly as containing a
~1MB (empty) sdb1 and ~2.7TB sdb2 (with a protective MBR). However, on boot,
only one partition is recognized: the 1MB sdb1. And yet after running
partprobe, sdb2 will magically appear.

I've managed to work around this for now with a /etc/local.d/ file that
just does "partprobe; mount /home" but I'd like to figure out the underlying
cause... Has anyone ever run into this before?

# grep sdb /var/log/messages
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)
Dec  9 01:38:49 precision kernel: [    1.228246] sd 1:0:0:0: [sdb] 4096-byte physical blocks
Dec  9 01:38:49 precision kernel: [    1.230017] sd 1:0:0:0: [sdb] Write Protect is off
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
Dec  9 01:38:49 precision kernel: [    1.245054]  sdb: sdb1
Dec  9 01:38:49 precision kernel: [    1.247172] sd 1:0:0:0: [sdb] Attached SCSI disk
Dec  9 01:38:57 precision kernel: [   23.777108]  sdb: sdb1
Dec  9 01:38:58 precision kernel: [   25.120921] EXT4-fs (sdb2): mounted filesystem with ordered data mode. Opts: (null)

# gdisk -l /dev/sdb
GPT fdisk (gdisk) version 1.0.1

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

Found valid GPT with protective MBR; using GPT.
Disk /dev/sdb: 5860533168 sectors, 2.7 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): 0A8A7DB1-45D0-44DD-AACB-1A4957077401
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 5860533134
Partitions will be aligned on 2048-sector boundaries
Total free space is 2014 sectors (1007.0 KiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048            4095   1024.0 KiB  8300  Linux filesystem
   2            4096      5860533134   2.7 TiB     8300  Linux filesystem

# parted -l
[...]
Model: ATA ST3000DM001-1ER1 (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  2097kB  1049kB               Linux filesystem
 2      2097kB  3001GB  3001GB  ext4         Linux filesystem
[...]


             reply	other threads:[~2015-12-09  9:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-09  9:19 John Runyon [this message]
2015-12-09 12:58 ` [gentoo-user] System only recognizes 1 of 2 partitions J. Roeleveld
  -- strict thread matches above, loose matches on Subject: below --
2015-12-09 13:13 John Runyon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20151209091945.GA20368@precision \
    --to=me@jfr.im \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox