Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cant boot from external hdd sata
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
pnotz17
n00b
n00b


Joined: 03 Nov 2020
Posts: 55

PostPosted: Sat May 29, 2021 1:54 pm    Post subject: cant boot from external hdd sata Reply with quote

i made a thread a couple of days back about not being to boot without a initramfs and did some reading and came to a conclusion that it has something to do with pata sata drivers,today i took all my hdds out and only put the sata drive in and installed linux mint did a lspci saved that and compared drivers being used and enabled ata_piix and still cant boot with everything built in as *

https://forums.gentoo.org/viewtopic-t-1135893.html

lspci

Code:
00:00.0 Host bridge: Intel Corporation 82G33/G31/P35/P31 Express DRAM Controller (rev 10)
   Subsystem: Gigabyte Technology Co., Ltd 82G33/G31/P35/P31 Express DRAM Controller
00:02.0 VGA compatible controller: Intel Corporation 82G33/G31 Express Integrated Graphics Controller (rev 10)
   Subsystem: Gigabyte Technology Co., Ltd 82G33/G31 Express Integrated Graphics Controller
   Kernel driver in use: i915
   Kernel modules: i915
00:1b.0 Audio device: Intel Corporation NM10/ICH7 Family High Definition Audio Controller (rev 01)
   Subsystem: Gigabyte Technology Co., Ltd GA-D525TUD (Realtek ALC887)
   Kernel driver in use: snd_hda_intel
   Kernel modules: snd_hda_intel
00:1c.0 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 1 (rev 01)
   Kernel driver in use: pcieport
00:1c.1 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 2 (rev 01)
   Kernel driver in use: pcieport
00:1d.0 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #1 (rev 01)
   Subsystem: Gigabyte Technology Co., Ltd GA-D525TUD
   Kernel driver in use: uhci_hcd
00:1d.1 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #2 (rev 01)
   Subsystem: Gigabyte Technology Co., Ltd GA-D525TUD
   Kernel driver in use: uhci_hcd
00:1d.2 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #3 (rev 01)
   Subsystem: Gigabyte Technology Co., Ltd GA-D525TUD
   Kernel driver in use: uhci_hcd
00:1d.3 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #4 (rev 01)
   Subsystem: Gigabyte Technology Co., Ltd GA-D525TUD
   Kernel driver in use: uhci_hcd
00:1d.7 USB controller: Intel Corporation NM10/ICH7 Family USB2 EHCI Controller (rev 01)
   Subsystem: Gigabyte Technology Co., Ltd GA-D525TUD
   Kernel driver in use: ehci-pci
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
   Subsystem: Gigabyte Technology Co., Ltd 82801GB/GR (ICH7 Family) LPC Interface Bridge
   Kernel driver in use: lpc_ich
   Kernel modules: intel_rng, lpc_ich, leds_ss4200
00:1f.2 IDE interface: Intel Corporation NM10/ICH7 Family SATA Controller [IDE mode] (rev 01)
   Subsystem: Gigabyte Technology Co., Ltd NM10/ICH7 Family SATA Controller [IDE mode]
   Kernel driver in use: ata_piix
   Kernel modules: pata_acpi
00:1f.3 SMBus: Intel Corporation NM10/ICH7 Family SMBus Controller (rev 01)
   Subsystem: Gigabyte Technology Co., Ltd GA-8I945PG-RH/GA-D525TUD Mainboard
   Kernel driver in use: i801_smbus
   Kernel modules: i2c_i801
02:00.0 Ethernet controller: Qualcomm Atheros AR8131 Gigabit Ethernet (rev c0)
   Subsystem: Gigabyte Technology Co., Ltd GA-G31M-ES2L Motherboard
   Kernel driver in use: atl1c
   Kernel modules: atl1c

_________________
Rule 91: “when you decide to walk away, don't look back.”
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3949

PostPosted: Sat May 29, 2021 2:13 pm    Post subject: Reply with quote

Since you have been trying so hard for a long time maybe emerge gentoo-kernel-bin and if you boot then diff the 2 .configs
_________________
:)
Back to top
View user's profile Send private message
pnotz17
n00b
n00b


Joined: 03 Nov 2020
Posts: 55

PostPosted: Sat May 29, 2021 2:25 pm    Post subject: Reply with quote

i was thinking of that..
_________________
Rule 91: “when you decide to walk away, don't look back.”


Last edited by pnotz17 on Sat May 29, 2021 2:49 pm; edited 1 time in total
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3949

PostPosted: Sat May 29, 2021 2:26 pm    Post subject: Reply with quote

Code:

diff .config1 .config2

Also plz try with
Code:

root=PARTUUID​=......

