您尚未登录。

#1 2022-08-13 22:34:27

Oliver Wei
会员
注册时间: 2021-07-13
帖子: 118

[已解决]arch下,雷电4固态硬盘盒,始终无法识别

我的配置是12700k + 微星z690i,主板支持雷电4的,所以最近搞了个雷电4固态硬盘盒,装的是980pro 1t硬盘,相关设备已经在windows11系统下测试过了,没问题,雷电4的固态硬盘盒基本能够跑满pcie3.0的速度,980pro在雷电4下读写都在3000mb/s左右,4k低点,但问题不大。所以,硬盘盒子本身,还有主板bios设置应该没问题。

主要问题是,我换成arch系统后,通过sudo fdisk -l,始终无法识别雷电4下的固态硬盘,之前用普通移动硬盘盒,usb3.2gen2那种,都能识别。

首先,我已经阅读了linux关于雷电4的一些说明,https://docs.kernel.org/admin-guide/thunderbolt.html,在此基础上,我也进行了相关设置,比如,按照要求在/etc/udev/rules.d/99-local.rules下添加

ACTION=="add", SUBSYSTEM=="thunderbolt", ATTR{authorized}=="0", ATTR{authorized}="1"

内核模块,比如thunerbolt,我查了下都是添加了的,
lsmod | grep thunderbolt 输出:

thunderbolt           335872  0

然后,我检查了/sys/bus/thunderbolt/devices这个目录,这个目录,一旦连接雷电4固态硬盘盒子,就会在下面出现0-1这个路径,原本只有0-1和damain0两个目录,所以我感觉硬盘盒子是连接上系统了的。

进入0-1这个目录,并检查 authorized等文件,如下图
af6dd5c822b2140ac9e4ea1abbbb6c5a.png

我感觉应该连接没问题啊

此外,我运行bolt这个命令,这好像是个雷电设备管理器,运行如下图
f92f6ad6790ac5fde5d2a047a4f21eb9.png

感觉上,显示的是设备也连接成功了啊。

此外,也运行了bolt这个daemon,bolt这个好像是控制雷电3的,不清楚对雷电4有效不,不过还是运行了

● bolt.service - Thunderbolt system service
     Loaded: loaded (/usr/lib/systemd/system/bolt.service; static)
     Active: active (running) since Sat 2022-08-13 21:46:27 CST; 46min ago
       Docs: man:boltd(8)
   Main PID: 784 (boltd)
     Status: "authmode: enabled, force-power: unset"
      Tasks: 3 (limit: 38187)
     Memory: 4.3M
        CPU: 15ms
     CGroup: /system.slice/bolt.service
             └─784 /usr/lib/boltd

