erlug
[Top] [All Lists]

Re: [Erlug] kernel 2.6.8.1 e Hotplug

To: erlug@xxxxxxxxxxxxxx
Subject: Re: [Erlug] kernel 2.6.8.1 e Hotplug
From: GNU/Mel <gnu.mel@xxxxxxxxx>
Date: Tue, 7 Sep 2004 15:28:37 +0200
> Usi udev o altre autosarche?
> 
> Fede

E' tutto come da default della Slackware.
Preciso che non so nulla di come funzioni questo aspetto del
pinguino.. Era sempre andato tutto senza il mio aiuto non ci ho mai
guardato prima. Su google non ho trovato soluzioni..
Effettivamente l'rc.hotplug richiama tutti gli rc.*, quindi anche
l'rc.udev, che e' questo:

[/etc/rc.d/rc.udev]
#! /bin/bash
# script to initialize /dev by using udev.
#
# Copyright (C) 2004 Greg Kroah-Hartman <greg@xxxxxxxxx>
# Released under the GPL v2 only.

. /etc/udev/udev.conf

# This is mostly for reference, as udevstart is usually used instead.
run_udev() {
  # handle block devices and their partitions
  for i in /sys/block/*; do
    # add each drive
    export DEVPATH=${i#/sys}
    /sbin/udev block
    # add each partition, on each device
    for j in $i/*; do
      if [ -f $j/dev ]; then
        export DEVPATH=${j#/sys}
        /sbin/udev block
      fi
    done
  done
  # all other device classes
  for i in /sys/class/*; do
    for j in $i/*; do
      if [ -f $j/dev ]; then
        export DEVPATH=${j#/sys}
        CLASS=`echo ${i#/sys} | cut --delimiter='/' --fields=3-`
        /sbin/udev $CLASS
      fi
    done
  done
  return 0
}

# If we see sysfs mounted and the kernel supports hotplug, then try to
start udev:
if [ -d /sys/block -a -r /proc/sys/kernel/hotplug ]; then
  echo "Initializing udev dynamic device directory."
  mount -n -t ramfs none $udev_root
  export ACTION=add
  export UDEV_NO_SLEEP=1
  # You can use the shell scripts above by calling run_udev or execute udevstart
  # which does the same thing, but much faster by not using shell.
  #  only comment out one of the following lines.
  #run_udev
  /sbin/udevstart
  . /etc/udev/scripts/make_extra_nodes.sh
fi
[EOF]

-------------
> > Con il kernel 2.6.8.1 non mi funziona l'hotplug dei dispositivi USB di
> > memorizzazione di massa (chiavette, hd).
> > Il mouse va ch'e' una meraviglia, ma l'hd va "a singhiozzo".
> > Cioeè dei giorni va e dei giorni no.
> >
> > "Special device /dev/sda1 does not exist"
> >
> > Cioò non ha molto senso, perchè accade?
> > La mia distro è Slackware 10.
> > Devo cambiare qualcosa nel rc.hotplug?
> >
> > Le ho provate tutte ma non va, e fare l'upgrade al 2.6.9rc non ha dato
> > miglioramenti.
> > Non ho voglia di fare un passo indietro, quindi volevo sistemare il
> > problema su questo kernel.
> >
> > Qualcuno può aiutarmi?

-- 
Unix IS user friendly,
it's only selective
about it's friend ^_^

gnu.mel@xxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>