<?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/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	>

<channel>
	<title>Archives des démarrage - La programmation sur le web</title>
	<atom:link href="https://programmation.surleweb-france.fr/tag/demarrage/feed/" rel="self" type="application/rss+xml" />
	<link>https://programmation.surleweb-france.fr/tag/demarrage/</link>
	<description>La programmation gratuite pour tous</description>
	<lastBuildDate>Sat, 02 Apr 2022 14:46:33 +0000</lastBuildDate>
	<language>fr-FR</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2023/08/cropped-19518430-icone-de-programmation-pour-votre-site-web-mobile-presentation-et-conception-de-logo-gratuit-vectoriel.jpg?fit=32%2C32&#038;ssl=1</url>
	<title>Archives des démarrage - La programmation sur le web</title>
	<link>https://programmation.surleweb-france.fr/tag/demarrage/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">176210735</site>	<item>
		<title>Raspberry Pi 4, démarrer sur un disque externe</title>
		<link>https://programmation.surleweb-france.fr/raspberry-pi-4-demarrer-sur-un-disque-externe/</link>
					<comments>https://programmation.surleweb-france.fr/raspberry-pi-4-demarrer-sur-un-disque-externe/#respond</comments>
		
		<dc:creator><![CDATA[Zigomato]]></dc:creator>
		<pubDate>Sat, 02 Apr 2022 14:46:31 +0000</pubDate>
				<category><![CDATA[Raspberry]]></category>
		<category><![CDATA[boot]]></category>
		<category><![CDATA[démarrage]]></category>
		<category><![CDATA[eeprom]]></category>
		<category><![CDATA[raspberry]]></category>
		<category><![CDATA[SSD]]></category>
		<guid isPermaLink="false">https://programmation.surleweb-france.fr/?p=1343</guid>

					<description><![CDATA[<p>Avec un Raspberry Pi 4, le démarrage sur un disque dur externe permet de fiabiliser son installation dans le temps mais également accélérer son système, voici les différentes étapes à suivre pour y parvenir.</p>
<p class="continue-reading-button"> <a class="continue-reading-link" href="https://programmation.surleweb-france.fr/raspberry-pi-4-demarrer-sur-un-disque-externe/">Continuer la lecture<i class="crycon-right-dir"></i></a></p>
<p>L’article <a href="https://programmation.surleweb-france.fr/raspberry-pi-4-demarrer-sur-un-disque-externe/">Raspberry Pi 4, démarrer sur un disque externe</a> est apparu en premier sur <a href="https://programmation.surleweb-france.fr">La programmation sur le web</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Cet article est destiné aux utilisateurs de Raspberry Pi 4. Le Pi 3 intégrant directement cette fonction.</p>



<p>Dans la majorité des cas, les débutants commenceront à utiliser leur PI 4 avec la carte SD. Rapidement, il risque d&rsquo;y avoir des petits dysfonctionnement voire un arrêt complet de notre petite carte. La carte SD étant limitée en lecture et écriture, elle risque de provoquer des erreurs dans le système de fichier (très gourmand en écriture et en lecture) ou dans une base de données (si un tel système est installé).</p>



<p>Nous allons voir comment supprimer ces soucis en démarrant directement sur un disque externe (de préférence sur les port USB3). De plus, nous allons profiter de la vitesse de l&rsquo;USB3.</p>



<h2 class="wp-block-heading">Les prérequis</h2>



<p>Avant de commencer, nous allons avoir besoin de différents éléments :</p>



<ul class="wp-block-list"><li><strong>Balena Etcher</strong>, qui permettra de créer sa carte SD, tu peux le télécharger sur <a href="https://www.balena.io/etcher/" target="_blank" rel="noreferrer noopener">cette page</a>.</li><li>La dernière version de <strong>Raspberry Pi Os</strong>, disponible <a href="https://www.raspberrypi.com/software/operating-systems/#raspberry-pi-os-64-bit" target="_blank" rel="noreferrer noopener">ici</a>.</li><li>Un raspberry Pi 4 complet avec l&rsquo;alimentation, tu peux le trouver sur <a href="https://amzn.to/3K3LOks" target="_blank" rel="noreferrer noopener">Amazon</a>.</li><li>Un disque dur SSD, toujours disponible sur <a href="https://amzn.to/38mzFsV" target="_blank" rel="noreferrer noopener">Amazon</a>.</li><li>Un boitier externe pour le disque dur, encore sur <a href="https://amzn.to/3DyBnmj" target="_blank" rel="noreferrer noopener">Amazon</a>.</li></ul>



<h2 class="wp-block-heading">Préparation</h2>



<p>Avant toute chose, il faut mettre à jour l&rsquo;eeprom du Raspberry Pi. Celle-ci contient (entre autre), les instructions de démarrage.</p>



<p>Sur la carte SD et sur le disque dur externe, on va installer l&rsquo;os avec Balena :</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img fetchpriority="high" decoding="async" width="800" height="508" src="//i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/04/image.png" alt="" class="wp-image-1344" srcset="https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/04/image.png?w=800&amp;ssl=1 800w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/04/image.png?resize=300%2C191&amp;ssl=1 300w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/04/image.png?resize=768%2C488&amp;ssl=1 768w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/04/image.png?resize=150%2C95&amp;ssl=1 150w" sizes="(max-width: 800px) 100vw, 800px" /></figure></div>



<p>Crées un fichier sans extension dans la racine de ta carte SD nommé ssh (sans extension), cela va te permettre d&rsquo;activer la connexion ssh sur le Raspberry :</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img decoding="async" width="424" height="119" src="//i3.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/04/image-2.png" alt="" class="wp-image-1346" srcset="https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/04/image-2.png?w=424&amp;ssl=1 424w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/04/image-2.png?resize=300%2C84&amp;ssl=1 300w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/04/image-2.png?resize=150%2C42&amp;ssl=1 150w" sizes="(max-width: 424px) 100vw, 424px" /></figure></div>



<p>Une fois cela fait, mets le Raspberry pi hors tension (débranches-le).</p>



<p>Places la carte SD dans le Raspberry, branches le au secteur et attends quelques minutes.</p>



<p>Une fois qu&rsquo;il sera démarré, tu peux récupérer l&rsquo;adresse IP du Raspberry en utilisant la page de ta box internet. Dans mon cas (freebox pop), l&rsquo;adresse IP attribuée est 192.168.1.76 :</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img decoding="async" width="547" height="174" src="//i1.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/04/image-1.png" alt="" class="wp-image-1345" srcset="https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/04/image-1.png?w=547&amp;ssl=1 547w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/04/image-1.png?resize=300%2C95&amp;ssl=1 300w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/04/image-1.png?resize=150%2C48&amp;ssl=1 150w" sizes="(max-width: 547px) 100vw, 547px" /></figure></div>



<h2 class="wp-block-heading">Connexion en SSH</h2>



<p>Maintenant que tu as récupéré l&rsquo;adresse IP, il faut se connecter au Pi, tu peux utiliser <a href="https://www.putty.org/" target="_blank" rel="noreferrer noopener">Putty </a>si tu es sur windows :</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="450" height="501" src="//i1.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/04/image-3.png" alt="" class="wp-image-1347" srcset="https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/04/image-3.png?w=450&amp;ssl=1 450w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/04/image-3.png?resize=269%2C300&amp;ssl=1 269w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/04/image-3.png?resize=135%2C150&amp;ssl=1 135w" sizes="auto, (max-width: 450px) 100vw, 450px" /></figure></div>



<p>Tu valides l&rsquo;autorisation de connexion et tu saisies l&rsquo;identifiant et mot de passe par défaut : </p>



<ul class="wp-block-list"><li>identifiant : <em>pi</em></li><li>mot de passe : <em>raspberry</em></li></ul>



<p>Sur un système sous Ubuntu, en ligne de commande, tu tapes :</p>



<pre class="EnlighterJSRAW" data-enlighter-language="shell" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">ssh pi@192.168.1.76</pre>



<p>Tu devras également saisir le mot de passe (<em>raspberry</em>).</p>



<p>Quelque soit la méthode utilisée, la suite est identique.</p>



<h2 class="wp-block-heading">Mise à jour de l&rsquo;eeprom</h2>



<p>Il est temps de passer à la mise à jour de l&rsquo;eeprom.</p>



<p>Commençons par mettre à jour le système :</p>



<pre class="EnlighterJSRAW" data-enlighter-language="shell" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">sudo apt-get update</pre>



<p>Puis :</p>



<pre class="EnlighterJSRAW" data-enlighter-language="shell" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">sudo apt-get full-upgrade</pre>



<p>Et enfin, on redémarre :</p>



<pre class="EnlighterJSRAW" data-enlighter-language="shell" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">sudo reboot</pre>



<h2 class="wp-block-heading">Démarrage sur support USB</h2>



<p>Maintenant que tu as bien mis à jour ton Pi, il est temps de lui dire de démarrer sur le support USB.</p>



<p>Toujours en connexion ssh, dans la console, tapes :</p>



<pre class="EnlighterJSRAW" data-enlighter-language="shell" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">sudo raspi-config</pre>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="557" height="176" src="//i3.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/04/image-4.png" alt="" class="wp-image-1348" srcset="https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/04/image-4.png?w=557&amp;ssl=1 557w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/04/image-4.png?resize=300%2C95&amp;ssl=1 300w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/04/image-4.png?resize=150%2C47&amp;ssl=1 150w" sizes="auto, (max-width: 557px) 100vw, 557px" /></figure></div>



<p>Puis vas dans <strong>Advanced Options</strong> et <strong>Bootloader Version</strong> :</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="588" height="151" src="//i1.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/04/image-5.png" alt="" class="wp-image-1349" srcset="https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/04/image-5.png?w=588&amp;ssl=1 588w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/04/image-5.png?resize=300%2C77&amp;ssl=1 300w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/04/image-5.png?resize=150%2C39&amp;ssl=1 150w" sizes="auto, (max-width: 588px) 100vw, 588px" /></figure></div>



<p>Et choisis d&rsquo;utiliser la dernière version :</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="472" height="81" src="//i3.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/04/image-6.png" alt="" class="wp-image-1350" srcset="https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/04/image-6.png?w=472&amp;ssl=1 472w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/04/image-6.png?resize=300%2C51&amp;ssl=1 300w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/04/image-6.png?resize=150%2C26&amp;ssl=1 150w" sizes="auto, (max-width: 472px) 100vw, 472px" /></figure></div>



<p>Dans la fenêtre qui apparaît, choisis <strong>NO</strong>, <em><strong>surtout de ne fais pas de RESET</strong></em>.</p>



<p>Maintenant, retournes dans <strong>Advanced Options</strong> puis choisis <strong>Boot Order</strong> :</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="586" height="134" src="//i2.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/04/image-7.png" alt="" class="wp-image-1351" srcset="https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/04/image-7.png?w=586&amp;ssl=1 586w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/04/image-7.png?resize=300%2C69&amp;ssl=1 300w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/04/image-7.png?resize=150%2C34&amp;ssl=1 150w" sizes="auto, (max-width: 586px) 100vw, 586px" /></figure></div>



<p>Dans la nouvelle fenêtre, choisis <strong>USB Boot</strong> :</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="589" height="87" src="//i3.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/04/image-8.png" alt="" class="wp-image-1352" srcset="https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/04/image-8.png?w=589&amp;ssl=1 589w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/04/image-8.png?resize=300%2C44&amp;ssl=1 300w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/04/image-8.png?resize=150%2C22&amp;ssl=1 150w" sizes="auto, (max-width: 589px) 100vw, 589px" /></figure></div>



<p>Pour finir, tu choisis <strong>Finish</strong> :</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="538" height="274" src="//i1.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/04/image-9.png" alt="" class="wp-image-1353" srcset="https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/04/image-9.png?w=538&amp;ssl=1 538w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/04/image-9.png?resize=300%2C153&amp;ssl=1 300w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2022/04/image-9.png?resize=150%2C76&amp;ssl=1 150w" sizes="auto, (max-width: 538px) 100vw, 538px" /></figure></div>



<p>Après ça, ta framboise redémarre tranquillement. Pour être sûr qu&rsquo;il a bien redémarrer, essayes de te reconnecter en ssh. Une fois fait, tu peux continuer.</p>



<h2 class="wp-block-heading">Finalisation</h2>



<p>Maintenant, tu peux débrancher ton Raspberry et retirer la carte SD.</p>



<p>Branches sur un port USB 3 (un des bleus), ton disque dur externe que tu as déjà créé plus tôt.</p>



<p>Rebranches et attends un peu.</p>



<p>A présent, tu peux te connecter en ssh sur ta nouvelle installation.</p>



<h2 class="wp-block-heading">Conclusion</h2>



<p>Il est rapide d&rsquo;installer son système sur ,un disque dur externe, tu vas pouvoir bénéficier de la rapidité de l&rsquo;USB 3 mais aussi ne plus avoir à subir la faible durée de vie des cartes S</p>
<p>L’article <a href="https://programmation.surleweb-france.fr/raspberry-pi-4-demarrer-sur-un-disque-externe/">Raspberry Pi 4, démarrer sur un disque externe</a> est apparu en premier sur <a href="https://programmation.surleweb-france.fr">La programmation sur le web</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://programmation.surleweb-france.fr/raspberry-pi-4-demarrer-sur-un-disque-externe/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1343</post-id>	</item>
	</channel>
</rss>
