Gentoo Archives: gentoo-user

From: Alexander Puchmayr <alexander.puchmayr@×××××××.at>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Weird harddisk problem: AHCI disks sometimes not found
Date: Thu, 11 Mar 2021 19:39:15
Message-Id: 4230296.kQq0lBPeGt@zeus
1 Hi there,
2
3 I have a weird harddisk detection problem which rises the questio: what does
4 the gentoo-kernel make differently than the ubuntu kernel?
5
6 The system in question has 2 identical SSDs (Kingston SV300S3 60GB) and two
7 identical HDDs (older Maxtor7V300F0 300GB) , all connected to SATA/AHCI ports;
8 the HDDs are combined to a LVM-raid1 volume. SATA controller is a onboard SB7x
9 on an Asus M3A78 mainboard in AHCI mode.
10
11 Only one of the two SSDs is attached at the same time to the system, the other
12 one is disconnected. One contains a gentoo installation (just updated
13 yesterday), the other one an Ubuntu LTS 20.04. This allows dual-.boot by
14 switching connection cables.
15
16 When I connect the gentoo-SSD and boot it, BIOS finds all HDDs and the SSD, and
17 starts booting; but gentoo does not recognize at least one of the HDDs (/dev/
18 sdc missing, dmesg shows link down on Sata-Interface
19 . Going back to the bios shows that even BIOS does not recognize the disk
20 anymore. A full powercycle (pressing reset button is not sufficent) to make BIOS
21 to recognize the disks again.
22
23 Doing the same with the Ubuntu-Disk works absolutely fine, all HDDs are
24 recognized and the raid is working fine, not a single time that one of the
25 disks was not recognized.
26
27 Without the Ubuntu observation I'd say its a hardware problem and the old HDDs
28 are simply beyond their age, but why are they working in ubuntu and not in
29 gentoo? And what is it doing with BIOS/Harddisk that even Bios does not find it
30 anymore? I need a full powercycle to make bios find it again. This indicates a
31 gentoo kernel problem, and I have no idea where to start looking, and AFAIK
32 there's nothing much to configure a SATA/AHCI drive.
33
34 Any ideas?
35
36 Thanks
37 Alex
38
39 PS:
40 Sys-kernel/gentoo-kernel-5.4.97, default configuration
41 Hardware:
42 00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] RS780 Host Bridge
43 00:01.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] RS780/RS880 PCI to PCI
44 bridge (int gfx)
45 00:06.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] RS780 PCI to PCI bridge
46 (PCIE port 2)
47 00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/
48 SB9x0 SATA Controller [AHCI mode]
49 00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/
50 SB9x0 USB OHCI0 Controller
51 00:12.1 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0 USB OHCI1
52 Controller
53 00:12.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/
54 SB9x0 USB EHCI Controller
55 00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/
56 SB9x0 USB OHCI0 Controller
57 00:13.1 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0 USB OHCI1
58 Controller
59 00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/
60 SB9x0 USB EHCI Controller
61 00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 SMBus Controller
62 (rev 3a)
63 00:14.1 IDE interface: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/
64 SB9x0 IDE Controller
65 00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 Azalia
66 (Intel HDA)
67 00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0
68 LPC host controller
69 00:14.4 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 PCI to PCI
70 Bridge
71 00:14.5 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/
72 SB9x0 USB OHCI2 Controller
73 00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron]
74 HyperTransport Technology Configuration
75 00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron]
76 Address Map
77 00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron]
78 DRAM Controller
79 00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron]
80 Miscellaneous Control
81 01:05.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI]
82 RS780 [Radeon HD 3200]
83 01:05.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] RS780 HDMI Audio
84 [Radeon 3000/3100 / HD 3200/3300]
85 02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411
86 PCI Express Gigabit Ethernet Controller (rev 02)

Replies

Subject Author
Re: [gentoo-user] Weird harddisk problem: AHCI disks sometimes not found Mark Knecht <markknecht@×××××.com>
Re: [gentoo-user] Weird harddisk problem: AHCI disks sometimes not found Grant Taylor <gtaylor@×××××××××××××××××××××.net>
Re: [gentoo-user] Weird harddisk problem: AHCI disks sometimes not found antlists <antlists@××××××××××××.uk>
Re: [gentoo-user] Weird harddisk problem: AHCI disks sometimes not found Mark Knecht <markknecht@×××××.com>
Re: [gentoo-user] Weird harddisk problem: AHCI disks sometimes not found Alexander Puchmayr <alexander.puchmayr@×××××××.at>