View previous topic :: View next topic |
Author |
Message |
GES Tux's lil' helper
Joined: 12 Jun 2005 Posts: 108 Location: Budapest, Hungary
|
Posted: Sat May 15, 2010 9:23 pm Post subject: boot problem on my usb hdd |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54578 Location: 56N 3W
|
Posted: Sat May 15, 2010 9:34 pm Post subject: |
|
|
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 |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Sat May 15, 2010 10:05 pm Post subject: |
|
|
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 |
|
|
GES Tux's lil' helper
Joined: 12 Jun 2005 Posts: 108 Location: Budapest, Hungary
|
Posted: Sat May 15, 2010 11:37 pm Post subject: |
|
|
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:
and everything OK in the future. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54578 Location: 56N 3W
|
Posted: Sun May 16, 2010 10:27 am Post subject: |
|
|
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 |
|
|
GES Tux's lil' helper
Joined: 12 Jun 2005 Posts: 108 Location: Budapest, Hungary
|
Posted: Sun May 16, 2010 9:10 pm Post subject: |
|
|
NeddySeagoon: Thanks, but I do not want to manually compile the kernel, I want to use genkernel. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54578 Location: 56N 3W
|
Posted: Mon May 17, 2010 7:04 pm Post subject: |
|
|
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 |
|
|
GES Tux's lil' helper
Joined: 12 Jun 2005 Posts: 108 Location: Budapest, Hungary
|
Posted: Tue May 18, 2010 6:38 pm Post subject: |
|
|
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 |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Tue May 18, 2010 8:40 pm Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54578 Location: 56N 3W
|
Posted: Tue May 18, 2010 8:58 pm Post subject: |
|
|
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 |
|
|
|