Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Install Gentoo on USB 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
Xander314
n00b
n00b


Joined: 16 Apr 2012
Posts: 61

PostPosted: Sun Jan 19, 2014 4:38 pm    Post subject: [SOLVED] Install Gentoo on USB Drive Reply with quote

I am trying to install Gentoo on a USB drive for my mining rig. However, I keep getting kernel panics as it can't find the root filesystem. The root filesystem is on my USB drive. I have enabled OHCI, UHCI and EHCI USB support. I first tried with a stripped down kernel config from kernel-seeds.org but I have also tried with minimal modifications to the default config.

What kernel config options am I likely to need so that the kernel can find and mount the root file system?

Oh, and it's an ext4 filesystem and ext4 is enabled in the kernel.

SOLUTION: Add
Code:
rootdelay=<a few seconds>
to kernel command line so there is time for USB to be detected before root is mounted.

Last edited by Xander314 on Sun Jan 19, 2014 6:22 pm; edited 1 time in total
Back to top
View user's profile Send private message
mreff555
Apprentice
Apprentice


Joined: 10 Mar 2011
Posts: 231
Location: Philadelphia

PostPosted: Sun Jan 19, 2014 5:07 pm    Post subject: Reply with quote

A little more information please.
What bootloader are you using?
are you using a initramfs?
can you post your boot config.

If you are using grub (not that I would recommend that for a system on a stick), but if you are you can use the bootloader commands interactively to make sure the boot loader can find and read your root drive.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 14360

PostPosted: Sun Jan 19, 2014 6:00 pm    Post subject: Reply with quote

Also, please post the last 25 lines of output before the panic.
Back to top
View user's profile Send private message
Xander314
n00b
n00b


Joined: 16 Apr 2012
Posts: 61

PostPosted: Sun Jan 19, 2014 6:07 pm    Post subject: Reply with quote

Sorry I wasn't sure what information to provide. I'm using GRUB2. Why wouldn't you recommend grub for this use case? Oh, and I'm not using an initramfs.

I just took a look at the GRUB recovery console and it can see all the partitions. I don't think GRUB is the problem. The kernel is loaded fine by GRUB, but the kernel apparently cannot see the USB drive.
Back to top
View user's profile Send private message
Xander314
n00b
n00b


Joined: 16 Apr 2012
Posts: 61

PostPosted: Sun Jan 19, 2014 6:10 pm    Post subject: Reply with quote

Hu wrote:
Also, please post the last 25 lines of output before the panic.


Only a few lines still show on the screen after the panic. How can I see them?
Back to top
View user's profile Send private message
Xander314
n00b
n00b


Joined: 16 Apr 2012
Posts: 61

PostPosted: Sun Jan 19, 2014 6:21 pm    Post subject: Reply with quote

Okay I fixed it. It was just a timing issue. I added
Code:
rootdelay=10
to the kernel command line and now it detects the USB drive before it tries to mount root.
Back to top
View user's profile Send private message
mreff555
Apprentice
Apprentice


Joined: 10 Mar 2011
Posts: 231
Location: Philadelphia

PostPosted: Sun Jan 19, 2014 6:32 pm    Post subject: Reply with quote

Glad you got it working. I thought it may have been something like that. Generally bootloaders are pretty capible these days.

The only reason I personally wouldn't use grub on a stick is because of how big it is. There is nothing wrong with running it.
Back to top
View user's profile Send private message
Xander314
n00b
n00b


Joined: 16 Apr 2012
Posts: 61

PostPosted: Mon Jan 20, 2014 3:00 am    Post subject: Reply with quote

Okay I'll bear that in mind, though in this instance I am not too concerned about wasting space as my mining setup won't take up much space. Thanks for the help!
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