Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel not finding new drive [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
tabanus
l33t
l33t


Joined: 11 Jun 2004
Posts: 626
Location: UK

PostPosted: Thu May 10, 2018 9:01 am    Post subject: Kernel not finding new drive [Solved] Reply with quote

Just installed a new disk drive and the kernel doesn't recognise it.

This is an internal SATA drive. I booted an Ubuntu USB stick (16.04.3) and it finds the drive as sdb, and I managed to format it in there fine.

The bios reports the drive as an ST2000DM006-2D on SATA port 6, and running 'dmesg | grep ST2' shows no results.

Running gentoo-sources-4.14.13

This PC has one other internal SATA drive and a DVD writer, both working fine.

Guessing this is a kernel config issue, I've uploaded my kernel config to: https://pastebin.com/2ek7bsNf
_________________
Things you might say if you never took Physics: "I'm overweight even though I don't overeat." - Neil deGrasse Tyson


Last edited by tabanus on Thu May 10, 2018 6:13 pm; edited 1 time in total
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7267
Location: almost Mile High in the USA

PostPosted: Thu May 10, 2018 1:57 pm    Post subject: Reply with quote

Posting your dmesg while in Ubuntu might be helpful, or perhaps your motherboard manufacturer or /usr/sbin/lspci information.

Likely that SATA port is connected to a different SATA host than your other drives, and you just need a driver for that.
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
tabanus
l33t
l33t


Joined: 11 Jun 2004
Posts: 626
Location: UK

PostPosted: Thu May 10, 2018 4:04 pm    Post subject: Reply with quote

I've posted the dmesg from Ubuntu here: https://pastebin.com/Fz88bnkQ

New drive that's not recognised:
ata6.00: ATA-9: ST2000DM006-2DM164, CC26, max UDMA/133
scsi 5:0:0:0: Direct-Access ATA ST2000DM006-2DM1 CC26 PQ: 0 ANSI: 5

Old drive that's working correctly:
ata1.00: ATA-8: WDC WD2500AAJS-00VWA0, 12.01B02, max UDMA/133
0:0:0:0: Direct-Access ATA WDC WD2500AAJS-0 1B02 PQ: 0 ANSI: 5

lspci:

Code:
# lspci
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h Processor Root Complex
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] BeaverCreek [Radeon HD 6530D]
00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] BeaverCreek HDMI Audio [Radeon HD 6500D and 6400G-6600G series]
00:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 12h Processor Root Port
00:10.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI Controller (rev 03)
00:10.1 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI Controller (rev 03)
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode]
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI Controller (rev 11)
00:12.2 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 11)
00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI Controller (rev 11)
00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 11)
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 13)
00:14.1 IDE interface: Advanced Micro Devices, Inc. [AMD] FCH IDE Controller
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller (rev 01)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 11)
00:14.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] FCH PCI Bridge (rev 40)
00:14.5 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI Controller (rev 11)
00:14.7 SD Host controller: Advanced Micro Devices, Inc. [AMD] FCH SD Flash Controller
00:15.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Hudson PCI to PCI bridge (PCIE port 0)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 0 (rev 43)
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 6
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 5
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 7
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)

_________________
Things you might say if you never took Physics: "I'm overweight even though I don't overeat." - Neil deGrasse Tyson
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7267
Location: almost Mile High in the USA

PostPosted: Thu May 10, 2018 4:39 pm    Post subject: Reply with quote

However your board was designed, it seems like CONFIG_PATA_ATIIXP is needed for that sata drive.
You should try another SATA port if you can, you may be bottlenecked there if you didn't intend it to be.
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7328
Location: Saint Amant, Acadiana

PostPosted: Thu May 10, 2018 4:41 pm    Post subject: Reply with quote

Perhaps SATA controller is in IDE mode? Methinks in this case 4 drives is max and 5th port is out.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7267
Location: almost Mile High in the USA

PostPosted: Thu May 10, 2018 5:03 pm    Post subject: Reply with quote

I was thinking for some reason the board has an IDE to SATA bridge built on the board, converting an unused IDE port to a SATA port which is now connected to that sata3 drive... not optimal at all, but it should work. Or perhaps OP is using a bridge card.

Choosing another port on the main SATA host probably will allow it to work faster and not need this slow port/driver - if there is another free port.
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
tabanus
l33t
l33t


Joined: 11 Jun 2004
Posts: 626
Location: UK

PostPosted: Thu May 10, 2018 6:12 pm    Post subject: Reply with quote

eccerr0r wrote:
However your board was designed, it seems like CONFIG_PATA_ATIIXP is needed for that sata drive.


That's sorted it.

This is quite an old PC, with this motherboard https://www.msi.com/Motherboard/A75MAG55.html

It has 2 SATA ports flat to the motherboard, but the other 4 are off to the side, facing a different way, so I guess they must connect to the system differently.

Anyway, thanks for your help everyone.
_________________
Things you might say if you never took Physics: "I'm overweight even though I don't overeat." - Neil deGrasse Tyson
Back to top
View user's profile Send private message
Nik-
n00b
n00b


Joined: 07 Jan 2017
Posts: 6

PostPosted: Thu Jul 12, 2018 11:46 am    Post subject: Reply with quote

eccerr0r wrote:
However your board was designed, it seems like CONFIG_PATA_ATIIXP is needed for that sata drive.
You should try another SATA port if you can, you may be bottlenecked there if you didn't intend it to be.


Thank you!
I was experiencing a similar issue, where my main drive was not getting recognized at all, and at busybox I could only see ata3 and ata4, but the main ata1 was not there. It was really strange for me, because I had the same 850 EVO SSDs on ata1 and ata4, but only the ata4 SSD was being recognized. I knew it was a kernel issue, because with "genkernel all" it booted fine, so I was looking for that one magical config setting, which turned out to be as you suggested, to enable CONFIG_PATA_ATIIXP.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum