Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems mounting realroot (SATA problem?) [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Zucca
Veteran
Veteran


Joined: 14 Jun 2007
Posts: 1518
Location: KUUSANKOSKI, Finland

PostPosted: Thu Dec 08, 2016 6:14 pm    Post subject: Problems mounting realroot (SATA problem?) [SOLVED] Reply with quote

This is a continuation to my previous topic. However this new topic is about different problem.
Zucca wrote:
After a little tinkering with the configs of the BIOS/UEFI I managed to... run the bootloader and kernel...
I got as far as initramfs just before mounting realroot.
I'm missing something (SATA driver maybe) from my kernel since /dev does not contain eny sd[a-e] -entries.

But yes. It worked. I just need to propely configure and compile the kernel to get started.
... and so far no success. :(
The problem is the same: not a single sd* device in /dev.

I have had few settings changed, but I haven't found the right one.
I should be okay just with CONFIG_SATA_AHCI, but apparently not.
Here's all sata and ahci settings in my kernel.
grep -E '^(# )?CONFIG_.*(AHCI|SATA)' .config:
# CONFIG_SATA_ZPODD is not set
CONFIG_SATA_PMP=y
CONFIG_SATA_AHCI=y
# CONFIG_SATA_AHCI_PLATFORM is not set
# CONFIG_SATA_INIC162X is not set
# CONFIG_SATA_ACARD_AHCI is not set
# CONFIG_SATA_SIL24 is not set
# CONFIG_SATA_QSTOR is not set
# CONFIG_SATA_SX4 is not set
# CONFIG_SATA_MV is not set
# CONFIG_SATA_NV is not set
# CONFIG_SATA_PROMISE is not set
# CONFIG_SATA_SIL is not set
# CONFIG_SATA_SIS is not set
# CONFIG_SATA_SVW is not set
# CONFIG_SATA_ULI is not set
# CONFIG_SATA_VIA is not set
# CONFIG_SATA_VITESSE is not set

And lspci from livecd environment:
lspci -k:
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890 Northbridge only single slot PCI-e GFX Hydra part (rev 02)
        Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] RD890 Northbridge only single slot PCI-e GFX Hydra part
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD/ATI] RD990 I/O Memory Management Unit (IOMMU)
        Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] RD990 I/O Memory Management Unit (IOMMU)
00:02.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890 PCI to PCI bridge (PCI express gpp port B)
        Kernel driver in use: pcieport
00:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890 PCI to PCI bridge (PCI express gpp port D)
        Kernel driver in use: pcieport
00:05.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890 PCI to PCI bridge (PCI express gpp port E)
        Kernel driver in use: pcieport
00:06.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890 PCI to PCI bridge (PCI express gpp port F)
        Kernel driver in use: pcieport
00:09.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890 PCI to PCI bridge (PCI express gpp port H)
        Kernel driver in use: pcieport
00:0a.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890 PCI to PCI bridge (external gfx1 port A)
        Kernel driver in use: pcieport
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode] (rev 40)
        Subsystem: ASRock Incorporation SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode]
        Kernel driver in use: ahci
        Kernel modules: ahci
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
        Subsystem: ASRock Incorporation SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
        Kernel driver in use: ohci-pci
        Kernel modules: ohci_pci
00:12.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
        Subsystem: ASRock Incorporation SB7x0/SB8x0/SB9x0 USB EHCI Controller
        Kernel driver in use: ehci-pci
00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
        Subsystem: ASRock Incorporation SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
        Kernel driver in use: ohci-pci
        Kernel modules: ohci_pci
00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
        Subsystem: ASRock Incorporation SB7x0/SB8x0/SB9x0 USB EHCI Controller
        Kernel driver in use: ehci-pci
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 SMBus Controller (rev 42)
        Subsystem: ASRock Incorporation SBx00 SMBus Controller
        Kernel driver in use: piix4_smbus
        Kernel modules: i2c_piix4
00:14.1 IDE interface: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 IDE Controller (rev 40)
        Subsystem: ASRock Incorporation SB7x0/SB8x0/SB9x0 IDE Controller
        Kernel driver in use: pata_atiixp
        Kernel modules: pata_atiixp, pata_acpi, ata_generic
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 Azalia (Intel HDA) (rev 40)
        Subsystem: ASRock Incorporation SBx00 Azalia (Intel HDA)
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 LPC host controller (rev 40)
        Subsystem: ASRock Incorporation SB7x0/SB8x0/SB9x0 LPC host controller
00:14.4 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 PCI to PCI Bridge (rev 40)
00:14.5 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI2 Controller
        Subsystem: ASRock Incorporation SB7x0/SB8x0/SB9x0 USB OHCI2 Controller
        Kernel driver in use: ohci-pci
        Kernel modules: ohci_pci
00:15.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB700/SB800/SB900 PCI to PCI bridge (PCIE port 0)
        Kernel driver in use: pcieport
00:16.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
        Subsystem: ASRock Incorporation SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
        Kernel driver in use: ohci-pci
        Kernel modules: ohci_pci
00:16.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
        Subsystem: ASRock Incorporation SB7x0/SB8x0/SB9x0 USB EHCI Controller
        Kernel driver in use: ehci-pci
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 2
        Kernel modules: amd64_edac_mod
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 3
        Kernel driver in use: k10temp
        Kernel modules: k10temp
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 4
        Kernel driver in use: fam15h_power
        Kernel modules: fam15h_power
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 5
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cape Verde PRO [Radeon HD 7750/8740 / R7 250E]
        Subsystem: PC Partner Limited / Sapphire Technology Cape Verde PRO [Radeon HD 7750/8740 / R7 250E]
        Kernel driver in use: radeon
        Kernel modules: radeon
01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Cape Verde/Pitcairn HDMI Audio [Radeon HD 7700/7800 Series]
        Subsystem: PC Partner Limited / Sapphire Technology Cape Verde/Pitcairn HDMI Audio [Radeon HD 7700/7800 Series]
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel
02:00.0 SATA controller: Marvell Technology Group Ltd. 88SE9120 SATA 6Gb/s Controller (rev 12)
        Subsystem: ASRock Incorporation 88SE9120 SATA 6Gb/s Controller
        Kernel driver in use: ahci
        Kernel modules: ahci
03:00.0 USB controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 03)
        Subsystem: ASRock Incorporation uPD720200 USB 3.0 Host Controller
        Kernel driver in use: xhci_hcd
04:00.0 USB controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 03)
        Subsystem: ASRock Incorporation uPD720200 USB 3.0 Host Controller
        Kernel driver in use: xhci_hcd
05:00.0 FireWire (IEEE 1394): VIA Technologies, Inc. VT6315 Series Firewire Controller
        Subsystem: ASRock Incorporation VT6315 Series Firewire Controller
        Kernel driver in use: firewire_ohci
        Kernel modules: firewire_ohci
05:00.1 IDE interface: VIA Technologies, Inc. VT6415 PATA IDE Host Controller (rev a0)
        Subsystem: ASRock Incorporation VT6415 PATA IDE Host Controller
        Kernel driver in use: pata_via
        Kernel modules: pata_via, pata_acpi, ata_generic
06:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)
        Subsystem: ASRock Incorporation Motherboard (one of many)
        Kernel driver in use: r8169
        Kernel modules: r8169
07:05.0 Communication controller: MosChip Semiconductor Technology Ltd. PCI 9835 Multi-I/O Controller (rev 01)
        Subsystem: LSI Logic / Symbios Logic 1P2S
08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 01)
        Subsystem: Realtek Semiconductor Co., Ltd. RTL8111/8168 PCI Express Gigabit Ethernet controller
        Kernel driver in use: r8169
        Kernel modules: r8169


I'm obviously missing something from kernel... But what is it?
I bet it's in plain sight, but I'm blind to it.
_________________
..: Zucca :..

Code:
ERROR: '--failure' is not an option. Aborting...


Last edited by Zucca on Thu Dec 08, 2016 11:41 pm; edited 1 time in total
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


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

PostPosted: Thu Dec 08, 2016 6:24 pm    Post subject: Reply with quote

Can't find your .config, so making a guess: Make sure you also have the SCSI disk support also built in or modularized if you have a custom initramfs. I'd statically build it in...

CONFIG_BLK_DEV_SD

You apparently also have an IDE controller, if you're using an IDE disk, that may enumerate differently; but if you're using the libata drivers, you still need BLK_DEV_SD to be able to use those disks.
_________________
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
Zucca
Veteran
Veteran


Joined: 14 Jun 2007
Posts: 1518
Location: KUUSANKOSKI, Finland

PostPosted: Thu Dec 08, 2016 7:57 pm    Post subject: Reply with quote

eccerr0r wrote:
You apparently also have an IDE controller, if you're using an IDE disk, that may enumerate differently; but if you're using the libata drivers, you still need BLK_DEV_SD to be able to use those disks.
You hit the nail with your guess. :D Thanks.
Any yes. I do have integrated IDE controller and even a FLOPPY controller. :?
I think serial port headers are also in there, but I've bought a seperate card that gives me two serial and one parallel. Serial is for UPS communication and with parallel I can (in future) switch things on and off.


As for SCSI:
grep -E '^(# )?CONFIG_.*SCSI' .config:
CONFIG_SCSI_MOD=y
CONFIG_SCSI=y
CONFIG_SCSI_DMA=y
# CONFIG_SCSI_NETLINK is not set
# CONFIG_SCSI_MQ_DEFAULT is not set
# CONFIG_SCSI_PROC_FS is not set
# CONFIG_SCSI_ENCLOSURE is not set
# CONFIG_SCSI_CONSTANTS is not set
# CONFIG_SCSI_LOGGING is not set
CONFIG_SCSI_SCAN_ASYNC=y
CONFIG_SCSI_SPI_ATTRS=y
# CONFIG_SCSI_FC_ATTRS is not set
CONFIG_SCSI_ISCSI_ATTRS=y
CONFIG_SCSI_SAS_ATTRS=y
CONFIG_SCSI_SAS_LIBSAS=y
CONFIG_SCSI_SAS_ATA=y
CONFIG_SCSI_SAS_HOST_SMP=y
CONFIG_SCSI_SRP_ATTRS=y
# CONFIG_SCSI_LOWLEVEL is not set
# CONFIG_SCSI_DH is not set
# CONFIG_SCSI_OSD_INITIATOR is not set
# CONFIG_ISCSI_IBFT_FIND is not set


And the whole .config as of now.

I think it's alright now...
_________________
..: Zucca :..

Code:
ERROR: '--failure' is not an option. Aborting...
Back to top
View user's profile Send private message
Zucca
Veteran
Veteran


Joined: 14 Jun 2007
Posts: 1518
Location: KUUSANKOSKI, Finland

PostPosted: Thu Dec 08, 2016 10:56 pm    Post subject: Reply with quote

Thanks eccerr0r. :) It works. Although I had forgotten to install internet connectivity software so I needed to go "live" once again (too lazy to transfer sources from another PC).

I had thought initially, that you don't need to have SCSI support specifically for SATA and USB storage, but apparently SATA does depend on SCSI.

Based on that, I believe that SATA and USB storage are (still) emulated trough SCSI. I've always wondered why.
_________________
..: Zucca :..

Code:
ERROR: '--failure' is not an option. Aborting...
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43175
Location: 56N 3W

PostPosted: Thu Dec 08, 2016 11:29 pm    Post subject: Reply with quote

Zucca,

Long story short.
Once upon a time there was only SCSI. Sugart invented a new interface interface for their equipment in PCs. It was a card on the drive and a card in a PC slot.
Compaq added the Integrated Drive Electronics (IDE) interface later still. The IDE port is a cut down ATA slot.
To avoid reinventing everything, IDE used a subset of the SCSI protocol.
It all got very messy due to lack of standards when all the vendors added their own speedups.

When USB storage came along, it implemented SCSI commands over USB.
Likewise SATA. Its SCSI over another transport layer.
There s also SCSI over firewire.

For completeness, IDE has been taken back into the SCSI fold, with the IDE drivers on the SATA menu.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Zucca
Veteran
Veteran


Joined: 14 Jun 2007
Posts: 1518
Location: KUUSANKOSKI, Finland

PostPosted: Thu Dec 08, 2016 11:45 pm    Post subject: Reply with quote

I see. That's how it went...
So by moving IDE back under SCSI umbrella we no longer have /dev/hd[a-z] either?
_________________
..: Zucca :..

Code:
ERROR: '--failure' is not an option. Aborting...
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


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

PostPosted: Fri Dec 09, 2016 12:10 am    Post subject: Reply with quote

Zucca wrote:

I think serial port headers are also in there, but I've bought a seperate card that gives me two serial and one parallel. Serial is for UPS communication and with parallel I can (in future) switch things on and off.

Gosh I still use my serial and parallel ports for bitbanging and controlling/programming microcontrollers and sometimes even other PCs...

I try to use the headers when I can, too cheap to get a PCI serial/parallel card :D (though I think I have a spare one now...)
_________________
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
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3076
Location: Illinois, USA

PostPosted: Fri Dec 09, 2016 1:24 am    Post subject: Reply with quote

Quote:
Sugart invented a new interface interface for their equipment in PCs.

Typo: Shugart.

I know you know it, but the younglings probably don't.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43175
Location: 56N 3W

PostPosted: Fri Dec 09, 2016 10:02 am    Post subject: Reply with quote

Zucca,

The kernel drivers for /dev/hd* are still there but largely unmaintained.
In the days before devtmpfs when udev made the /dev entries, udev dropped /dev/hd* support.
I don't know if devtmpfs supports them today, nor if udev would fix the permissions on them if the /dev entries ever appeared.
Almost all block storage is SCSI these days.

Tony0945,

Thank you. We need to keep the bairns right :)
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Zucca
Veteran
Veteran


Joined: 14 Jun 2007
Posts: 1518
Location: KUUSANKOSKI, Finland

PostPosted: Fri Dec 09, 2016 11:08 am    Post subject: Reply with quote

Tony0945 wrote:
Quote:
Sugart invented a new interface interface for their equipment in PCs.

Typo: Shugart.

I know you know it, but the younglings probably don't.
... indeed. I was already searching Wikipedia for "Sugart". :P

And thank you for calling me young. :P 34 years and now feeling young.
_________________
..: Zucca :..

Code:
ERROR: '--failure' is not an option. Aborting...
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3076
Location: Illinois, USA

PostPosted: Fri Dec 09, 2016 3:17 pm    Post subject: Reply with quote

Zucca wrote:
And thank you for calling me young. :P 34 years and now feeling young.


Just a baby! :P I have a car I bought new that's much older than that!
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 3383

PostPosted: Fri Dec 09, 2016 4:17 pm    Post subject: Reply with quote

Gaakk! Younglings, oldlings, the term you're after is "ST506".

After reading this thread, that popped unbidden into my head. That happened earlier this morning in the shower, when for some reason the song "Maggot Brain" came unbidden, which I think I last heard or thought of in college in the late 70's.
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3076
Location: Illinois, USA

PostPosted: Fri Dec 09, 2016 4:57 pm    Post subject: Reply with quote

YES! I remember ST-506 and IIRC, there was an S-100 controller board. (from Godbout?)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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