Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]Installing Gentoo on usb - cannot mount root when bo
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
pll
n00b
n00b


Joined: 16 Dec 2011
Posts: 19

PostPosted: Fri Dec 16, 2011 2:01 am    Post subject: [SOLVED]Installing Gentoo on usb - cannot mount root when bo Reply with quote

Hello
um first of all I'm sorry if this is the wrong forum.
This isn't my first Gentoo install but I'm still fairly new to Gentoo.

I'm trying to install Gentoo on a usb stick.

So far I have partitioned it into two partitions, I have grub and the kernel installed ok on the first section and the root filesystem set up on the second partition.

It boots fine however THE PROBLEM > is my kernel does not seem to recognise any usb devices during boot.

After the grub screen I get a kernel panic. The gist of the error is cannot mount /dev/sdb2 because there is no device. Possible devices are /dev/sda (internal hdd) and /dev/sr0

So I made an initramfs that dropped to a shell upon boot. When I ls /dev/ I get sda but no sdb or any other usb devices. Pulling out the usb stick or inserting new ones does not effect the /dev/ entries at all.

For completeness sake I'll say I do have a Gentoo system installed on /dev/sda1, I can switchroot to it and usb devices work fine within that system, it's just the pre-switchroot part that is the problem.

Both systems use the same kernel.

Also I'm using hardened Gentoo no selinux, if that makes a difference.

I have looked around for solutions but there weren't many to try and they didn't work.
This for example didn't help
http://en.gentoo-wiki.com/wiki/Initramfs#Dynamic_Devices

Anyway I thought I'd post incase anyone has come across this or knows how to fix it.
Any help would be great ^_^
_________________
Peace, love, linux


Last edited by pll on Fri Dec 16, 2011 5:47 pm; edited 1 time in total
Back to top
View user's profile Send private message
EatMeerkats
Apprentice
Apprentice


Joined: 15 Mar 2006
Posts: 234

PostPosted: Fri Dec 16, 2011 4:05 am    Post subject: Reply with quote

You need to make sure all your USB drivers are compiled into the kernel (not as modules), and use the rootdelay kernel parameter (8 or so should be fine): http://www.linuxtopia.org/online_books/linux_kernel/kernel_configuration/re58.html
Back to top
View user's profile Send private message
pll
n00b
n00b


Joined: 16 Dec 2011
Posts: 19

PostPosted: Fri Dec 16, 2011 5:46 pm    Post subject: Reply with quote

Thanks for your reply. I apologise if my wording was clumsy, I have the right kernel USB options enabled since my kernel is regocnising the devices, they just weren't appearing in /dev during boot.

Anyway your suggestion of using rootdelay delay worked when going from grub without an initramfs thankyou.

As for my initramfs it seemed that proc and sys weren't being mounted properly so I added a delay in my init script by using sleep after setting up busybox but before mounting proc and sys. I don;t understand why this works but it does.

Anyway thankyou... I don't like your username. Thanks meerkats.

SOLVED
_________________
Peace, love, linux
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