Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
udev timeout during boot
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
javeree
Guru
Guru


Joined: 29 Jan 2006
Posts: 453

PostPosted: Mon Nov 12, 2012 10:15 pm    Post subject: udev timeout during boot Reply with quote

I set up a system to boot from a usb drive (while chrooting, this is /dev/sdb1).
I can start with the bios starting grub2 on the usb stick. Grub2 calls the kernel and the initramfs (I can see that at this point that the usb partition is now recognized as sda1 and mounted). initram does switch_root and starts init.

On the step 'Waiting for uevents to be processed', I have to wait over a minute, after which I get:
Quote:

udevadm settle - timeout of 60 seconds reached, the event queue contains:
/sys/devices/pci0000:00/0000:00:10.4/usb1/1-3/1-3:1.0/host0/target0:0:0/0:0:0:0/block/sda (632)
/sys/devices/pci0000:00/0000:00:10.4/usb1/1-3/1-3:1.0/host0/target0:0:0/0:0:0:0/block/sda/sda1 (633)
/sys/devices/pci0000:00/0000:00:14.0/sound/card0/controlC0 (796)
/sys/devices/pci0000:00/0000:00:14.0/sound/card0 (798)


After that as a consequence, bad things happen, like
Quote:
'udevd[966]: timeout: '/sbin/blkid -o udev -p /dev/sda'
'udevd[966]: timeout 'udisks-part-id /dev/sda'
fsck.ext4: No such file or directory while trying to open /dev/disk/by-uuid/4dxxxx-xxxx-xxxx-xxxx-xxxxxxx


The first two lines suggest it recognizes the usb partition, but is then waiting for something to happen with it (finding uuid and label?). The problem is that there is no additional information on what is wrong or missing. Any suggestions ?
There is not much I can do, as there is no logon prompt to fall back onto
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Tue Nov 13, 2012 3:09 am    Post subject: Reply with quote

javeree,

Check the .config settings
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y

If that's OK then is there anything installed on sda?

If possible, save your sda mbr and try to install grub to it. Make any appropriate changes, if necessary, to fstab and see if it boots without udev errors.
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
javeree
Guru
Guru


Joined: 29 Jan 2006
Posts: 453

PostPosted: Tue Nov 13, 2012 9:24 am    Post subject: Reply with quote

I checked just before going to work:
yes, both CONFIG options are =y

'is something installed on sda?':
yes, I chrooted to the usb disk and installed a complete gentoo installation, includign all the services I will need. Grub2, the kernel and initramfs are located on that same usb.

The internal disk is a small read-only disk with a small windows version flashed in meant serve as a thin client. I can not write to that using normal means, so installing grub to the internal drive is not possible. (I would have to install grub to a file that serves as a disk image and then flash that disk image onto the internal drive). I prefer grub on the usb drive.

When the error occurs, grub2 has already fulfilled its function: calling the kernel, so in my opinion, it should have no effect anymore influencing the boot.

The kernel has already run initramfs. In initramfs, I mount the usb disk by its uuid by trying in a loop: 'findfs xxxx-xxx-xxx'.
findfs fails a few times until the kernel sees the usb drive, then it returns /dev/sda.

This is a point where I have some doubts: why is the usb recognized as sda1, when there is also an internal disk ? When I use netboot, the internal disk is /dev/sda1 and the usb disk is /dev/sdb1.

If I understand the boot process with initramfs correctly, this step to mount root should be sufficient, and fstab would never be accessed again to boot (and definitly not before udev has initialized). So here in my opinion fstab should also not be the culprit. It might as wel be empty (FYI, there is just one partition with / /boot /usr /home ...)

I have a feeeling that udev fails because it is still waiting for something that I have failed to activate in the kernel and that udev wants to run after it has detected the drive. Maybe 'blkid' or 'udisks-part-id' need a specific kernel setting ?

Also FYI, as you can see I use EXT4, and have compiled ext4 in the kernel, so that is an obvious one.
I am rather thinking about the kernel settings related to usb/scsi/(s)ata ...
Back to top
View user's profile Send private message
javeree
Guru
Guru


Joined: 29 Jan 2006
Posts: 453

PostPosted: Tue Nov 13, 2012 9:35 am    Post subject: Reply with quote

Something I'll try when I get home tonight: I've read that udisks requires CONFIG_SWAP, which I had deactivated, because this system has no swap. I'll report on the result
Back to top
View user's profile Send private message
javeree
Guru
Guru


Joined: 29 Jan 2006
Posts: 453

PostPosted: Tue Nov 20, 2012 12:24 pm    Post subject: Reply with quote

udev still fails in the same way, but at least I got my system booting.
after udev fails there is no drive by uuid defined, so I had to change /etc/sftab to refer to /dev/sda1.

/etc/init.d/root still complains that it cannot remount / read-write, but teh system now continues to boot happily.
When it gives me a login, I can write to / without problems.

Remarkably, the PC is a real snail (it takes several minutes to boot, vi /etc/fstab sometimes take up to 10 second, ...), which is not the Pcs fault, because it is very fast whan I boot it using e.g. partedmagic.

Probably the PC being extremely slow causes the timeout in udev, so now the task is to find out what is the bottleneck: IO on the USB drive, the CPU being throttled back, some resource shortage, ...
So far, I have not found anything suspicious yet.
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