Skip to contentSkip to conversation

change from devfs to udev

DISCUSSION Rui Carvalho 4 participants 4 messages Oct 29, 2004 – Oct 30, 2004

lore
Share & tools
lore
#0 lore raw

Hi!

I have a small distribution based on vanilla kernel, which is using devfs (checking the option on kernel config) and I want to change to udev. But I'm having some problems to make it successful.
When I disable the devfs support in the kernel, the startup hangs in the following line, after mounting the root (ext3 filesystem):

"Warning: unable to open an initial console"

What could it be?
What can I do to make udev work in my distro?

Thanks.

Rui Carvalho

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88&alloc_id065&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#1 lore raw
Quoted 8 lines · Rui Carvalho

Hi!

I have a small distribution based on vanilla kernel, which is using devfs (checking the option on kernel config) and I want to change to udev. But I'm having some problems to make it successful.
When I disable the devfs support in the kernel, the startup hangs in the following line, after mounting the root (ext3 filesystem):

Quoted 4 lines

"Warning: unable to open an initial console"

What could it be?
What can I do to make udev work in my distro?

Did you read the HOWTO-udev_for_dev file that's in the udev tarball? It contains a lot of hints about how to accomplish this.

Good luck,

greg k-h

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88&alloc_id065&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#2 lore raw
In reply to Rui Carvalho
Quoted 4 lines · Rui Carvalho

"Warning: unable to open an initial console"

What could it be?
What can I do to make udev work in my distro?

[taken from Gentoo boot help]
To rectify this situation, please do the following:
mkdir /mnt/fixit
mount --bind / /mnt/fixit
cp -a /dev/* /mnt/fixit/dev/
umount /mnt/fixit
rmdir /mnt/fixit
-mike

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88&alloc_id065&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#3 lore raw
In reply to Rui Carvalho
Quoted 5 lines · Greg KH
Quoted 5 lines

When I disable the devfs support in the kernel, the startup hangs in the following line, after mounting the root (ext3 filesystem):

"Warning: unable to open an initial console"

The medium you boot from probably has an empty /dev directory. You should at least have a /dev/console node. A /dev/null node usually comes in handy too. If you're interrested in building a system from scratch you may want to look at LFS (Linux From Scratch: http://www.linuxfromscratch.org/).
Their testing branch uses udev for device creation. You may find valuable information over there. Keep in mind that it might contain LFS specific information.

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88&alloc_id065&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel