<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" ><channel><title>Debian or not to be ? 2.0 &#187; Mac OS X</title> <atom:link href="http://www.crashdump.fr/tag/mac-os-x/feed/" rel="self" type="application/rss+xml" /><link>http://www.crashdump.fr</link> <description>that is the question</description> <lastBuildDate>Mon, 23 Jan 2012 13:14:39 +0000</lastBuildDate> <language>fr</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=</generator> <item><title>Créer un RamDisk sous OS X</title><link>http://www.crashdump.fr/apple/creer-un-ramdisk-sous-os-x-757/</link> <comments>http://www.crashdump.fr/apple/creer-un-ramdisk-sous-os-x-757/#comments</comments> <pubDate>Mon, 21 Dec 2009 16:49:52 +0000</pubDate> <dc:creator>Crashdump</dc:creator> <category><![CDATA[Apple]]></category> <category><![CDATA[benchmark]]></category> <category><![CDATA[disque virtuel]]></category> <category><![CDATA[Mac OS X]]></category> <category><![CDATA[ramdisk]]></category><guid isPermaLink="false">https://www.crashdump.fr/?p=757</guid> <description><![CDATA[<p><img width="240" height="150" src="http://www.crashdump.fr/wp-content/uploads/2009/12/ramdisk.png" class="attachment-featured-image wp-post-image" alt="ramdisk" title="ramdisk" /></p><br />J&#8217;ai conscience ne pas vous révéler ici une astuce 0-day, je dirais même que c&#8217;est vieux comme le monde&#8230; si, si, c&#8217;était déjà possible sous OS9 avec vos 64Mb de Ram. Je vous re-sort directement cette astuce de mes vieux cartons, car aujourd&#8217;hui la mémoire vive est à un prix plus qu&#8217;abordable et que toute [...]]]></description> <content:encoded><![CDATA[<p><img width="240" height="150" src="http://www.crashdump.fr/wp-content/uploads/2009/12/ramdisk.png" class="attachment-featured-image wp-post-image" alt="ramdisk" title="ramdisk" /></p><br /><p><em>J&#8217;ai conscience ne pas vous révéler ici une astuce 0-day, je dirais même que c&#8217;est vieux comme le monde&#8230; si, si, c&#8217;était déjà possible sous OS9 avec vos 64Mb de Ram. Je vous re-sort directement cette astuce de mes vieux cartons, car aujourd&#8217;hui la mémoire vive est à un prix plus qu&#8217;abordable et que toute personne travaillant sur de gros fichiers: vidéos, dumps de toutes sortes, etc.. sait a quel point il est fatiguant d&#8217;attendre que le disque ai fini de gratter pour pouvoir travailler.</p><p>J&#8217;entends d&#8217;ici certain d&#8217;entre vous, dire &laquo;&nbsp;Mais #!$@, c&#8217;est quoi ce RamDisk ?&nbsp;&raquo; Et bien, comme son nom l&#8217;indique, il s&#8217;agit d&#8217;un disque dur virtuel travaillant directement sur la Mémoire vive de votre machine préférée&#8230; Oui, c&#8217;est sexy et très rapide !</em></p><p>Trêve de blabla, mettons en application et voyons ce que ça donne réellement. Ouvrez votre terminal page 1:</p><h2>Chapitre 1. Créer un RamDisk de 1GB.</h2><p>La commande dont nous aurons besoin pour créer ce disque se résume en une ligne:</p><div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ diskutil erasevolume HFS+ <span style="color: #ff0000;">&quot;ramdisk&quot;</span> <span style="color: #ff0000;">'hdiutil attach -nomount ram://2330860'</span><br /> Started erase on disk1<br /> Unmounting disk<br /> ErasingInitialized <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>rdisk1 <span style="color: #c20cb9; font-weight: bold;">as</span> a <span style="color: #000000;">1</span> GB HFS Plus volume<br /> Mounting disk<br /> Finished erase on disk1 ramdisk</div></td></tr></tbody></table></div><p>&laquo;&nbsp;Mais attend c&#8217;est quoi ce chiffre, à la fin, tu nous parlais de 1Go !?&nbsp;&raquo; En réalité les partitions/volumes/images (rayez la mention inutile) sont composées de bloc de 512 Bytes. Pour calculer ce nombre de bloc (ici, 2330860 blocs pour 1Go recherché) il suffit d&#8217;une simple multiplication/division:</p><div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000;">2330860</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000;">512</span> = 1.191.400.320. Soit <span style="color: #000000;">1</span> GB.</div></td></tr></tbody></table></div><p>Donc la formule à utiliser est:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp;NombreDeBlocs = (Taille du volume MB) * 2048</div></td></tr></tbody></table></div><p>Voilà, notre disque est monté sur le Bureau et est directement exploitable. Pour l&#8217;éjecter, il suffit &#8211; comme pour tous les volumes sur Os X &#8211; de le jeter à la corbeille.</p><p><strong>ATTENTION ! ATTENTION ! ATTENTION ! CECI N&#8217;EST PAS UN EXERCICE.</strong></p><p>S&#8217;agissant d&#8217;un volume virtuel en mémoire, une fois éjecté, toutes les donnés présente à l&#8217;intérieur a ce moment-là son purement et simplement PERDUES. Il vous faudra les sauvegarder sur un support physique avant de le démonter&#8230; De plus, si votre ordinateur plante (kernel panic..) ou est éteint (coupure électrique..) la sanction est la même. Je vous aurais prévenu !<br /> Il est possible (voir indispensable) de mettre en place un système de sauvegarde régulier (via cron, par exemple).. on ne va pas être idiot non plus :)</p><p><u>Petit rappel</u> &#8212; De nos jours, nous utilisons souvent les termes bit, byte, octet, etc. Pourtant, certaines personnes semblent confondre les unités et me semble qu&#8217;un petit point récapitulatif serait de bon augure.</p><p>Il existe trois unités utilisées dans le monde de l&#8217;électronique et de l&#8217;informatique &#8211; mais seulement deux unités en pratique. L&#8217;unité de base est le bit, toujours écrit en minuscule: « b ». Le bit est l&#8217;unité binaire de base des ordinateurs (ayant pour valeur soit 0, soit 1). Puis viens le byte, noté en majuscule: « B ». Un byte est formé de 8 bits « b ». En France,  le mot byte n&#8217;est pas utilisé et c&#8217;est l&#8217;octet « o » (en minuscule) qui est de mise (ndlr: théoriquement&#8230;). En simplifiant :  1 octet « o » = 1 byte « B » = 8 bits « b ».<br /> A noter qu&#8217;en anglais, il faut se méfier de la confusion possible entre bit (bit) et byte (octet):<br /> kb, Mb, Gb&#8230; signifient kilobit, mégabit, gigabit&#8230;tandis que que kB, MB, GB&#8230; signifient kilobyte, megabyte, gigabyte&#8230; Une erreur que l&#8217;on voit trop souvent !</p><h2>Chapitre 2. Utilisation de la mémoire&#8230;</h2><p>Voyons maintenant l&#8217;utilisation de la mémoire par le Ramdisk.</p><div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">utilisateur$ </span>vm_stat<br /> Mach Virtual Memory Statistics: <span style="color: #7a0874; font-weight: bold;">&#40;</span>page <span style="color: #c20cb9; font-weight: bold;">size</span> of <span style="color: #000000;">4096</span> bytes<span style="color: #7a0874; font-weight: bold;">&#41;</span><br /> Pages free: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">516790</span>.<br /> Pages active: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">106586</span>.<br /> ...<br /> <br /> <span style="color: #666666;">utilisateur$ </span>diskutil erasevolume HFS+ <span style="color: #ff0000;">&quot;ramdisk&quot;</span> <span style="color: #000000; font-weight: bold;">`</span>hdiutil attach <span style="color: #660033;">-nomount</span> ram:<span style="color: #000000; font-weight: bold;">//</span><span style="color: #000000;">2330860</span><span style="color: #000000; font-weight: bold;">`</span><br /> ... Mounting disk<br /> <br /> <span style="color: #666666;">utilisateur$ </span><span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span>tintin<span style="color: #000000; font-weight: bold;">/</span>Desktop<span style="color: #000000; font-weight: bold;">/</span>Mes_vacances.FRENCH.DVDRiP.XviD.avi <span style="color: #000000; font-weight: bold;">/</span>Volumes<span style="color: #000000; font-weight: bold;">/</span>ramdisk<span style="color: #000000; font-weight: bold;">/</span><br /> <br /> <span style="color: #666666;">utilisateur$ </span>vm_stat<br /> Mach Virtual Memory Statistics: <span style="color: #7a0874; font-weight: bold;">&#40;</span>page <span style="color: #c20cb9; font-weight: bold;">size</span> of <span style="color: #000000;">4096</span> bytes<span style="color: #7a0874; font-weight: bold;">&#41;</span><br /> Pages free: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">2713</span>.<br /> Pages active: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">293000</span>.<br /> ...</div></td></tr></tbody></table></div><p>On voit clairement que tout est directement chargé en mémoire, inutile d&#8217;en dire plus. Passons maintenant directement aux tests de débit.</p><h2>Chapitre 3. Tests de débit&#8230;</h2><p>Notre avons vu comment créer le disque, voyons maintenant ce que ça donne en terme de performance par rapport à un disque &laquo;&nbsp;classique&nbsp;&raquo; (en l&#8217;occurrence il s&#8217;agit du disque 5400tr/mn d&#8217;un MacBook, certes pas le plus performant du marché, mais suffisamment représentatif pour ce test):</p><h3>Test en ECRITURE sur le DISQUE PHYSIQUE</h3><div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">utilisateur$ </span><span style="color: #000000; font-weight: bold;">time</span> <span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">if</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>zero <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>Volumes<span style="color: #000000; font-weight: bold;">/</span>Macintosh\ HD<span style="color: #000000; font-weight: bold;">/</span>testfile <span style="color: #007800;">bs</span>=1024k <span style="color: #007800;">count</span>=<span style="color: #000000;">1024</span><br /> <span style="color: #000000;">1024</span>+<span style="color: #000000;">0</span> records <span style="color: #000000; font-weight: bold;">in</span><br /> <span style="color: #000000;">1024</span>+<span style="color: #000000;">0</span> records out<br /> <span style="color: #000000;">1073741824</span> bytes transferred <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000;">18.411572</span> secs <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">58.318</span> Mbytes<span style="color: #000000; font-weight: bold;">/</span>sec<span style="color: #7a0874; font-weight: bold;">&#41;</span><br /> <span style="color: #660033;">-----</span><br /> real 0m18.829s, user 0m0.004s, sys 0m1.304s</div></td></tr></tbody></table></div><h3>Test en ECRITURE sur le RAMDISK</h3><div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">utilisateur$ </span><span style="color: #000000; font-weight: bold;">time</span> <span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">if</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>zero <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>Volumes<span style="color: #000000; font-weight: bold;">/</span>ramdisk<span style="color: #000000; font-weight: bold;">/</span>testfile <span style="color: #007800;">bs</span>=1024k <span style="color: #007800;">count</span>=<span style="color: #000000;">1024</span><br /> <span style="color: #000000;">1024</span>+<span style="color: #000000;">0</span> records <span style="color: #000000; font-weight: bold;">in</span><br /> <span style="color: #000000;">1024</span>+<span style="color: #000000;">0</span> records out<br /> <span style="color: #000000;">1073741824</span> bytes transferred <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000;">2.880844</span> secs <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">372.717</span> Mbytes<span style="color: #000000; font-weight: bold;">/</span>sec<span style="color: #7a0874; font-weight: bold;">&#41;</span><br /> <span style="color: #660033;">-----</span><br /> real 0m2.907s, user 0m0.005s,sys 0m1.499s</div></td></tr></tbody></table></div><h3>Test en LECTURE sur le DISQUE PHYSIQUE</h3><div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">utilisateur$ </span><span style="color: #000000; font-weight: bold;">time</span> <span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null <span style="color: #007800;">if</span>=<span style="color: #000000; font-weight: bold;">/</span>Volumes<span style="color: #000000; font-weight: bold;">/</span>Macintosh\ HD<span style="color: #000000; font-weight: bold;">/</span>testfile <span style="color: #007800;">bs</span>=1024k<br /> <span style="color: #000000;">1024</span>+<span style="color: #000000;">0</span> records <span style="color: #000000; font-weight: bold;">in</span><br /> <span style="color: #000000;">1024</span>+<span style="color: #000000;">0</span> records out<br /> <span style="color: #000000;">1073741824</span> bytes transferred <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000;">13.821304</span> secs <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">77.687</span> Mbytes<span style="color: #000000; font-weight: bold;">/</span>sec<span style="color: #7a0874; font-weight: bold;">&#41;</span><br /> <span style="color: #660033;">-----</span><br /> real 0m13.861s, user 0m0.006s, sys 0m1.018s</div></td></tr></tbody></table></div><h3>Test en LECTURE sur le RAMDISK</h3><div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">utilisateur$ </span><span style="color: #000000; font-weight: bold;">time</span> <span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null <span style="color: #007800;">if</span>=<span style="color: #000000; font-weight: bold;">/</span>Volumes<span style="color: #000000; font-weight: bold;">/</span>ramdisk<span style="color: #000000; font-weight: bold;">/</span>testfile <span style="color: #007800;">bs</span>=1024k<br /> <span style="color: #000000;">1024</span>+<span style="color: #000000;">0</span> records <span style="color: #000000; font-weight: bold;">in</span><br /> <span style="color: #000000;">1024</span>+<span style="color: #000000;">0</span> records out<br /> <span style="color: #000000;">1073741824</span> bytes transferred <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000;">1.812593</span> secs <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">592.378</span> Mbytes<span style="color: #000000; font-weight: bold;">/</span>sec<span style="color: #7a0874; font-weight: bold;">&#41;</span><br /> <span style="color: #660033;">-----</span><br /> real 0m1.829s, user 0m0.005s, sys 0m1.176s</div></td></tr></tbody></table></div><p><u>Pour un fichier de 1Go</u>:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">________| Disque Physique | Ramdisk _______<br /> Lecture : &nbsp;13.8s (77Mb/s) | 1.8s (592Mb/s)<br /> Ecriture: &nbsp;18.4s (58Mb/s) | 2.8s (372Mb/s)</div></td></tr></tbody></table></div><p>Joli tableau, n&#8217;est-ce pas ? &#8230; Bref, les performances parlent d&#8217;elles mêmes !</p><h2>Chapitre 4. Utilisation facile ?</h2><p>Je vous livre un applescript et un script bash, trouvé sur <a rel="nofollow" href="http://www.macosxhints.com">macosxhints.com</a> pour automatiser le biniou:</p><p>Applescript:</p><div class="codecolorer-container applescript default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br /></div></td><td><div class="applescript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #ff0033; font-weight: bold;">tell</span> <span style="color: #0066ff;">application</span> <span style="color: #009900;">&quot;Finder&quot;</span><br /> &nbsp; &nbsp; &nbsp;<span style="color: #0066ff;">activate</span><br /> &nbsp; &nbsp; &nbsp;<span style="color: #0066ff;">display dialog</span> <span style="color: #009900;">&quot;This script will create a RAM Disk on your desktop. <br /> &nbsp; &nbsp; &nbsp;How many megabytes would you like it to be?&quot;</span> <span style="color: #0066ff;">default answer</span> <span style="color: #009900;">&quot;&quot;</span> <span style="color: #0066ff;">buttons</span> <span style="color: #000000;">&#123;</span><span style="color: #009900;">&quot;OK&quot;</span>, <span style="color: #009900;">&quot;Cancel&quot;</span><span style="color: #000000;">&#125;</span> default button <span style="color: #000000;">1</span><br /> &nbsp; &nbsp; &nbsp;<span style="color: #ff0033; font-weight: bold;">set</span> diskSize <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #000000;">&#40;</span><span style="color: #0066ff;">text</span> returned <span style="color: #ff0033; font-weight: bold;">of</span> <span style="color: #ff0033;">the</span> <span style="color: #0066ff;">result</span><span style="color: #000000;">&#41;</span><br /> &nbsp; &nbsp; &nbsp;<span style="color: #ff0033; font-weight: bold;">set</span> diskSize <span style="color: #ff0033; font-weight: bold;">to</span> diskSize <span style="color: #000000;">*</span> <span style="color: #000000;">2048</span><br /> &nbsp; &nbsp; &nbsp;<span style="color: #0066ff;">do shell script</span> <span style="color: #009900;">&quot;hdid -nomount ram://&quot;</span> <span style="color: #000000;">&amp;</span> diskSize<br /> &nbsp; &nbsp; &nbsp;<span style="color: #ff0033; font-weight: bold;">set</span> dskImg <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #ff0033;">the</span> <span style="color: #0066ff;">result</span><br /> &nbsp; &nbsp; &nbsp;<br /> &nbsp; &nbsp; &nbsp;<span style="color: #ff0033; font-weight: bold;">set</span> prevTextDelims <span style="color: #ff0033; font-weight: bold;">to</span> AppleScript<span style="">'</span>s <span style="color: #0066ff;">text</span> <span style="color: #0066ff;">item</span> <span style="color: #0066ff;">delimiters</span><br /> &nbsp; &nbsp; &nbsp;<span style="color: #ff0033; font-weight: bold;">set</span> AppleScript<span style="">'</span>s <span style="color: #0066ff;">text</span> <span style="color: #0066ff;">item</span> <span style="color: #0066ff;">delimiters</span> <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #000000;">&#123;</span><span style="color: #009900;">&quot;/&quot;</span><span style="color: #000000;">&#125;</span><br /> &nbsp; &nbsp; &nbsp;<span style="color: #ff0033; font-weight: bold;">set</span> myDevDisk <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #ff0033;">the</span> <span style="color: #ff0033;">last</span> <span style="color: #0066ff;">text</span> <span style="color: #0066ff;">item</span> <span style="color: #ff0033; font-weight: bold;">of</span> dskImg<br /> &nbsp; &nbsp; &nbsp;log <span style="color: #0066ff;">result</span><br /> &nbsp; &nbsp; &nbsp;<span style="color: #ff0033; font-weight: bold;">set</span> myShellCmd <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #009900;">&quot;/sbin/newfs_hfs /dev/r&quot;</span> <span style="color: #000000;">&amp;</span> myDevDisk <span style="color: #ff0033;">as</span> <span style="color: #0066ff;">text</span><br /> &nbsp; &nbsp; &nbsp;<span style="color: #0066ff;">do shell script</span> myShellCmd<br /> &nbsp; &nbsp; &nbsp;<span style="color: #0066ff;">display dialog</span> <span style="color: #0066ff;">result</span><br /> &nbsp; &nbsp; &nbsp;<span style="color: #0066ff;">do shell script</span> <span style="color: #009900;">&quot;hdiutil mount /dev/&quot;</span> <span style="color: #000000;">&amp;</span> myDevDisk<br /> &nbsp; &nbsp; &nbsp;<span style="color: #ff0033; font-weight: bold;">set</span> AppleScript<span style="">'</span>s <span style="color: #0066ff;">text</span> <span style="color: #0066ff;">item</span> <span style="color: #0066ff;">delimiters</span> <span style="color: #ff0033; font-weight: bold;">to</span> prevTextDelims<br /> <span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">tell</span></div></td></tr></tbody></table></div><p>Bash:</p><div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#!/bin/sh</span><br /> <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$#</span> <span style="color: #660033;">-ne</span> <span style="color: #000000;">1</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span><br /> &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot; Usage: newRamDisk.sh &lt;size in MB&gt;&quot;</span><br /> &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Example: newRamDisk.sh 20&quot;</span><br /> &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">exit</span><br /> <span style="color: #000000; font-weight: bold;">fi</span><br /> <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$1</span> <span style="color: #660033;">-lt</span> <span style="color: #000000;">4</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span><br /> &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Error: Size must be greater than or equal to four megabytes&quot;</span><br /> &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">exit</span><br /> <span style="color: #000000; font-weight: bold;">fi</span><br /> <span style="color: #007800;">ramDiskSize</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${1}</span>*2048&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">bc</span><span style="color: #000000; font-weight: bold;">`</span><br /> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Allocating <span style="color: #007800;">$ramDiskSize</span> blocks&quot;</span><br /> <span style="color: #007800;">ramDiskPath</span>=<span style="color: #ff0000;">&quot;/dev/r&quot;</span><span style="color: #000000; font-weight: bold;">`</span>hdid <span style="color: #660033;">-nomount</span> ram:<span style="color: #000000; font-weight: bold;">//</span><span style="color: #800000;">${ramDiskSize}</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #660033;">-F</span> <span style="color: #000000; font-weight: bold;">/</span> <span style="color: #ff0000;">'{print $3}'</span><span style="color: #000000; font-weight: bold;">`</span><br /> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;Creating HFS Plus filesystem on <span style="color: #007800;">$ramDiskPath</span>&quot;</span><br /> newfs_hfs <span style="color: #660033;">-v</span> <span style="color: #ff0000;">&quot;Ram Disk&quot;</span> <span style="color: #007800;">$ramDiskPath</span><br /> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Mounting <span style="color: #007800;">$ramDiskPath</span>&quot;</span><br /> hdiutil <span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #007800;">$ramDiskPath</span></div></td></tr></tbody></table></div><p><strong>En résumé, à l&#8217;heure ou l&#8217;on peu se procurer un maximum de RAM pour un investissement réduit le Ramdisk peut être une solution intéressante pour ceux qui ont besoin de disques très &#8211; très &#8211; rapides. J&#8217;utilise régulièrement cette solution pour les espaces temporaires sur les serveur: /tmp sessions_php ou cache.</strong></p> ]]></content:encoded> <wfw:commentRss>http://www.crashdump.fr/apple/creer-un-ramdisk-sous-os-x-757/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>The Cheat 1.2.2 pour (Snow) Leopard</title><link>http://www.crashdump.fr/apple/the-cheat-122-pour-leopard-540/</link> <comments>http://www.crashdump.fr/apple/the-cheat-122-pour-leopard-540/#comments</comments> <pubDate>Thu, 16 Apr 2009 18:15:06 +0000</pubDate> <dc:creator>Crashdump</dc:creator> <category><![CDATA[Apple]]></category> <category><![CDATA[iHaxGamez]]></category> <category><![CDATA[Mac OS X]]></category> <category><![CDATA[memory editor]]></category> <category><![CDATA[source]]></category> <category><![CDATA[The cheat]]></category><guid isPermaLink="false">http://www.crashdump.fr/?p=540</guid> <description><![CDATA[<p><img width="240" height="150" src="http://www.crashdump.fr/wp-content/uploads/2009/04/thecheat.png" class="attachment-featured-image wp-post-image" alt="thecheat" title="thecheat" /></p><br />The Cheat permet de chercher/modifier des valeurs d&#8217;applications en mémoire sous mac os x. Elle a été écrite par Charles McGarvey (www.brokenzipper.com) en 2003 et la dernière version a été la 1.2.1 en 2005. Seulement voilà, depuis Leopard, elle ne fonctionnais plus ! Maintenant, il est aussi compatible avec Snow Leopard (10.6). Le développeur ayant eu la [...]]]></description> <content:encoded><![CDATA[<p><img width="240" height="150" src="http://www.crashdump.fr/wp-content/uploads/2009/04/thecheat.png" class="attachment-featured-image wp-post-image" alt="thecheat" title="thecheat" /></p><br /><p>The Cheat permet de chercher/modifier des valeurs d&#8217;applications en mémoire sous mac os x. Elle a été écrite par Charles McGarvey (<a rel="nofollow" href="http://www.brokenzipper.com">www.brokenzipper.com</a>) en 2003 et la dernière version a été la 1.2.1 en 2005. Seulement voilà, depuis Leopard, elle ne fonctionnais plus !</p><p><strong>Maintenant, il est aussi compatible avec Snow Leopard (10.6).</strong></p><p><a href="http://www.crashdump.fr/wp-content/uploads/2009/04/image-2.png"><img class="alignnone size-thumbnail wp-image-541" title="TheCheat" src="http://www.crashdump.fr/wp-content/uploads/2009/04/image-2-430x125.png" alt="TheCheat" width="430" height="125" /></a></p><p>Le développeur ayant eu la bonne idée de publier le code de son application dès qu&#8217;il en a abandonné le support, je me suis permis de reprendre un peu tout ça et de la rendre a nouveau compatible avec nôtre système préféré: Je vous livre là une version 1.2.2. a nouveau fonctionnelle.</p><p><a rel="nofollow" href="/?download=TheCheat1.2.2">The Cheat 1.2.2 (Intel/PPC)</a>, 661K, 2723 téléchargements.<br /> <a rel="nofollow" href="/?download=TheCheat1.2.2-Source">Le code source est disponible ici</a>, 4.8M, 729 téléchargements.</p><p><em>Si vous avez le moindre problème (crash, impossible d&#8217;accéder aux valeurs,&#8230;) postez un commentaire ici en expliquant ce qu&#8217;il se passe, j&#8217;essayerais de la corriger&#8230; Sinon vous pouvez aussi me laisser un petit message de remerciement si vous trouvez mon travail utile.. ça fait toujours plaisir ;)</em></p><p>&#8212;&#8212;&#8212;&#8212;&#8211; <em>English version below</em> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p><p>The Cheat allows you to search and edit values of applications in memory with Mac OS X. It was written by Charles McGarvey (<a rel="nofollow" href="http://www.brokenzipper.com">www.brokenzipper.com</a>) in 2003 and the latest version was 1.2.1 in 2005. But since Leopard, it dont work!</p><p>The developer who had the good sense to publish the code of his application as soon as it abandoned the support, so I changed the code a bit to make it compatible with new versions of OS X. This is I version 1.2.2.</p><p>If you have any problem (crash, unable to access the values ,&#8230;) post a comment here explaining what&#8217;s happening, I will try to correct it&#8230; You can also leave me a thanks message if you find my work useful !</p><p>And sorry for my poor english&#8230; ;)</p> ]]></content:encoded> <wfw:commentRss>http://www.crashdump.fr/apple/the-cheat-122-pour-leopard-540/feed/</wfw:commentRss> <slash:comments>42</slash:comments> </item> <item><title>Les options de boot sur Mac OS X détaillés</title><link>http://www.crashdump.fr/apple/les-options-de-boot-sur-mac-os-x-detailles-442/</link> <comments>http://www.crashdump.fr/apple/les-options-de-boot-sur-mac-os-x-detailles-442/#comments</comments> <pubDate>Mon, 17 Nov 2008 13:07:43 +0000</pubDate> <dc:creator>Crashdump</dc:creator> <category><![CDATA[Apple]]></category> <category><![CDATA[arguments]]></category> <category><![CDATA[boot]]></category> <category><![CDATA[démarrage]]></category> <category><![CDATA[kernel]]></category> <category><![CDATA[Mac OS X]]></category> <category><![CDATA[options]]></category> <category><![CDATA[prompt]]></category> <category><![CDATA[raccourcis claviers]]></category><guid isPermaLink="false">http://www.crashdump.fr/?p=442</guid> <description><![CDATA[<p><img width="240" height="150" src="http://www.crashdump.fr/wp-content/uploads/2008/11/mac_os_x_boot_screen.jpg" class="attachment-featured-image wp-post-image" alt="mac_os_x_boot_screen" title="mac_os_x_boot_screen" /></p><br />Comme tout système, Mac OS X à des petits secrets, ici je vais vous parler des arguments de boot. Par exemple comment démarrer en mode verbeux ou en &#171;&#160;safe mode&#160;&#187;. Des options au démarrage qui peuvent aider en cas de problème&#8230; Il existe deux manières pour changer de démarrage, une facile, par raccourcis clavier et [...]]]></description> <content:encoded><![CDATA[<p><img width="240" height="150" src="http://www.crashdump.fr/wp-content/uploads/2008/11/mac_os_x_boot_screen.jpg" class="attachment-featured-image wp-post-image" alt="mac_os_x_boot_screen" title="mac_os_x_boot_screen" /></p><br /><p> <em>Comme tout système, Mac OS X à des petits secrets, ici je vais vous parler des arguments de boot. Par exemple comment démarrer en mode verbeux ou en &laquo;&nbsp;safe mode&nbsp;&raquo;. Des options au démarrage qui peuvent aider en cas de problème&#8230;</em></p><p>Il existe deux manières pour changer  de démarrage, une facile, par raccourcis clavier et une plus avancée, via un prompt (comprenez par là: une invite en mode texte dans laquelle vous taperez vos commandes). Je vais aborder les deux, commençons par les raccourcis claviers:</p><h2><li>Raccourcis claviers</h2></li><p>J&#8217;ai glané ces informations informations sur &#8211; au moins &#8211; une trentaine de sites/forums en essayant de faire une liste la plus exhaustive possible, j&#8217;espère qu&#8217;elle vous sera utile ! Si l&#8217;une d&#8217;entre elle ne fonctionne pas c&#8217;est sûrement parce que votre machine est soit trop vielle ou trop récente, certaines n&#8217;ont pas été utilisées que sur certaines séries de mac.</p><p><strong>Forcer le mac à booter depuis un CD/DVD</strong>:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Touche C</div></td></tr></tbody></table></div><p><em>Ne fonctionne qu&#8217;avec les ROMs Apple et des disques bootables</em></p><p><strong>Forcer le premier disque comme disque de démarrage</strong>:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Touche D</div></td></tr></tbody></table></div><p><em>Fonctionne sur toutes les versions.</em></p><p><strong>Netboot</strong>:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Touche N</div></td></tr></tbody></table></div><p><em>Recherche un serveur BOOTP ou TFTP comme disque de démarrage</em></p><p><strong>Reset résolution</strong>:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Touche R</div></td></tr></tbody></table></div><p><em>Restaure la résolution par défaut sur les Powerbook, pratique si vous avez utilisé un écran externe avec une résolution plus élevée</em></p><p><strong>Target Mode (Firewire)</strong>:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Touche T</div></td></tr></tbody></table></div><p><em>Démarre la machine depuis un disque firewire externe. Pratique mais en voie de disparition depuis les MacBook Alu&#8230;</em></p><p><strong>Ejecter les disques</strong>:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Maintenir le Bouton de la souris</div></td></tr></tbody></table></div><p><em>Ejecte tous les médias amovibles</em></p><p><strong>Désactiver les extensions ou les programmes.</strong>:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Touche Shift</div></td></tr></tbody></table></div><p><em>Désactive toutes les extensions (Max OS 7-9) ou désactive les applications au démarrage (Mac Os X.1.3 ou plus récent)</em></p><p><strong>Choisir le disque de démarrage</strong>:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Touche Option</div></td></tr></tbody></table></div><p><em>Affiche une liste des médias bootable et vous permet d&#8217;en choisir un. Sur les système plus anciens, cette option démarre simplement sur le disque principal et lance le système sans aucune fenêtres du Finder ouverte</em></p><p><strong>Apple Extension Manager</strong>:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Touche espace</div></td></tr></tbody></table></div><p><em>Affiche l&#8217;Apple Extension Manager (<del>ou Casady &#038; Greene’s Conflict Catcher si ils sont installés</del>) au démarrage pour pouvoir modifier vos extensions, pratique en cas de conflits.</em></p><p><strong>Mode verbeux</strong>:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Touches command-V</div></td></tr></tbody></table></div><p><em>Affiche tous les messages console à l&#8217;écran.</em></p><p><strong>Single User</strong>:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Touche Command-S</div></td></tr></tbody></table></div><p><em>Réparez vôtre système, changez les mot de passes..</em></p><p><strong>Reconstruire le bureau</strong>:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Touches Command-Option</div></td></tr></tbody></table></div><p><em>Seulement Mac OS Classic (7-9)</em></p><p><strong>Re-initialiser la PRAM</strong>:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Touches Command-Option-P-R</div></td></tr></tbody></table></div><p><em>Remet la PRAM a zéro, la machine émet un son lorsque l&#8217;opération à été effectuée avec succès</em></p><p><strong>Effacer la NVRAM</strong>:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Touches Command-Option-N-V</div></td></tr></tbody></table></div><p><em>Efface la NVRAM (Non-Volatile RAM), Utilisé jusqu&#8217;au Power Mac.</em></p><p><strong>Accédez à l&#8217;Open Firmware</strong>:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Touches Command-Option-O-F</div></td></tr></tbody></table></div><p><em>Je publierai un article à propos de l&#8217;Open Firmware, très bientôt.</em></p><p><strong>Forcer le Boot sur un Media externe</strong>:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Touches Command-Option-Shift-Delete</div></td></tr></tbody></table></div><p><em>Force le Mac à démarrer sur un lecteur CD/DVD externe, très utile en cas d&#8217;utilisation d&#8217;un lecteur externe non-Apple</em></p><p><strong>Démarrer depuis un média SCSI avec un n° ID</strong>:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Touches Command-Option-Shift-Delete-#(ou #= un DEVICE ID SCSI)</div></td></tr></tbody></table></div><p><em>Si vous avez un disque SCSI dont vous connaissez l&#8217;ID, vous pouvez le sélectionner comme disque de démarrage.</em></p><p>Et maintenant, les plus anciens et les moins connus:<br /> <strong>Command-Option-I</strong>: <em>Force le mac à lire le disque de démarrage avec le format ISO-9000.</em><br /> <strong>Command</strong>: <em>Désactive la mémoire virtuelle.</em><br /> <strong>Command-Option-T-V</strong>: <em>Force les Quadra AV à utiliser la TV comme moniteur principal.</em><br /> <strong>Command-Option-X-O</strong>: <em>Force le Mac Classic à booter à partir de la ROM.</em><br /> <strong>Command-Option-A-V</strong>: <em>Force l&#8217;affichage sur un moniteur AV.</em></p><h2><li>Arguments au prompt</h2></li><p> Tout d&#8217;abord, pour y accéder vous devrez &#8211; au démarrage de votre machine &#8211; appuyer simultanément sur la touche Option + V. (V pour mode Verbeux). Vous avez maintenant accès au prompt de BootX.</p><p>Ce prompt &laquo;&nbsp;boot:&nbsp;&raquo; vous permet d&#8217;y spécifier des arguments de boot avancés. Si vous n&#8217;entrez rien, votre système démarra normalement. Il utilisera la configuration par défaut sur le disque dur principal, le &laquo;&nbsp;root device&nbsp;&raquo;. Je vais maintenant vous lister (toutes ?) les options que j&#8217;ai pu trouver:</p><p><em>Avant d&#8217;y entrer un argument, il est judicieux de vérifier quelles sont les options déjà spécifiée dans la nvram en tapant: &laquo;&nbsp;<strong>nvram boot-args</strong>&laquo;&nbsp;, ce qui vous listera les arguments utilisés par défaut (si vous ne les avez pas déjà modifiés).</em></p><li><h3>Kernel</h3></li><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">[device]&lt;kernel&gt; [arguments]</div></td></tr></tbody></table></div><p>device: rd=<Periphérique de boot au format BSD> (ex: rd=disk0s2)<br /> rd=*<Chemin 'IODeviceTree'> (ex: rd=*/PCI0@0/CHN0@0/@0:1)<br /> kernel: kernel name                (ex: &laquo;&nbsp;mach_kernel&nbsp;&raquo; &#8211; must be in “/” )</p><li><h3>Flags</h3></li><p><strong>Mode verbeux</strong>:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">-v</div></td></tr></tbody></table></div><p><em>Affiche tous les messages console durant le boot, pour vraiment savoir ce qui se passe lors en coulisses lors du démarrage de vôtre mac.</em></p><p><strong>Mode &#8216;single user&#8217;</strong>:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">-s</div></td></tr></tbody></table></div><p><em>Très utile pour régler un problème par exemple la perte de vôtre mot de passe.</em></p><p><strong>Safe mode</strong>:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">-x</div></td></tr></tbody></table></div><p><em>Permet de forcer MacOS à exécuter un fsck -fy sur votre disque de démarrage, de ne charger que les .kext les plus vitaux (les extensions Mac OS X), de désactiver les éléments qui s&#8217;ouvrent automatiquement à l&#8217;ouverture de connexion et qui ne sont pas conçus par Apple. </em></p><p><strong>Ignorer le fichier configuration boot</strong></p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">-F</div></td></tr></tbody></table></div><p><strong>Mode graphique, résolution</strong>:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&quot;Graphics Mode&quot;=&quot;LargeurxHauteurxNbCouleurs&quot;</div></td></tr></tbody></table></div><p>ex: “1024×768&#215;32″, vous pouvez aussi spécifier une fréquence de rafraichissement après un @: “1280×1024&#215;32@60″</p><li><h3>Kernel flags</h3></li><p>Syntaxe:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">kernel flags</div></td></tr></tbody></table></div><p><em>ex:  mach_kernel debug=0×144 ou mach_kernel io=0xffffffff (défini dans IOKit/IOKitDebug.h)</em></p><li><h3>Exemple d&#8217;un boot complet</h3></li><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mach_kernel rd=disk0s1 -F -v &quot;Graphics Mode&quot;=&quot;1920×1200x32@60&quot;</div></td></tr></tbody></table></div><li><h3>Commandes complémentaires d&#8217;informations</h3></li><p><strong>Afficher des informations à propos de la mémoire du système</strong>:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">?memory</div></td></tr></tbody></table></div><p><strong>Afficher les modes vidéos disponibles sur la machine</strong>:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">?video</div></td></tr></tbody></table></div><li><h3>Autres</h3></li><p><strong>Utiliser un autre Boot.plist</strong></p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">config=&lt;file&gt;</div></td></tr></tbody></table></div><p><strong>Activer ou non l&#8217;ACPI</strong></p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">platform=ACPI|X86PC</div></td></tr></tbody></table></div><li><h3>Options de boot du com.apple.Boot.plist</h3></li><p><strong>Démarrer en mode graphique ou verbeux</strong>:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&quot;Boot Graphics&quot;=Yes|No</div></td></tr></tbody></table></div><p><strong>Invite &laquo;&nbsp;boot:&nbsp;&raquo; au démarrage</strong>:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&quot;Quiet Boot&quot;=Yes|No</div></td></tr></tbody></table></div><p><strong>Temps d&#8217;attente à l&#8217;invite boot: avant démarrage</strong>:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Timeout=8</div></td></tr></tbody></table></div> ]]></content:encoded> <wfw:commentRss>http://www.crashdump.fr/apple/les-options-de-boot-sur-mac-os-x-detailles-442/feed/</wfw:commentRss> <slash:comments>36</slash:comments> </item> </channel> </rss>
<!-- Served from: www.crashdump.fr @ 2012-02-04 20:23:08 by W3 Total Cache -->
