V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
zhuzhi90
V2EX  ›  Linux

Ubuntu 18.04.2 LTS 下无法发现新添加硬盘

  •  
  •   zhuzhi90 · 2019-03-18 16:24:59 +08:00 · 5332 次点击
    这是一个创建于 2081 天前的主题,其中的信息可能已经有所发展或是发生改变。

    各位高手, 我新买了一个英特尔的 nuc 和英特尔的 s3610 的 hp 的 OEM 盘(系统安装在 m2 接口的 970pro 上, s3610 为 sata 接口). 将 s3610 插入 2.5 寸硬盘位后进入系统不识别硬盘, 具体情况如下:

    输入 lshw 能找到该硬盘:

     *-scsi
          physical id: 1
          logical name: scsi2
          capabilities: emulated
        *-disk
             description: ATA Disk
             product: LK1600GEYMV
             physical id: 0.0.0
             bus info: scsi@2:0.0.0
             logical name: /dev/sda
             version: HPG2
             serial: BTHC73260CVW1P6PGN
             configuration: ansiversion=5 logicalsectorsize=512 sectorsize=4096
    

    而且 smartctl -a /dev/sda 可显示该硬盘 smart 信息.

    smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.15.0-46-generic] (local build) Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

    === START OF INFORMATION SECTION === Device Model: LK1600GEYMV Serial Number: 删除 LU WWN Device Id: 5 5cd2e4 14deb2074 Firmware Version: 4IWTHPG2 Rotation Rate: Solid State Device Form Factor: 2.5 inches Device is: Not in smartctl database [for details use: -P showall] ATA Version is: ACS-3, ATA8-ACS T13/1699-D revision 6 SATA Version is: SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s) Local Time is: Mon Mar 18 16:14:23 2019 CST SMART support is: Available - device has SMART capability. SMART support is: Enabled

    但是 lsblk, fdisk 均不显示该硬盘, 只会显示 nvme0, 但是运行 ls /dev/sd* 可以看到 /dev/sda.

    尝试对 /dev/sda 进行分区会显示:

    fdisk: cannot open /dev/sda: No such file or directory

    请教这种情况下该如何设置使得硬盘可以正常工作?

    PS: 2.5 寸硬盘位插一块日历的 500G 硬盘可以正常识别. S3610 插在外接供电的 sata 转 usb 口上也可以被同一个系统正常识别.

    11 条回复    2019-03-19 18:43:55 +08:00
    ooxxcc
        1
    ooxxcc  
       2019-03-18 16:31:03 +08:00
    贴 dmesg
    zhuzhi90
        2
    zhuzhi90  
    OP
       2019-03-18 16:31:30 +08:00
    dmesg 当中我找到的可能的信息:

    > [ 3.368038] ata3: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
    > [ 3.369365] ata3.00: ACPI cmd ef/10:06:00:00:00:00 (SET FEATURES) succeeded
    > [ 3.369367] ata3.00: ACPI cmd f5/00:00:00:00:00:00 (SECURITY FREEZE LOCK) filtered out
    > [ 3.369764] ata3.00: ACPI cmd b1/c1:00:00:00:00:00 (DEVICE CONFIGURATION OVERLAY) filtered out
    > [ 3.370737] ata3.00: ATA-10: LK1600GEYMV, 4IWTHPG2, max UDMA/100
    > [ 3.371134] ata3.00: 0 sectors, multi 1: LBA NCQ (depth 31/32), AA
    > [ 3.372701] ata3.00: ACPI cmd ef/10:06:00:00:00:00 (SET FEATURES) succeeded
    > [ 3.372702] ata3.00: ACPI cmd f5/00:00:00:00:00:00 (SECURITY FREEZE LOCK) filtered out
    > [ 3.373118] ata3.00: ACPI cmd b1/c1:00:00:00:00:00 (DEVICE CONFIGURATION OVERLAY) filtered out
    > [ 3.373964] ata3.00: configured for UDMA/100
    > [ 3.374574] scsi 2:0:0:0: Direct-Access ATA LK1600GEYMV HPG2 PQ: 0 ANSI: 5
    > [ 3.375377] sd 2:0:0:0: Attached scsi generic sg0 type 0
    > [ 3.375553] sd 2:0:0:0: [sda] 0 512-byte logical blocks: (0 B/0 B)
    > [ 3.375554] sd 2:0:0:0: [sda] 4096-byte physical blocks
    > [ 3.375622] sd 2:0:0:0: [sda] Write Protect is off
    > [ 3.375623] sd 2:0:0:0: [sda] Mode Sense: 00 3a 00 00
    > [ 3.375686] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
    > [ 3.376432] sd 2:0:0:0: [sda] Attached SCSI disk

    我对 linux 不是很在行, 第一次遇到这样的情况.
    zhuzhi90
        3
    zhuzhi90  
    OP
       2019-03-18 16:42:34 +08:00
    补充:

    我尝试对 /dev/sda 测速:

    $hdparm -t /dev/sda

    显示结果如下:

    /dev/sda:
    Timing buffered disk reads: read() hit EOF - device too small
    zhuzhi90
        4
    zhuzhi90  
    OP
       2019-03-18 16:46:17 +08:00
    运行 hdparm -I /dev/sda 结果如下:

    /dev/sda:

    ATA device, with non-removable media
    Model Number: LK1600GEYMV
    Serial Number: BTHC73260CVW1P6PGN
    Firmware Revision: 4IWTHPG2
    Transport: Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6, SATA Rev 3.0
    Standards:
    Used: unknown (minor revision code 0x0028)
    Supported: 10 9 8 7 6 5
    Likely used: 10
    Configuration:
    Logical max current
    cylinders 16383 0
    heads 16 0
    sectors/track 63 0
    --
    LBA user addressable sectors: 0
    LBA48 user addressable sectors: 0
    Logical Sector size: 512 bytes
    Physical Sector size: 4096 bytes
    Logical Sector-0 offset: 0 bytes
    device size with M = 1024*1024: 8063 MBytes
    device size with M = 1000*1000: 8455 MBytes (8 GB)
    cache/buffer size = unknown
    Form Factor: 2.5 inch
    Nominal Media Rotation Rate: Solid State Device
    Capabilities:
    LBA, IORDY(can be disabled)
    Queue depth: 32
    Standby timer values: spec'd by Standard, with device specific minimum
    R/W multiple sector transfer: Max = 1 Current = 1
    DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 *udma5
    Cycle time: min=120ns recommended=120ns
    PIO: pio0 pio1 pio2 pio3 pio4
    Cycle time: no flow control=120ns IORDY flow control=120ns
    Commands/features:
    Enabled Supported:
    * SMART feature set
    * Power Management feature set
    * Write cache
    * Look-ahead
    * WRITE_BUFFER command
    * READ_BUFFER command
    * NOP cmd
    * DOWNLOAD_MICROCODE
    * 48-bit Address feature set
    * Mandatory FLUSH_CACHE
    * FLUSH_CACHE_EXT
    * SMART error logging
    * SMART self-test
    * General Purpose Logging feature set
    * WRITE_{DMA|MULTIPLE}_FUA_EXT
    * 64-bit World wide name
    * IDLE_IMMEDIATE with UNLOAD
    * WRITE_UNCORRECTABLE_EXT command
    * {READ,WRITE}_DMA_EXT_GPL commands
    * Segmented DOWNLOAD_MICROCODE
    * unknown 119[6]
    * Gen1 signaling speed (1.5Gb/s)
    * Gen2 signaling speed (3.0Gb/s)
    * Gen3 signaling speed (6.0Gb/s)
    * Native Command Queueing (NCQ)
    * Phy event counters
    * READ_LOG_DMA_EXT equivalent to READ_LOG_EXT
    DMA Setup Auto-Activate optimization
    * Software settings preservation
    * SMART Command Transport (SCT) feature set
    * SCT Error Recovery Control (AC3)
    * SCT Features Control (AC4)
    * SCT Data Tables (AC5)
    * reserved 69[2]
    * reserved 69[4]
    * Data Set Management TRIM supported (limit 4 blocks)
    * Deterministic read ZEROs after TRIM
    Logical Unit WWN Device Identifier: 55cd2e414deb2074
    NAA : 5
    IEEE OUI : 5cd2e4
    Unique ID : 14deb2074
    Checksum: correct
    zhuzhi90
        5
    zhuzhi90  
    OP
       2019-03-18 16:49:29 +08:00
    运行 gdisk -l /dev/sda 结果如下:

    gdisk -l /dev/sda
    GPT fdisk (gdisk) version 1.0.3

    Problem reading disk in BasicMBRData::ReadMBRData()!
    Warning! Read error 22; strange behavior now likely!
    Warning! Read error 22; strange behavior now likely!
    Partition table scan:
    MBR: MBR only
    BSD: not present
    APM: not present
    GPT: not present


    ***************************************************************
    Found invalid GPT and valid MBR; converting MBR to GPT format
    in memory.
    ***************************************************************

    Disk /dev/sda: 0 sectors, 0 bytes
    Model: LK1600GEYMV
    Sector size (logical/physical): 512/4096 bytes
    Disk identifier (GUID): 658D893D-FE14-45CC-B824-5A5CA8E50300
    Partition table holds up to 128 entries
    Main partition table begins at sector 2 and ends at sector 33
    First usable sector is 34, last usable sector is 18446744073709551582
    Partitions will be aligned on 2048-sector boundaries
    Total free space is 0 sectors (0 bytes)

    Number Start (sector) End (sector) Size Code Name
    zhuzhi90
        6
    zhuzhi90  
    OP
       2019-03-18 17:07:20 +08:00
    @ooxxcc 请问这种情况有没有可能是供电不足引起的呀? s3610 供电是 5V 1.4A.
    ooxxcc
        7
    ooxxcc  
       2019-03-18 19:02:31 +08:00
    @zhuzhi90 有可能,反正 dmesg 提示是有设备,没媒介(类似有光驱没光盘)
    zhuzhi90
        8
    zhuzhi90  
    OP
       2019-03-18 20:21:37 +08:00
    我又去查了下资料:

    s3610 的 2.5-inch 1.6T 盘在仅有 5V 供电情况下的功耗(仅列出写, 读取模式功耗较低):

    Active Write - RMS Average: 6.8w
    Active Write - Burst: 10.7w
    Active Write - Max Burst: 12.2w

    尖峰概率约为 0.25%.

    nuc sata 供电口是 5 脚, 分别是 5v, 5v, 3.3v, 接地, 接地, 型号是 Molex* part number 53398-0571.
    去查了生产商的资料, 电流最大值是 1A per contact. nuc 实际接了 1,2,4,5 针脚, 也就是 5v 供电最大 2A, 就 10w.

    这样看供电是肯定不足了.

    官网查得 860evo 2T 的功耗才 平均 3w, 最大 4w, 西部数据蓝盘 ssd 2TB 的功耗最大也就 3.8w.

    结论就是: 家用 nuc 别上企业盘...自作自受.
    当时想着企业盘, 是 mlc, 耐用度又高...没想到碰到供电不足的问题.
    wsy2220
        9
    wsy2220  
       2019-03-19 14:54:38 +08:00
    BIOS 里开 AHCI 了吗
    zhuzhi90
        10
    zhuzhi90  
    OP
       2019-03-19 18:42:28 +08:00
    @wsy2220 嗯, 开了的. MBR, GPT 分区都试了.
    zhuzhi90
        11
    zhuzhi90  
    OP
       2019-03-19 18:43:55 +08:00
    今天我用 860evo 2TB 重新试了, 成功认盘. 目前我倾向于问题是由供电不足引起的.

    我在外网翻了一些论坛, 发现也有人用企业盘出现问题, 他解决的方法是外接供电和 sata 线. 我不想折腾了, 860evo 能用就好了. 企业盘作为 mlc 的 sata 盘, 当做 "传家宝" 好了...
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5509 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 09:07 · PVG 17:07 · LAX 01:07 · JFK 04:07
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.