Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Unable to start from USB 3.0 hard drive
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
peku33
n00b
n00b


Joined: 03 May 2015
Posts: 7

PostPosted: Sun May 03, 2015 9:05 am    Post subject: Unable to start from USB 3.0 hard drive Reply with quote

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
View user's profile Send private message
roarinelk
Guru
Guru


Joined: 04 Mar 2004
Posts: 520

PostPosted: Sun May 03, 2015 2:23 pm    Post subject: Reply with quote

Did you forget to enable CONFIG_USB_XHCI_HCD=y and CONFIG_USB_XHCI_PCI=y and CONFIG_USB_STORAGE=y ?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun May 03, 2015 3:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
roarinelk
Guru
Guru


Joined: 04 Mar 2004
Posts: 520

PostPosted: Mon May 04, 2015 7:15 am    Post subject: Reply with quote

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
View user's profile Send private message
peku33
n00b
n00b


Joined: 03 May 2015
Posts: 7

PostPosted: Mon May 04, 2015 9:36 am    Post subject: Reply with quote

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
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6051
Location: Removed by Neddy

PostPosted: Mon May 04, 2015 10:42 am    Post subject: Reply with quote

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
View user's profile Send private message
peku33
n00b
n00b


Joined: 03 May 2015
Posts: 7

PostPosted: Mon May 04, 2015 7:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Mon May 04, 2015 7:44 pm    Post subject: Reply with quote

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
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