Aug 13 21:46:27 ArchLinux boltd[784]: [0deb8780-006f-MS-4476                    ] labeling device: MSI MS-4476
Aug 13 21:46:27 ArchLinux boltd[784]: [0deb8780-006f-domain0                    ] dbus: exported domain at /org/freedesktop/bolt/domains/0deb8780_006f_005d_ffff_fffffff>
Aug 13 21:46:27 ArchLinux boltd[784]: [00681aa0-3643-USB4 STORAGE               ] dbus: exported device at /org/freedesktop/bolt/devices/00681aa0_3643...
Aug 13 21:46:27 ArchLinux boltd[784]: [0deb8780-006f-MS-4476                    ] dbus: exported device at /org/freedesktop/bolt/devices/0deb8780_006f...
Aug 13 21:46:27 ArchLinux systemd[1]: Started Thunderbolt system service.
Aug 13 21:47:25 ArchLinux boltd[784]: probing: started [1000]
Aug 13 21:47:26 ArchLinux boltd[784]: [00681aa0-3643-USB4 STORAGE               ] parent is 0deb8780-006f...
Aug 13 21:47:26 ArchLinux boltd[784]: [00681aa0-3643-USB4 STORAGE               ] connected: authorized (/sys/devices/pci0000:00/0000:00:1c.4/0000:05:00.0/0000:06:00.0/>
Aug 13 21:47:26 ArchLinux boltd[784]: [00681aa0-3643-USB4 STORAGE               ] udev: device changed: authorized -> authorized
Aug 13 21:47:28 ArchLinux boltd[784]: probing: timeout, done: [2185687] (2000000)
lines 1-22/22 (END)

但是运行 sudo fdisk -l,始终检测不到相应的硬盘,折腾了半天没什么头绪了,google上也没找到解决方法,等大佬来帮我看看吧。

其他的一些信息。
系统:

> $ neofetch
                   -`                    weich@ArchLinux
                  .o+`                   ---------------
                 `ooo/                   OS: Arch Linux x86_64
                `+oooo:                  Host: MS-7D29 1.0
               `+oooooo:                 Kernel: 5.18.16-xanmod1-1
               -+oooooo+:                Uptime: 43 mins
             `/:-:++oooo+:               Packages: 1221 (pacman)
            `/++++/+++++++:              Shell: zsh 5.9
           `/++++++++++++++:             Resolution: 2560x1440 @ 119.99Hz
          `/+++ooooooooooooo/`           WM: dwm
         ./ooosssso++osssssso+`          Terminal: st
        .oossssso-````/ossssss+`         Terminal Font: LXGW WenKai Mono
       -osssssso.      :ssssssso.        CPU: 12th Gen i7-12700K (20) @ 3.600GHz [26.0°C]
      :osssssss/        osssso+++.       GPU: NVIDIA GeForce RTX 3060 Lite Hash Rate
     /ossssssss/        +ssssooo/-       Memory: 2493MiB / 31899MiB (7%)
   `/ossssso+/:-        -:/+osssso+-     Disk (/): 69G / 803G (9%)
  `+sso+:-`                 `.-/+oso:    Disk (/home): 638G / 984G (69%)
 `++:.                           `-/+/   Local IP: 10.181.207.15
 .`                                 `/

lspci

00:00.0 Host bridge: Intel Corporation 12th Gen Core Processor Host Bridge/DRAM Registers (rev 02)
00:01.0 PCI bridge: Intel Corporation 12th Gen Core Processor PCI Express x16 Controller #1 (rev 02)
00:06.0 PCI bridge: Intel Corporation 12th Gen Core Processor PCI Express x4 Controller #0 (rev 02)
00:08.0 System peripheral: Intel Corporation 12th Gen Core Processor Gaussian & Neural Accelerator (rev 02)
00:14.0 USB controller: Intel Corporation Alder Lake-S PCH USB 3.2 Gen 2x2 XHCI Controller (rev 11)
00:14.2 RAM memory: Intel Corporation Alder Lake-S PCH Shared SRAM (rev 11)
00:14.3 Network controller: Intel Corporation Alder Lake-S PCH CNVi WiFi (rev 11)
00:16.0 Communication controller: Intel Corporation Alder Lake-S PCH HECI Controller #1 (rev 11)
00:17.0 SATA controller: Intel Corporation Alder Lake-S PCH SATA Controller [AHCI Mode] (rev 11)
00:1c.0 PCI bridge: Intel Corporation Alder Lake-S PCH PCI Express Root Port #1 (rev 11)
00:1c.1 PCI bridge: Intel Corporation Alder Lake-S PCH PCI Express Root Port #2 (rev 11)
00:1c.4 PCI bridge: Intel Corporation Alder Lake-S PCH PCI Express Root Port #5 (rev 11)
00:1d.0 PCI bridge: Intel Corporation Alder Lake-S PCH PCI Express Root Port #9 (rev 11)
00:1d.4 PCI bridge: Intel Corporation Alder Lake-S PCH PCI Express Root Port #13 (rev 11)
00:1f.0 ISA bridge: Intel Corporation Z690 Chipset LPC/eSPI Controller (rev 11)
00:1f.3 Audio device: Intel Corporation Alder Lake-S HD Audio Controller (rev 11)
00:1f.4 SMBus: Intel Corporation Alder Lake-S PCH SMBus Controller (rev 11)
00:1f.5 Serial bus controller: Intel Corporation Alder Lake-S PCH SPI Controller (rev 11)
01:00.0 VGA compatible controller: NVIDIA Corporation GA106 [GeForce RTX 3060 Lite Hash Rate] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GA106 High Definition Audio Controller (rev a1)
02:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller PM9A1/PM9A3/980PRO
04:00.0 Ethernet controller: Intel Corporation Ethernet Controller I225-V (rev 03)
05:00.0 PCI bridge: Intel Corporation Thunderbolt 4 Bridge [Maple Ridge 4C 2020] (rev 02)
06:00.0 PCI bridge: Intel Corporation Thunderbolt 4 Bridge [Maple Ridge 4C 2020] (rev 02)
06:01.0 PCI bridge: Intel Corporation Thunderbolt 4 Bridge [Maple Ridge 4C 2020] (rev 02)
06:02.0 PCI bridge: Intel Corporation Thunderbolt 4 Bridge [Maple Ridge 4C 2020] (rev 02)
06:03.0 PCI bridge: Intel Corporation Thunderbolt 4 Bridge [Maple Ridge 4C 2020] (rev 02)
07:00.0 USB controller: Intel Corporation Thunderbolt 4 NHI [Maple Ridge 4C 2020]
08:00.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge DD 2018] (rev 06)
09:00.0 USB controller: Intel Corporation Thunderbolt 4 USB Controller [Maple Ridge 4C 2020]
70:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983

最近编辑记录 Oliver Wei (2022-08-18 11:01:11)

离线

#2 2022-08-17 23:15:44

Oliver Wei
会员
注册时间: 2021-07-13
帖子: 118

Re: [已解决]arch下,雷电4固态硬盘盒,始终无法识别

最终还是靠自己解决了,原来是pcie通道的问题,雷电4接口连上的固态硬盘,fdisk里面居然以nvmexxxx这样显示的,usb3.2接口都是显示的sdx这种,才意识到原来雷电和pcie通道有关啊

简单对比测试了下,左侧,970pro 1t,走的是主板的pcie3.0通道,ext4文件系统,右侧,980pro 1t,外接的固态硬盘盒,走的雷电4通道,ntfs文件系统,便于和windows互拷文件

T2wxW9q3j4paLkR.png

AhECalQMirB2G5H.png

基本上雷电4能达到pcie3.0速度,总算把这玩意搞定了,哈哈哈哈哈哈

大文件读写,pcie3.0下的970pro还是强,全盘模拟不掉速,民用级mlc颗粒最后的荣光了~

最近编辑记录 Oliver Wei (2022-08-17 23:20:31)

离线

页脚