Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
boot problem on my usb hdd
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
GES
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jun 2005
Posts: 108
Location: Budapest, Hungary

PostPosted: Sat May 15, 2010 9:23 pm    Post subject: boot problem on my usb hdd Reply with quote

When i booting my system I get this:
...
>> Activating mdev
>> Determining root device ...
!! Could not find the root block device in .

I type it in here that:
/dev/sdb1
and everything OK.

I know how is needed, usb root waiting.
My grub.conf:
title=Gentoo Linux (2.6.33-gentoo-r2)
root (hd0,0)
kernel /boot/kernel-genkernel-x86-2.6.33-gentoo-r2 root=/dev/ram0 real_root=/dev/sdb1 rootdelay=1000
initrd /boot/initramfs-genkernel-x86-2.6.33-gentoo-r2

Why the rootdelay kernel parameter is out of order?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat May 15, 2010 9:34 pm    Post subject: Reply with quote

GES,

rootdelay=1000 is over the top ... thats almost 20 minutes.

If you want to use an initrd, you need to change your init script so that the delay is done there with a sleep statement before real_root is mounted.
rootdelay is applied to the first mounting of root, which in your case, is the initrd. Thats not what you want at all.
_________________
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
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Sat May 15, 2010 10:05 pm    Post subject: Reply with quote

Maybe:
Code:
title=Gentoo Linux (2.6.33-gentoo-r2)
root (hd0,0)
kernel /boot/kernel-genkernel-x86-2.6.33-gentoo-r2 root=/dev/ram0 usb-storage.delay_use=10 rootdelay=10 real_root=/dev/sdb1
initrd /boot/initramfs-genkernel-x86-2.6.33-gentoo-r2


0r try usb-storage.delay_use=0

default is 5

drive may be slow hence the increase
drive may be fast but the probe delay causes the problem hence the 0
Back to top
View user's profile Send private message
GES
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jun 2005
Posts: 108
Location: Budapest, Hungary

PostPosted: Sat May 15, 2010 11:37 pm    Post subject: Reply with quote

I probed:
Code:
kernel /boot/kernel-genkernel-x86-2.6.33-gentoo-r2 root=/dev/ram0 usb-storage.delay_use=10 rootdelay=10 real_root=/dev/sdb1

and:
Code:
kernel /boot/kernel-genkernel-x86-2.6.33-gentoo-r2 root=/dev/ram0 usb-storage.delay_use=0 rootdelay=10 real_root=/dev/sdb1

I got this in both cases:
Code:
..
>> Activating mdev
>> Determining root device ...
!! Block device /dev/sdb1 is not a valid root device...
!! Could not find the root block device in .

and I type:
Code:
/dev/sdb1

and everything OK in the future.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun May 16, 2010 10:27 am    Post subject: Reply with quote

GES,

Rebuild your kernel so it does not need an initrd, then use rootdelay=
_________________
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
GES
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jun 2005
Posts: 108
Location: Budapest, Hungary

PostPosted: Sun May 16, 2010 9:10 pm    Post subject: Reply with quote

NeddySeagoon: Thanks, but I do not want to manually compile the kernel, I want to use genkernel.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Mon May 17, 2010 7:04 pm    Post subject: Reply with quote

GES,

use the --menuconfig option to change the drivers you need from <M> to <*>
_________________
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
GES
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jun 2005
Posts: 108
Location: Budapest, Hungary

PostPosted: Tue May 18, 2010 6:38 pm    Post subject: Reply with quote

Which drivers?
# mount|grep "sdb1"
/dev/sdb1 on / type ext4 (rw,noatime)
# zgrep "EXT4" /proc/config.gz
CONFIG_EXT4_FS=y
CONFIG_EXT4_FS_XATTR=y
CONFIG_EXT4_FS_POSIX_ACL=y
CONFIG_EXT4_FS_SECURITY=y
# CONFIG_EXT4_DEBUG is not set
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Tue May 18, 2010 8:40 pm    Post subject: Reply with quote

try a rebuild using
Code:
genkernel --slowusb all
supposed to provide a 10 second settle time

man genkernel has scandelay=<...> but that apparently no longer exists as the following results show:
Code:
genkernel scandelay=15 all
Quote:
Error: Unknown option 'scandelay=15'!
Code:
genkernel scandelay all
Quote:
Error: Unknown option 'scandelay'!
Code:
genkernel --scandelay all
Quote:
Error: Unknown option '--scandelay'!
Code:
genkernel --scandelay=15 all
Quote:
Error: Unknown option '--scandelay=15'!
Why scandelay was killed is an interesting question.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Tue May 18, 2010 8:58 pm    Post subject: Reply with quote

GES,

Your hard drive chipset support, as shown by lspci -k, SCSI Disk support and your root filesystem driver are what you need build in to boot without an initrd.
genkernel builds a lot of junk you will never use.
_________________
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 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