/[gentoo]/xml/htdocs/doc/en/udev-guide.xml
Gentoo

Diff of /xml/htdocs/doc/en/udev-guide.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.48 Revision 1.49
1<?xml version='1.0' encoding="UTF-8"?> 1<?xml version='1.0' encoding="UTF-8"?>
2<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> 2<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
3<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/udev-guide.xml,v 1.48 2008/09/07 01:41:53 nightmorph Exp $ --> 3<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/udev-guide.xml,v 1.49 2009/01/26 09:28:37 nightmorph Exp $ -->
4 4
5<guide link="/doc/en/udev-guide.xml"> 5<guide link="/doc/en/udev-guide.xml">
6<title>Gentoo udev Guide</title> 6<title>Gentoo udev Guide</title>
7 7
8<author title="Author"> 8<author title="Author">
21 21
22<!-- The content of this document is licensed under the CC-BY-SA license --> 22<!-- The content of this document is licensed under the CC-BY-SA license -->
23<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> 23<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
24<license/> 24<license/>
25 25
26<version>3</version> 26<version>4</version>
27<date>2008-09-06</date> 27<date>2009-01-26</date>
28 28
29<chapter> 29<chapter>
30<title>What is udev?</title> 30<title>What is udev?</title>
31<section> 31<section>
32<title>The /dev Directory</title> 32<title>The /dev Directory</title>
198<pre caption="Required kernel options"> 198<pre caption="Required kernel options">
199General setup ---&gt; 199General setup ---&gt;
200 [*] Support for hot-pluggable devices 200 [*] Support for hot-pluggable devices
201 201
202File systems ---&gt; 202File systems ---&gt;
203 [*] Inotify file change notification support
204 [*] Inotify support for userspace
203 Pseudo filesystems ---&gt; 205 Pseudo filesystems ---&gt;
204 [*] /proc file system support 206 [*] /proc file system support
205 [*] Virtual memory file system support (former shm fs) 207 [*] Virtual memory file system support (former shm fs)
206</pre> 208</pre>
207 209
369</p> 371</p>
370 372
371</body> 373</body>
372</section> 374</section>
373<section> 375<section>
374<title>Device renaming</title> 376<title>Block device renaming</title>
375<body> 377<body>
376 378
377<p> 379<p>
378Recent versions of udev (104 and up) along with newer kernel versions (2.6.19 380Recent versions of udev (104 and up) along with newer kernel versions (2.6.19
379and up) may change your disc device names, due to a change in the kernel's 381and up) may change your disc device names, due to a change in the kernel's
397</p> 399</p>
398 400
399</body> 401</body>
400</section> 402</section>
401<section> 403<section>
404<title>Network device renaming</title>
405<body>
406
407<p>
408Sometimes unplugging and replugging a network device (like a USB WiFi card) can
409rename your net device each time, incrementing the number by one.
410</p>
411
412<p>
413When this happens, you'll see it become <c>wlan0</c>, <c>wlan1</c>,
414<c>wlan2</c>, etc. This is because udev is adding additional rules to its rules
415file, instead of reloading the existing rules. Since udev watches its rules
416directory via inotify, you need inotify support in your kernel config:
417</p>
418
419<pre caption="Enabling inotify support in the kernel">
420File systems ---&gt;
421 [*] Inotify file change notification support
422 [*] Inotify support for userspace
423</pre>
424
425<p>
426Now udev will retain proper names for your network devices.
427</p>
428
429</body>
430</section>
431<section>
402<title>udev loads modules in an unpredictable order</title> 432<title>udev loads modules in an unpredictable order</title>
403<body> 433<body>
404 434
405<p> 435<p>
406Sometimes udev loads modules in an undesired, unpredictable, or seemingly random 436Sometimes udev loads modules in an undesired, unpredictable, or seemingly random

Legend:
Removed from v.1.48  
changed lines
  Added in v.1.49

  ViewVC Help
Powered by ViewVC 1.1.20