Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
udev-079-r1 and baselayout-1.11.14-r5 broke my system
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
COMKEEN
n00b
n00b


Joined: 07 Nov 2003
Posts: 70

PostPosted: Mon Feb 20, 2006 11:25 am    Post subject: udev-079-r1 and baselayout-1.11.14-r5 broke my system Reply with quote

Hello there,

I wanted to update udev-070-r1 due to minor issues (nothing compared to what I'm facing now... *sigh*), so I did an "emerge udev". This didn't install udev-079-r1 only, but also pulled a new baselayout on my system (baselayout-1.11.14-r5). After an extensive "etc-update", I had nothing but problems with the new udev version (see https://forums.gentoo.org/viewtopic-t-429193-highlight-udev079r1.html, and lots of "wait_for_sysfs" errors similar to https://forums.gentoo.org/viewtopic-t-429504-highlight-waitforsysfs.html during the boot process), so I downgraded to udev-070-r1 again, using the same "50-udev.rules" file I used before and, well - it pretty much worked.

The only problem is, that my home directory which is on a separate SATA disk doesn't get mounted automatically anymore; I have to mount it by hand after the start-up. It seems that /dev/sda1 doesn't exist at the time the kernel wants to mount it. On the other hand, /dev/sda1 is available after the boot process is finished, because I can mount the partition with a simple "mount /home" command after the login.

What I thought:
Maybe it's the same problem as described here: https://forums.gentoo.org/viewtopic-t-429741-highlight-udev+dev+sda1+mount.html and https://forums.gentoo.org/viewtopic-t-423958-highlight-suddenly+dev+hda3.html. But, in contrast to the problem described under the second link, I *do* have all "/dev/hdx" devices, only /dev/sdx (in my case sda1) seems to be unavailable when the kernel wants to mount it.


What I recognized:
When udev start it says something like "using udevsend as hotplug agent" (does this make sense? I don't recall it literally, because it's at the very beginning of the boot process and doesn't show up in /var/log/boot.msg). I *think* that this wasn't there before I updated the first time.

What I could do:
Put "mount /home" in /etc/conf.d/local.start", but that's not the way things should be.

Here's some info about my system:

At first, the part of the boot log:

Code:

* Activating (possible) swap ...
  [ ok ]
 * Checking root filesystem ...
/dev/hda2: clean, 571167/4889248 files, 7494013/9767520 blocks
  [ ok ]
 * Remounting root filesystem read/write ...
  [ ok ]
 * Setting hostname to ares ...
  [ ok ]
 * Calculating module dependencies ...
  [ ok ]
 * Using /etc/modules.autoload.d/kernel-2.6 as config:

[...]

 * Autoloaded 18 module(s)
 * Setting up dm-crypt mappings ...
  [ ok ]
 * Checking all filesystems ...
/dev/hda1: clean, 40/26104 files, 19932/104391 blocks
  [ ok ]
 * Mounting local filesystems ...
mount: special device /dev/sda1 does not exist
 * Some local filesystem failed to mount
  [ !! ]
 * Mounting USB device filesystem (usbfs) ...
  [ ok ]
 * Activating (possibly) more swap ...
  [ ok ]
 * Setting up dm-crypt mappings ...
  [ ok ]
 * Setting system clock using the hardware clock [UTC] ...
  [ ok ]
 * Configuring kernel parameters ...
  [ ok ]
 * Updating environment ...
  [ ok ]
 * Cleaning /var/lock, /var/run ...
  [ ok ]
 * Cleaning /tmp directory ...
  [ ok ]
 * Coldplugging input devices ...
  [ ok ]
 * Coldplugging isapnp devices ...
[Log ends here]


Code:

$ uname -r
2.6.10-rc3


Code:

Portage 2.0.54 (default-linux/x86/2005.0, gcc-3.3.2, glibc-2.3.4.20040808-r1, 2.6.10-rc3 i686)
=================================================================
System uname: 2.6.10-rc3 i686 Intel(R) Pentium(R) 4 CPU 2.66GHz
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.3
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.14.90.0.7-r4
sys-devel/libtool:   1.4.3-r3, 1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=pentium4 -msse -msse2 -mmmx -mfpmath=sse -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-Os -march=pentium4 -msse -msse2 -mmmx -mfpmath=sse -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://gentoo.inode.at/source/ http://gentoo.inode.at/"
LC_ALL="de_DE.utf8"
LINGUAS="de el en"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib acpi alsa apache2 arts audiofile avi bash-completion berkdb bitmap-fonts bzip2 cdparanoia cdr crypt cups curl dga dio directfb divx4linux doc dvb dvd dvdr eds emboss encode esd exif expat fam fbcon ffmpeg firebird flac flatfile foomaticdb fortran ftp gd gdbm gif glut gpm gstreamer gtk gtk2 gtkhtml icq idn ieee1394 imagemagick imlib interbase ipv6 jack java joystick jpeg kde lcms libg++ libwww mad mikmod mime mmx mmx2 mng motif mp3 mpeg nas ncurses nls nvidia odbc offensive ogg oggvorbis opengl oscar oss pam pcre pdflib perl plotutils png ppds python qt quicktime readline recode scanner sdl slang spell sse sse2 ssl svg svga sysvipc tcpd tetex tidy tiff truetype truetype-fonts type1-fonts udev unicode usb v4l v4l2 videos vorbis wmf x86 xml xml2 xpm xv xvid zlib linguas_de linguas_el linguas_en userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LDFLAGS, MAKEOPTS



Part of /etc/udev/rules.d/50-udev.rules
Code:

# all block devices
SUBSYSTEM=="block", GROUP="disk"

# cdrom symlinks and other good cdrom naming
BUS=="ide",     KERNEL=="hd[a-z]", ACTION=="add", IMPORT="/sbin/cdrom_id --export $tempnode"
BUS=="scsi",    KERNEL="sr[0-9]*", ACTION=="add", IMPORT="/sbin/cdrom_id --export $tempnode"
BUS=="scsi",    KERNEL="scd[a-z]", ACTION=="add", IMPORT="/sbin/cdrom_id --export $tempnode"
ENV{ID_CDROM}=="?*",            SYMLINK+="cdrom%e", GROUP="cdrom"
ENV{ID_CDROM_CD_RW}=="?*",      SYMLINK+="cdrw%e"
ENV{ID_CDROM_DVD}=="?*",        SYMLINK+="dvd%e"
ENV{ID_CDROM_DVD_R}=="?*",      SYMLINK+="dvdrw%e"

# disk devices
KERNEL=="sd*",          NAME="%k", GROUP="disk"
KERNEL=="dasd*",        NAME="%k", GROUP="disk"
KERNEL=="ataraid*",     NAME="%k", GROUP="disk"



Code:

$ cat /etc/fstab
# /etc/fstab: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.14 2003/10/13 20:03:38 azarah Exp $
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail and tail freely.

# <fs>                  <mountpoint>    <type>          <opts>                  <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda1               /boot           ext2            noauto,noatime          1 1
/dev/hda2               /               ext3            noatime                 0 2
/dev/hda3               none            swap            sw                      0 0
/dev/hda4               /mnt/windows    vfat            noauto,user             0 0

# home-Disk
/dev/sda1               /home           xfs             noatime                 0 2

# Verschlüsselte Dateisysteme
/dev/mapper/sdg1        /mnt/crypto1    xfs             noauto,user,rw          0 3
/dev/mapper/sdg2        /mnt/crypto2    xfs             noauto,user,rw          0 3

# Wechselmedien
/dev/dvdrw      /mnt/dvdrecorder        iso9660         noauto,user,ro          0 0
/dev/dvd1       /mnt/dvd                iso9660         noauto,user,ro          0 0

/dev/floppy/0           /mnt/floppy     vfat            noauto,user             0 0

# Cardreader
/dev/usb/storage/backup/backup1 /mnt/backup     ext2            noauto,user     0 0

/dev/usb/storage/disc1/part1    /mnt/usbstick1  auto            noauto,user     0 0
/dev/usb/storage/disc2/part1    /mnt/usbstick2  auto            noauto,user     0 0
/dev/usb/storage/disc3/part1    /mnt/usbstick3  auto            noauto,user     0 0
/dev/usb/storage/disc4/part1    /mnt/usbstick4  auto            noauto,user     0 0

/dev/usb/storage/cardreader/sda1        /mnt/flashcard1 auto    noauto,user     0 0
/dev/usb/storage/cardreader/sdb1        /mnt/flashcard2 auto    noauto,user     0 0
/dev/usb/storage/cardreader/sdc1        /mnt/flashcard3 auto    noauto,user     0 0
/dev/usb/storage/cardreader/sdd1        /mnt/flashcard4 auto    noauto,user     0 0

# NOTE: The next line is critical for boot!
none                    /proc           proc            defaults                0 0

# USB Filesystem.
# none                  /proc/bus/usb   usbfs           defaults                0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:

none                    /dev/shm        tmpfs           defaults                0 0


Code:

$ ls /dev/.udevdb
block@fd0       block@ram4      block@sde             class@msr@msr0         class@sound@dsp2      class@sound@mixer     class@sound@pcmC1D2p
block@hda       block@ram5      block@sdf             class@sound@adsp       class@sound@hwC0D0    class@sound@mixer1    class@sound@pcmC2D0c
block@hda@hda1  block@ram6      block@sdf@sdf1        class@sound@adsp1      class@sound@hwC0D2    class@sound@mixer2    class@sound@pcmC2D1c
block@hda@hda2  block@ram7      class@graphics@fb0    class@sound@adsp2      class@sound@hwC1D0    class@sound@pcmC0D0c  class@sound@seq
block@hda@hda3  block@sda       class@input@event0    class@sound@audio      class@sound@hwC1D2    class@sound@pcmC0D0p  class@sound@sequencer
block@hda@hda4  block@sda@sda1  class@input@event1    class@sound@audio1     class@sound@midiC0D0  class@sound@pcmC0D1c  class@sound@sequencer2
block@hdc       block@sda@sda2  class@input@event2    class@sound@audio2     class@sound@midiC0D1  class@sound@pcmC0D2c  class@sound@timer
block@hdd       block@sdb       class@input@mice      class@sound@controlC0  class@sound@midiC0D2  class@sound@pcmC0D2p  class@video4linux@radio0
block@ram0      block@sdb@sdb1  class@input@mouse0    class@sound@controlC1  class@sound@midiC0D3  class@sound@pcmC1D0c  class@video4linux@vbi0
block@ram1      block@sdc       class@misc@microcode  class@sound@controlC2  class@sound@midiC1D0  class@sound@pcmC1D0p  class@video4linux@video0
block@ram2      block@sdc@sdc1  class@misc@psaux      class@sound@dsp        class@sound@midiC1D1  class@sound@pcmC1D1c  class@video4linux@video1
block@ram3      block@sdd       class@misc@rtc        class@sound@dsp1       class@sound@midiC1D2  class@sound@pcmC1D2c


Code:

$ file /dev/.udev
/dev/.udev: empty


PS: I didn't know if this subject fits the "Kernel & Hardware" forum, so if any moderator would be so kind and put this to the right place if it doesn't fit here as well?
Back to top
View user's profile Send private message
_loki_
l33t
l33t


Joined: 18 Dec 2003
Posts: 680
Location: in the shell

PostPosted: Mon Feb 20, 2006 1:11 pm    Post subject: Reply with quote

Maybe setting
Code:

RC_DEVICE_TARBALL="yes"

in /etc/conf.d/rc
could help you..
Back to top
View user's profile Send private message
COMKEEN
n00b
n00b


Joined: 07 Nov 2003
Posts: 70

PostPosted: Mon Feb 20, 2006 1:26 pm    Post subject: Reply with quote

Hi loki,

RC_DEVICE_TARBALL was set to "yes" by default. I will set it to "no" reboot and reset it to "yes" again.
I also ask me what happens if I set RC_DEVICES="auto" to "udev". I hope it doesn't mess things up...
Back to top
View user's profile Send private message
_loki_
l33t
l33t


Joined: 18 Dec 2003
Posts: 680
Location: in the shell

PostPosted: Mon Feb 20, 2006 4:20 pm    Post subject: Reply with quote

switching- and back again shouldn't do a difference.. Setting RC_DEVICES="udev" shouldn't do it either as you are using udev already and "auto" should detect that..- anyway you can try without a harm. I didn't know that Tarball saving of devices is default now.. Have you tried to switch to a ~x86 udev? I'm running very stable (also on a baselayout-1.12.x) on that since ever..
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things 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