<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://forum.ubuntu-fr.org/extern.php?action=feed&amp;tid=1172411&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Forum Ubuntu-fr.org / [Résolu] udev et adresse en /dev/sdxy]]></title>
		<link>http://forum.ubuntu-fr.org/viewtopic.php?id=1172411</link>
		<description><![CDATA[Les sujets les plus récents dans [Résolu] udev et adresse en /dev/sdxy.]]></description>
		<lastBuildDate>Thu, 24 Jan 2013 06:18:15 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu] udev et adresse en /dev/sdxy]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12323051#p12323051</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>Et alors changer dans sed le / par | rend l&#039;instruction nettement plus lisible et compréhensible</p></div></blockquote></div><p>En fait tu peux changer le &quot;/&quot; par n&#039;importe quel caractère ASCII :</p><div class="codebox"><pre><code>$ echo &quot;plop&quot; | sed &#039;saoaia&#039;
plip</code></pre></div><p>Attention : cela ne marche pas partout, seulement avec sed en ligne de commande - par exemple ça ne marche pas dans Vim.</p>]]></description>
			<author><![CDATA[dummy@example.com (tiramiseb)]]></author>
			<pubDate>Thu, 24 Jan 2013 06:18:15 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12323051#p12323051</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu] udev et adresse en /dev/sdxy]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12318421#p12318421</link>
			<description><![CDATA[<p>Excellent le coup du / final ... je cherchais en partant du n° final de partition !</p><p>Et alors changer dans sed le / par | rend l&#039;instruction nettement plus lisible et compréhensible <img src="http://forum.ubuntu-fr.org/img/smilies/cool.png" width="15" height="15" alt="cool" /></p><p>Encore un grand merci. Je continue sur de bonnes bases.</p><p>A+</p>]]></description>
			<author><![CDATA[dummy@example.com (BrunoL)]]></author>
			<pubDate>Wed, 23 Jan 2013 17:50:10 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12318421#p12318421</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu] udev et adresse en /dev/sdxy]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12313961#p12313961</link>
			<description><![CDATA[<p>Alors c&#039;est encore plus simple :</p><div class="codebox"><pre><code>udevadm trigger --verbose | grep &#039;&lt;CHEMIN DU DEVICE&gt;.*/block/sd./&#039; | sed &#039;s|.*block/sd./|/dev/|&#039;</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (tiramiseb)]]></author>
			<pubDate>Wed, 23 Jan 2013 12:54:55 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12313961#p12313961</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu] udev et adresse en /dev/sdxy]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12313891#p12313891</link>
			<description><![CDATA[<p>Une légére différence subsiste. tiramiseb comment modifer ton instruction pour que ne sorte pas le device ne correspondant pas à une partition ?<br />Ton instruction :</p><div class="codebox"><pre><code>$ udevadm trigger --verbose | grep &#039;/sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0.*/block/sd&#039; | sed &#039;s|.*block/|/dev/|;s|/dev/sd./|/dev/|&#039;
/dev/sda    &lt;      &lt;    &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;
/dev/sda1
[...]
/dev/sda5</code></pre></div><p>Actuellement :</p><div class="codebox"><pre><code>udevadm trigger --verbose |grep -e /sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0.*/block/|sed -e &quot;s/.*block\/sd.\//\/dev\//&quot;|grep dev\/
/dev/sda1
[...]
/dev/sda5</code></pre></div><p>Merci.</p>]]></description>
			<author><![CDATA[dummy@example.com (BrunoL)]]></author>
			<pubDate>Wed, 23 Jan 2013 12:52:03 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12313891#p12313891</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu] udev et adresse en /dev/sdxy]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12313071#p12313071</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>Je vais essayer de comprendre le montage grep|sed</p></div></blockquote></div><p>Si tu trouves pas tout seul, je peux t&#039;expliquer <img src="http://forum.ubuntu-fr.org/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (tiramiseb)]]></author>
			<pubDate>Wed, 23 Jan 2013 11:55:55 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12313071#p12313071</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu] udev et adresse en /dev/sdxy]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12312941#p12312941</link>
			<description><![CDATA[<p>Merci tiramiseb, un grep en moins c&#039;est effectivement plus simple.</p><p>Je vais essayer de comprendre le montage grep|sed</p><p>A+</p>]]></description>
			<author><![CDATA[dummy@example.com (BrunoL)]]></author>
			<pubDate>Wed, 23 Jan 2013 11:47:10 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12312941#p12312941</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu] udev et adresse en /dev/sdxy]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12306461#p12306461</link>
			<description><![CDATA[<p>On est bien d&#039;accord, tu veux obtenir le nom d&#039;un device correspondant à une clé USB (ou équivalent) à partir du chemin du device dans /sys ? Si oui, alors la commande suivante est un chouïa différente de ce que tu as montré (me semble plus simple à moi, mais chacun son ressenti) :</p><div class="codebox"><pre><code>udevadm trigger --verbose | grep &#039;&lt;CHEMIN DU DEVICE&gt;.*/block/sd&#039; | sed &#039;s|.*block/|/dev/|;s|/dev/sd./|/dev/|&#039;</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (tiramiseb)]]></author>
			<pubDate>Tue, 22 Jan 2013 19:27:08 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12306461#p12306461</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu] udev et adresse en /dev/sdxy]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12305471#p12305471</link>
			<description><![CDATA[<p>Pas forcément plus simple, mais différent <img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><div class="codebox"><pre><code>udisks --enumerate-device-files |grep &quot;/dev/sd&quot;</code></pre></div><p>Juste pour faire penser aux possibilités de udisk</p><p>Ou même :</p><div class="codebox"><pre><code>awk &#039;/sd/ {print &quot;/dev/&quot;$4}&#039; /proc/partitions </code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (cep)]]></author>
			<pubDate>Tue, 22 Jan 2013 18:13:09 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12305471#p12305471</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu] udev et adresse en /dev/sdxy]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12304971#p12304971</link>
			<description><![CDATA[<p>Merci à LINDIS pour sa réponse en privé que je publie au cas où cela intéresse quelqu&#039;un ... Si si c&#039;est possible <img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Donc avec un truc du genre &quot;/devices/pci0000:00/0000:00:1d.7/usb2/2-2&quot;<br />La formule magique suivante :</p><div class="codebox"><pre><code>echo -e &quot;`udevadm trigger --verbose |grep -e $5.*/block/|sed -e &quot;s/.*block\/sd.\//\/dev\//&quot;|grep dev\/`&quot; </code></pre></div><p>vous donne le devices /dev/sdxy de toutes les partitions contenu dans le support !</p><p>N&#039;en abusez pas <img src="http://forum.ubuntu-fr.org/img/smilies/wink.png" width="15" height="15" alt="wink" /><br />S&#039;il y a plus simple n&#039;hésitez pas, je suis sûr que LINDIS ne s&#039;en offusquera pas.</p><p>A+</p>]]></description>
			<author><![CDATA[dummy@example.com (BrunoL)]]></author>
			<pubDate>Tue, 22 Jan 2013 17:48:16 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12304971#p12304971</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu] udev et adresse en /dev/sdxy]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12266801#p12266801</link>
			<description><![CDATA[<p>Parce que &quot;grep block/sd.$&quot; ne retient pas que les disques ?<br />Si tu veux les partitions, tu peux faire &quot;grep block/sd..+$&quot; je pense</p>]]></description>
			<author><![CDATA[dummy@example.com (tiramiseb)]]></author>
			<pubDate>Sat, 19 Jan 2013 21:30:30 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12266801#p12266801</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu] udev et adresse en /dev/sdxy]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12266701#p12266701</link>
			<description><![CDATA[<p>C&#039;est effectivement là que j&#039;en suis. Je pensais qu&#039;il devait exister mieux.</p><p>Me reste plus qu&#039;à décortiquer pour ne retenir que les /dev/sdxy je vais passer par python parce qu&#039;en bash, je touche là mes limites <img src="http://forum.ubuntu-fr.org/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><p>Bye</p>]]></description>
			<author><![CDATA[dummy@example.com (BrunoL)]]></author>
			<pubDate>Sat, 19 Jan 2013 21:21:56 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12266701#p12266701</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu] udev et adresse en /dev/sdxy]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12265351#p12265351</link>
			<description><![CDATA[<div class="quotebox"><cite>BrunoL a écrit&#160;:</cite><blockquote><div><div class="codebox"><pre><code>$ udevadm trigger --verbose|grep /devices/pci0000:00/0000:00:1d.7/usb2/2-2</code></pre></div><p>semble montrer le contraire ... voir ligne block</p><p>J&#039;en déduis possible qu&#039;il existe un moyen d&#039;obtenir plus précisément l&#039;information. Au pire grep et boucle mais c&#039;est un peu lourd.</p></div></blockquote></div><p>Là comme ça je ne vois pas d&#039;autre possibilité qu&#039;un grep sur &quot;block/sd.$&quot; dans le retour de <em>udevadm trigger --verbose</em> :</p><div class="codebox"><pre><code>$ udevadm trigger --verbose | grep block/sd.$
/sys/devices/pci0000:00/0000:00:1f.2/ata1/host0/target0:0:0/0:0:0:0/block/sda</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (tiramiseb)]]></author>
			<pubDate>Sat, 19 Jan 2013 19:44:20 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12265351#p12265351</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu] udev et adresse en /dev/sdxy]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12263271#p12263271</link>
			<description><![CDATA[<p>Hey tiramiseb,<br />Réponse un peu tranchée <img src="http://forum.ubuntu-fr.org/img/smilies/hmm.png" width="15" height="15" alt="hmm" /></p><div class="codebox"><pre><code>$ udevadm trigger --verbose|grep /devices/pci0000:00/0000:00:1d.7/usb2/2-2</code></pre></div><p>semble montrer le contraire ... voir ligne block</p><p>J&#039;en déduis possible qu&#039;il existe un moyen d&#039;obtenir plus précisément l&#039;information. Au pire grep et boucle mais c&#039;est un peu lourd.</p><p>A+</p>]]></description>
			<author><![CDATA[dummy@example.com (BrunoL)]]></author>
			<pubDate>Sat, 19 Jan 2013 17:19:52 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12263271#p12263271</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu] udev et adresse en /dev/sdxy]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12262851#p12262851</link>
			<description><![CDATA[<p>les /dev/sdX sont numérotés dans l&#039;ordre dans lequel ils sont détectés et/ou branchés dans le système.</p><p>Il n&#039;y a absolument aucun lien logique entre les /sys/devices/XXXXX et /dev/sdX.</p>]]></description>
			<author><![CDATA[dummy@example.com (tiramiseb)]]></author>
			<pubDate>Sat, 19 Jan 2013 16:54:00 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12262851#p12262851</guid>
		</item>
		<item>
			<title><![CDATA[[Résolu] udev et adresse en /dev/sdxy]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12261531#p12261531</link>
			<description><![CDATA[<p>Bonjour,</p><p>Je récupère d&#039;une règle udev le répertoire &quot;/devices/pci0000:00/0000:00:1d.7/usb2/2-1&quot; ainsi que le device &quot;26&quot; et le bus &quot;2&quot; d&#039;un support externe lors de son branchement.</p><p>Comment faire pour transformer ces caractéristiques en /dev/sdxy ?<br />J&#039;ai numéroté la règle en 60.</p><p>Nota : je ne tiens pas à forcer une adresse fixe.</p><p>Merci.</p>]]></description>
			<author><![CDATA[dummy@example.com (BrunoL)]]></author>
			<pubDate>Sat, 19 Jan 2013 15:19:33 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12261531#p12261531</guid>
		</item>
	</channel>
</rss>