in /etc/default/grub
_________________
:)
Back to top
View user's profile Send private message
pnotz17
n00b
n00b


Joined: 03 Nov 2020
Posts: 55

PostPosted: Sat May 29, 2021 2:43 pm    Post subject: Reply with quote

i have tried part uuid what amazes me is the same kernel config works on a ide drive just fine its got to be some pata sata module could it be that i dont have kernel firmware?btw could i do a make localmodconfig in mint on another sata hdd somehow
_________________
Rule 91: “when you decide to walk away, don't look back.”
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat May 29, 2021 4:51 pm    Post subject: Reply with quote

pnotz17,

What does
Quote:
cant boot from external hdd sata
mean?
Where is /boot?
Where is / (root)?

How is the external HDD connected?

Code:
00:1f.2 IDE interface: Intel Corporation NM10/ICH7 Family SATA Controller [IDE mode] (rev 01)
   Subsystem: Gigabyte Technology Co., Ltd NM10/ICH7 Family SATA Controller [IDE mode]
   Kernel driver in use: ata_piix
   Kernel modules: pata_acpi


Your SATA controller is in IDE mode. That's generally a very bad thing.
IDE mode has exactly one use. That is to allow Windows XP users to install the AHCI driver so that they can switch to AHCI mode until they need to reinstall Windows ;)
It gets worse. Often, only the first two SATA ports work in IDE mode. The others are not seen. There is more bad news. Some chipsets only support PIO modes in IDE mode, so you may only have two working SATA ports and they may be bath slow and CPU intensive. Still, its for one time use by Windows XP installers.

Go into the BIOS and set AHCI mode. Almost anything except IDE mode, or whatever its called in your BIOS.

Code:
00:1f.2 IDE interface: Intel Corporation NM10/ICH7 Family SATA Controller [IDE mode] (rev 01)
will change to
Code:
00:1f.2 IDE interface: Intel Corporation NM10/ICH7 Family SATA Controller [AHCI mode] (rev 01)

This only affects the SATA ports.
_________________
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
pnotz17
n00b
n00b


Joined: 03 Nov 2020
Posts: 55

PostPosted: Sat May 29, 2021 8:10 pm    Post subject: Reply with quote

boot and root are on the same drive....ill try and look in my bios again i tried to do this before and didn't see anything ahci
_________________
Rule 91: “when you decide to walk away, don't look back.”
Back to top
View user's profile Send private message
pnotz17
n00b
n00b


Joined: 03 Nov 2020
Posts: 55

PostPosted: Sat May 29, 2021 8:41 pm    Post subject: Reply with quote

ok so in integrated peripherals there's an option to combine pata sata combined/enhanced/disabled/auto nothing on ahci.this is dual bios and this rig is old 2009,im still kinda fresh at bios settings changing boot order and a couple of other thing is really what i mess with.anyways i wish i could figure this out but i guess il just go with a initramfs for the sata drive since i know it boots and for an IDE well it boots without one,sorry for wasting your time but if there is a fix im up for it, il google and see if i have to update my bios which i know i do but i dont know if i want to mess with that just for this.

thank you
_________________
Rule 91: “when you decide to walk away, don't look back.”
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5370
Location: Bavaria

PostPosted: Sat May 29, 2021 9:06 pm    Post subject: Reply with quote

pnotz17 wrote:
[...] nothing on ahci.this is dual bios and this rig is old 2009, [...]

I know there exists some mainboards with no selection for ahci; on some Dell you must enable raid to get ahci (?! :evil: )

So, what is the exact name of your mainboard ? Do you find something when you google it together with "ahci" ?

The most important question: Which kernel modules in "lspci -k" do you see WHEN you boot with the actual Gentoo Minimal-CD ? (not the old live-CD).

I know some mainboards with SATA and PATA (using PATA for e.g. old CD-ROM-drives). Do you need PATA ? If not, what happens if you disable it ?

Do you know this page: https://wiki.gentoo.org/wiki/HDD ?
This is for (very) old IDE: https://wiki.gentoo.org/wiki/Kernel/Gentoo_Kernel_Configuration_Guide#IDE_chipsets_and_DMA
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat May 29, 2021 9:36 pm    Post subject: Reply with quote

pnotz17,

Try them all except disabled.
Boot anyhow you like and run lspci.

When it does not say
Code:
 00:1f.2 IDE interface: Intel Corporation NM10/ICH7 Family SATA Controller [IDE mode] (rev 01)
IDE Mode, you are good.

pietinger,

I had forgotten about selecting raid mode to get AHCI. Thank you for the reminder.
_________________
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
GDH-gentoo
Veteran
Veteran


Joined: 20 Jul 2019
Posts: 1802
Location: South America

PostPosted: Sat May 29, 2021 9:39 pm    Post subject: Reply with quote

Also:
pnotz17 wrote:
i guess il just go with a initramfs for the sata drive since i know it boots and for an IDE well it boots without one

If the computer does really boot with an initramfs or Mint, the output of lsmod can algo give you a hint about what you need to configure as built-in for booting with the SATA drive and no initramfs. You said in the other thread that the SATA drive is an external drive connected to an USB port?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat May 29, 2021 9:48 pm    Post subject: Reply with quote

pnotz17,

Ahh ... ICH7 I thought I remembered that.
_________________
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
pnotz17
n00b
n00b


Joined: 03 Nov 2020
Posts: 55

PostPosted: Sun May 30, 2021 9:45 am    Post subject: Reply with quote

i appreciate all the feedback from you guys im going to have to do some research on my bios and how to do all that for future reference.I am now installing gentoo with my config that i know boots on a another IDE drive i found laying around put it inside my pc and now emerging world

Thank you all for your support and help
_________________
Rule 91: “when you decide to walk away, don't look back.”


Last edited by pnotz17 on Sun May 30, 2021 10:07 am; edited 1 time in total
Back to top
View user's profile Send private message
pnotz17
n00b
n00b


Joined: 03 Nov 2020
Posts: 55

PostPosted: Sun May 30, 2021 9:54 am    Post subject: Reply with quote

GDH-gentoo wrote:
Also:
pnotz17 wrote:
i guess il just go with a initramfs for the sata drive since i know it boots and for an IDE well it boots without one

If the computer does really boot with an initramfs or Mint, the output of lsmod can algo give you a hint about what you need to configure as built-in for booting with the SATA drive and no initramfs. You said in the other thread that the SATA drive is an external drive connected to an USB port?


yes its just an external samsung 250G laptop hdd that i had sitting around connected to a sata controller (the harness you clip on a hdd in a laptop internally) connected to a usb.The computer boots without a initramfs from the install i did on its IDE drive,i was just trying to replicate that kernel just on the laptop drive cuz my IDE is ready to die it clicks on boot and i dont like the sound of it
_________________
Rule 91: “when you decide to walk away, don't look back.”


Last edited by pnotz17 on Sun May 30, 2021 10:03 am; edited 1 time in total
Back to top
View user's profile Send private message
pnotz17
n00b
n00b


Joined: 03 Nov 2020
Posts: 55

PostPosted: Sun May 30, 2021 10:02 am    Post subject: Reply with quote

pietinger wrote:
pnotz17 wrote:
[...] nothing on ahci.this is dual bios and this rig is old 2009, [...]

I know there exists some mainboards with no selection for ahci; on some Dell you must enable raid to get ahci (?! :evil: )

So, what is the exact name of your mainboard ? Do you find something when you google it together with "ahci" ?

The most important question: Which kernel modules in "lspci -k" do you see WHEN you boot with the actual Gentoo Minimal-CD ? (not the old live-CD).

I know some mainboards with SATA and PATA (using PATA for e.g. old CD-ROM-drives). Do you need PATA ? If not, what happens if you disable it ?

Do you know this page: https://wiki.gentoo.org/wiki/HDD ?
This is for (very) old IDE: https://wiki.gentoo.org/wiki/Kernel/Gentoo_Kernel_Configuration_Guide#IDE_chipsets_and_DMA


when i disable it it only boots from the laptop drive ie enchanced/combined

Code:

# dmidecode 3.3
Getting SMBIOS data from sysfs.
SMBIOS 2.4 present.

Handle 0x0002, DMI type 2, 8 bytes
Base Board Information
        Manufacturer: Gigabyte Technology Co., Ltd.
        Product Name: G31M-ES2L
        Version:
        Serial Number:

_________________
Rule 91: “when you decide to walk away, don't look back.”
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5370
Location: Bavaria

PostPosted: Sun May 30, 2021 10:10 am    Post subject: Reply with quote

I googled for "G31M-ES2L bios ahci" and found a page from gigabyte tech forum saying: "ICH7 doesnt provide AHCI", so Neddy's suggestion to use it, can not be done. (you would need ICH7R or ICH7M). See also: https://www.intel.com/content/www/us/en/support/articles/000005642/technologies.html
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun May 30, 2021 2:10 pm    Post subject: Reply with quote

pietinger,

Thank you.
_________________
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
pnotz17
n00b
n00b


Joined: 03 Nov 2020
Posts: 55

PostPosted: Fri Jun 04, 2021 8:31 am    Post subject: Reply with quote

well i just put the sata drive internally and now it works lol with no initramfs guess its got all to with external usb sata controller
_________________
Rule 91: “when you decide to walk away, don't look back.”
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