View previous topic :: View next topic |
Author |
Message |
Xploderman90 n00b
Joined: 27 Aug 2012 Posts: 57
|
Posted: Mon Jan 21, 2013 1:22 am Post subject: System frozen -- can't boot [UDEV] -- urgent |
|
|
Hi all.
After last system-update ( udev updated too ) i'm unable to boot up my system.
It's frozen during booting on line : "cannot start udev as udev-mount would not start".
Some lines above there is "CONFIG_DEVTMPFS=y is required in your kernel configuration".
The problem is i can't use rescue shell because mounts file system in read only mode and i can't do anything.
Please help me because i use this pc for job and today i have to do a heavy task, now i'm in panic!! (2:25 AM here) |
|
Back to top |
|
|
666threesixes666 Veteran
Joined: 31 May 2011 Posts: 1248 Location: 42.68n 85.41w
|
Posted: Mon Jan 21, 2013 1:29 am Post subject: |
|
|
take another system and get unetbootin.... install gentoo image or ubuntu...
chroot, recompile kernel with old config.... find devtmpfs line and change it from not set to =y |
|
Back to top |
|
|
Xploderman90 n00b
Joined: 27 Aug 2012 Posts: 57
|
Posted: Mon Jan 21, 2013 1:31 am Post subject: |
|
|
Ok, it was my last resort..i see there is nothing else to do!!
Thanks, now i'll try and i'll let you know!! |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
albright Advocate
Joined: 16 Nov 2003 Posts: 2588 Location: Near Toronto
|
Posted: Mon Jan 21, 2013 1:42 am Post subject: |
|
|
yes, I had the same problem and luckily had a system rescue
cd so I could chroot in and recompile kernel
but what I didn't see is the WARNING about this when
the udev upgrade happened.
Can someone please point out the eselect news or udev
build message that reminded users *before* upgrading
udev that a kernel recompile would be necessary if
the until now unnecessary kernel option was not selected?
Because I would really like to think this was MY fault
and not some other moron's _________________ .... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme) |
|
Back to top |
|
|
666threesixes666 Veteran
Joined: 31 May 2011 Posts: 1248 Location: 42.68n 85.41w
|
Posted: Mon Jan 21, 2013 1:50 am Post subject: |
|
|
ill expand on what i said, ubuntu would be easiest.... as it has tools like gedit and a gui to work with....
mkdir /mnt/gentoo
mount /dev/$YOURROOT /mnt/gentoo
mkdir /mnt/gentoo/boot
mount /dev/$YOURBOOT /mnt/gentoo/boot
mount -t proc none /mntgentoo/proc
mount --rbind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
now your ready to start fixing....
cd /usr/src/linux
make clean && make distclean && make mrproper
#copy old config to clean kernel sources
cp /boot/config-3.7.1 /usr/src/linux/.config
nano /usr/src/linux/.config
scroll down to #DEV_TMP_FS OR WHAT EVER
its line 934 for me
CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y
CONFIG_STANDALONE=y
CONFIG_PREVENT_FIRMWARE_BUILD=y
set to look like that....
then....
make menuconfig
make && make modules_install
then copy your new kernel to where your old one was.....
cp arch/x86_64/boot/bzImage /boot/kernel-3.7.1
run lilo.... or grub (see the wiki script i just posted yesterday) to get your boot loader to install the new kernel....
reboot
&& god speed man
update to add grub2 automated installs via "grub" command
https://wiki.gentoo.org/wiki/GRUB2_Quick_Start#Automating_Installs |
|
Back to top |
|
|
Xploderman90 n00b
Joined: 27 Aug 2012 Posts: 57
|
Posted: Mon Jan 21, 2013 2:10 am Post subject: |
|
|
Phew, problem solved!!
Edited .config and added the param requested, then rebuilded kernel.
Now i have another problem with mysql (it seems something strange during update) but i'll open another thread for that!
Albright, i remember that there was a warning in messages after emerge world.
Thanks to all! |
|
Back to top |
|
|
666threesixes666 Veteran
Joined: 31 May 2011 Posts: 1248 Location: 42.68n 85.41w
|
|
Back to top |
|
|
Xploderman90 n00b
Joined: 27 Aug 2012 Posts: 57
|
Posted: Mon Jan 21, 2013 2:24 am Post subject: |
|
|
Yeah, i was reading that thread!! Hehe you're anticipating me in all solutions!!now i'll get back to the last working version!! |
|
Back to top |
|
|
tryn Guru
Joined: 21 Dec 2002 Posts: 325 Location: 39.885° N. -88.913° W.
|
Posted: Mon Jan 21, 2013 2:37 am Post subject: |
|
|
I emerged udev today and this showed up at the end of the emerge.
* DEVTMPFS is not set in this kernel. Udev will not run.
* Please check to make sure these options are set correctly.
* Failure to do so may cause unexpected problems.
So I rebuilt the kernel before restarting the computer. |
|
Back to top |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Mon Jan 21, 2013 7:23 am Post subject: |
|
|
Editing kernel config manually is one of the worse ideas you could get.
It might work every now and then, but you'll get bitten by it eventually. |
|
Back to top |
|
|
modnaruved Apprentice
Joined: 21 Mar 2011 Posts: 160
|
Posted: Mon Jan 21, 2013 1:38 pm Post subject: |
|
|
Ive get these rakes too and success solve it with chrooting by gentoo liveDVD "EOWE 2012"
This is very strange that emerge system not show any warning messages about post-install steps and requirements. After emerging many packages important summary messages not show. This is not normal behaviour.
Why emerge cant detect automatically necessary options in kernel?
At this moment many "noob-users" choice gentoo as very good and friendly distro. Perhaps, these rakes is awaiting new members...
I understand that nobody can provide stable system - but from other side some parts of gentoo system needs to be some improving.
Many beginnings from "noob" level but human factor is forever. More tests before stabilization is quite.
my make.conf options:
PORTAGE_ELOG_SYSTEM="save"
PORTAGE_ELOG_CLASSES="save_summary:log,warn,error,qa echo"
this is correct for display all warnings and post-install messages after emerge many packages? |
|
Back to top |
|
|
BasketCase n00b
Joined: 02 Sep 2003 Posts: 67 Location: Orlando, FL
|
Posted: Mon Jan 21, 2013 8:59 pm Post subject: |
|
|
I had a similar issue when switching to devtmpfs. I am going to post it in here because this is the thread I found when I searched and because I have the answer....
I got some cryptic messages about device not found, /dev/tty* not being a character device, and urandom failing to start then the system just hung during bootup.
Turns out the problem was that I had defined /dev in /etc/fstab as a tmpfs so that I could restrain the size of it with the size= mount option. If you have such an entry in /etc/fstab it must be either removed or converted to devtmpfs. |
|
Back to top |
|
|
Aiken Apprentice
Joined: 22 Jan 2003 Posts: 239 Location: Toowoomba/Australia
|
Posted: Mon Jan 21, 2013 11:05 pm Post subject: |
|
|
At least the fix for me was easy enough. Add init=/bin/bash to the kernel line in grub, mount / rw then recompile the kernel. The message had long scrolled off the screen and I would have expected if there was an update that would stop the computer from booting to either refuse to install or have a warning that a person could not miss.
What I don't get is with a populated /dev from when building the initial system image why the computer could not continue booting. Even without udev and devtmpfs my /dev already had all nodes needed to boot the computer normally. _________________ Beware the grue. |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Mon Jan 21, 2013 11:18 pm Post subject: |
|
|
Aiken wrote: | At least the fix for me was easy enough. Add init=/bin/bash to the kernel line in grub, mount / rw then recompile the kernel. |
Nah, too easy, look at this! (You gotta learn how to do stuff the hard way, borking the config by editing it by hand is a good idea, too.)
666threesixes666 wrote: | ill expand on what i said, ubuntu would be easiest.... as it has tools like gedit and a gui to work with....
mkdir /mnt/gentoo
mount /dev/$YOURROOT /mnt/gentoo
mkdir /mnt/gentoo/boot
mount /dev/$YOURBOOT /mnt/gentoo/boot
mount -t proc none /mntgentoo/proc
mount --rbind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
now your ready to start fixing....
cd /usr/src/linux
make clean && make distclean && make mrproper
#copy old config to clean kernel sources
cp /boot/config-3.7.1 /usr/src/linux/.config
nano /usr/src/linux/.config
scroll down to #DEV_TMP_FS OR WHAT EVER
its line 934 for me
CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y
CONFIG_STANDALONE=y
CONFIG_PREVENT_FIRMWARE_BUILD=y
set to look like that....
then....
make menuconfig
make && make modules_install
then copy your new kernel to where your old one was.....
cp arch/x86_64/boot/bzImage /boot/kernel-3.7.1
run lilo.... or grub (see the wiki script i just posted yesterday) to get your boot loader to install the new kernel....
reboot
&& god speed man
update to add grub2 automated installs via "grub" command
https://wiki.gentoo.org/wiki/GRUB2_Quick_Start#Automating_Installs |
_________________ My Gentoo installation notes.
Please learn how to denote units correctly! |
|
Back to top |
|
|
Duncan Mac Leod Guru
Joined: 02 May 2004 Posts: 310 Location: Germany
|
Posted: Mon Jan 21, 2013 11:38 pm Post subject: |
|
|
BasketCase wrote: | Turns out the problem was that I had defined /dev in /etc/fstab as a tmpfs so that I could restrain the size of it with the size= mount option. If you have such an entry in /etc/fstab it must be either removed or converted to devtmpfs. |
What's the correct entry for /etc/fstab ??
I had this entry for a while:
udev /dev tmpfs size=10M,nr_inodes=4k 0 0
Unfortunately, the portage output says that I need to edit /etc/fstab - but it tells not WHAT to edit ??? |
|
Back to top |
|
|
666threesixes666 Veteran
Joined: 31 May 2011 Posts: 1248 Location: 42.68n 85.41w
|
Posted: Mon Jan 21, 2013 11:46 pm Post subject: |
|
|
my fstab does not have a /dev or /udev rule.....
/dev/sda1 /boot jfs noauto,noatime 1 2
/dev/sda5 / xfs noatime 0 1
/dev/sda6 none swap sw 0 0
/dev/sda7 /home xfs noatime 0 0
#/dev/cdrom /mnt/cdrom auto noauto, ro 0 0
#/dev/fd0 /mnt/floppy auto noauto 0 0
&&
some people use syslinux or lilo, thats a very specific solve for grub users.... |
|
Back to top |
|
|
SamuliSuominen Retired Dev
Joined: 30 Sep 2005 Posts: 2133 Location: Finland
|
Posted: Tue Jan 22, 2013 12:25 am Post subject: |
|
|
Duncan Mac Leod wrote: | BasketCase wrote: | Turns out the problem was that I had defined /dev in /etc/fstab as a tmpfs so that I could restrain the size of it with the size= mount option. If you have such an entry in /etc/fstab it must be either removed or converted to devtmpfs. |
What's the correct entry for /etc/fstab ??
I had this entry for a while:
udev /dev tmpfs size=10M,nr_inodes=4k 0 0
Unfortunately, the portage output says that I need to edit /etc/fstab - but it tells not WHAT to edit ??? |
It does now. The warning got adjusted in Portage. It can't be "tmpfs" as it must be "devtmpfs". Or you can simply delete whole line -- works fine here without any /dev line. |
|
Back to top |
|
|
Duncan Mac Leod Guru
Joined: 02 May 2004 Posts: 310 Location: Germany
|
Posted: Tue Jan 22, 2013 12:42 am Post subject: |
|
|
During boot it says that CONFIG_DEVTMPFS is not set, BUT IT IS !!! DEFINTELY!!
Using Kernel 3.3.8 gentoo-sources - what went wrong ?? |
|
Back to top |
|
|
SamuliSuominen Retired Dev
Joined: 30 Sep 2005 Posts: 2133 Location: Finland
|
Posted: Tue Jan 22, 2013 12:45 am Post subject: |
|
|
Duncan Mac Leod wrote: | During boot it says that CONFIG_DEVTMPFS is not set, BUT IT IS !!! DEFINTELY!!
Using Kernel 3.3.8 gentoo-sources - what went wrong ?? |
I guess you should run something like 'make clean' in the kernel source tree before building it after setting CONFIG_DEVTMPFS using 'make menuconfig'
Then you verify you are actually using the correct kernel, like using `ls -l` and checking the time in /boot and then grub's config
It's something simple you did wrong, if the boot is telling it's missing, it most certainly is missing |
|
Back to top |
|
|
Duncan Mac Leod Guru
Joined: 02 May 2004 Posts: 310 Location: Germany
|
|
Back to top |
|
|
Duncan Mac Leod Guru
Joined: 02 May 2004 Posts: 310 Location: Germany
|
Posted: Tue Jan 22, 2013 12:52 am Post subject: |
|
|
devfs, udev and udev-mount are in runlevel sysinit - is this correct ? |
|
Back to top |
|
|
666threesixes666 Veteran
Joined: 31 May 2011 Posts: 1248 Location: 42.68n 85.41w
|
Posted: Tue Jan 22, 2013 12:54 am Post subject: |
|
|
eth0 is missing because its /DEV/eth0..... your kernels not installed, or you changed your /boot/config and not your /usr/src/linux/.config or you edited your /usr/src/linux/.config and make clean && make depclean && make mrproper to remove the .config........ rebuild your kernel again.... if it fails, roll back your udev version using /etc/portage/package.accept_keywords file as described on the mysql problem link a few posts up i posted.....
your correct... the 3 are sysinit run levels
Last edited by 666threesixes666 on Tue Jan 22, 2013 12:56 am; edited 1 time in total |
|
Back to top |
|
|
SamuliSuominen Retired Dev
Joined: 30 Sep 2005 Posts: 2133 Location: Finland
|
Posted: Tue Jan 22, 2013 12:55 am Post subject: |
|
|
Duncan Mac Leod wrote: | devfs, udev and udev-mount are in runlevel sysinit - is this correct ? |
Yes, it's correct. |
|
Back to top |
|
|
SamuliSuominen Retired Dev
Joined: 30 Sep 2005 Posts: 2133 Location: Finland
|
Posted: Tue Jan 22, 2013 12:56 am Post subject: |
|
|
eth* would go away if you don't have the /etc/udev/rules.d/80-net-name-slot.rules, otherwise you propably just have wrongly configured kernel
and the CONFIG_DEVTMPFS check is reading /proc/filesystems of the running kernel, so it really can't be wrong
Last edited by SamuliSuominen on Tue Jan 22, 2013 1:00 am; edited 2 times in total |
|
Back to top |
|
|
|