View previous topic :: View next topic |
Author |
Message |
peku33 n00b
Joined: 03 May 2015 Posts: 7
|
Posted: Sun May 03, 2015 9:05 am Post subject: Unable to start from USB 3.0 hard drive |
|
|
Hi!
I am working on standard PC with gentoo installed on external USB 3.0 HDD.
I started some time ago with kernel 3.17 built up using genkernel with no config tweaks.
HDD was connected to USB 3.0 port in PC and everything was working fine.
After some time I updated kernel sources to 3.18, recompiled everything with 'genkernel all' (tried --disklabel as well) and was not able to start:
Code: | root block device(UUID=...) not found. |
This is not the problem with delay since i tried adding scandelay etc.
In dmesg there is no information about hard drive being plugged or unplugged.
If I start by selecting old kernel in GRUB2 - works fine (even with USB 3.0).
If I connect my HDD to USB 2.0 port - works fine (on both kernels).
What should I do to fix this? |
|
Back to top |
|
|
roarinelk Guru
Joined: 04 Mar 2004 Posts: 520
|
Posted: Sun May 03, 2015 2:23 pm Post subject: |
|
|
Did you forget to enable CONFIG_USB_XHCI_HCD=y and CONFIG_USB_XHCI_PCI=y and CONFIG_USB_STORAGE=y ? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54234 Location: 56N 3W
|
Posted: Sun May 03, 2015 3:25 pm Post subject: |
|
|
roarinelk,
<M> works too if you have the right black magic in the initrd. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
roarinelk Guru
Joined: 04 Mar 2004 Posts: 520
|
Posted: Mon May 04, 2015 7:15 am Post subject: |
|
|
NeddySeagoon wrote: | roarinelk,
<M> works too if you have the right black magic in the initrd. |
It's Y or nothing at all for me :) |
|
Back to top |
|
|
peku33 n00b
Joined: 03 May 2015 Posts: 7
|
Posted: Mon May 04, 2015 9:36 am Post subject: |
|
|
roarinelk wrote: | Did you forget to enable CONFIG_USB_XHCI_HCD=y and CONFIG_USB_XHCI_PCI=y and CONFIG_USB_STORAGE=y ? |
No I didn't, they are left as modules
Quote: | <M> works too if you have the right black magic in the initrd. |
Could you please explain what does `the right black magic` mean? |
|
Back to top |
|
|
Naib Watchman
Joined: 21 May 2004 Posts: 6051 Location: Removed by Neddy
|
Posted: Mon May 04, 2015 10:42 am Post subject: |
|
|
peku33 wrote: | roarinelk wrote: | Did you forget to enable CONFIG_USB_XHCI_HCD=y and CONFIG_USB_XHCI_PCI=y and CONFIG_USB_STORAGE=y ? |
No I didn't, they are left as modules
Quote: | <M> works too if you have the right black magic in the initrd. |
Could you please explain what does `the right black magic` mean? |
basically the kernel needs to be able to load drivers off of some mass storage BUT if it doesn't know how to talk to the hardware (ie usb driver) or the filesystem (ext3...) So if the drive that has /lib/modules on has key drivers as MODULES the kernel will never be able to load the info - chicken & the egg
solution
1) bake into the kernel all that is needed to get to init
2) leave as [M]odules but add the files to an initrd file _________________
Quote: | Removed by Chiitoo |
|
|
Back to top |
|
|
peku33 n00b
Joined: 03 May 2015 Posts: 7
|
Posted: Mon May 04, 2015 7:35 pm Post subject: |
|
|
Naib wrote: | 2) leave as [M]odules but add the files to an initrd file |
Could you please explain how to add selected modules to initrd?
In genkernel there is an option called '--all-ramdisk-modules', but I belive I don't need ALL. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54234 Location: 56N 3W
|
Posted: Mon May 04, 2015 7:44 pm Post subject: |
|
|
peku33,
If you want to use genkernel, you need to go with the options it offers. It's a reasonable way to get started.
The other option is to make your own initrd, then you can add in what you want.
Its far easier to build a kernel that will boot with no outside help if you can, then no initrd is required. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
|