<?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>boot | Learn C Games Programming Blog</title>
	<atom:link href="https://learncgames.com/tag/boot/feed/" rel="self" type="application/rss+xml" />
	<link>https://learncgames.com</link>
	<description>A blog about C, programming games and my ebook(s).</description>
	<lastBuildDate>Thu, 07 May 2020 18:57:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://learncgames.com/wp-content/uploads/2020/03/cropped-favicon-32x32.png</url>
	<title>boot | Learn C Games Programming Blog</title>
	<link>https://learncgames.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">181446779</site>	<item>
		<title>Fixing an unbootable Raspberry Pi</title>
		<link>https://learncgames.com/fixing-an-unbootable-raspberry-pi/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=fixing-an-unbootable-raspberry-pi</link>
		
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Mon, 18 May 2020 23:00:23 +0000</pubDate>
				<category><![CDATA[raspberry-pi]]></category>
		<category><![CDATA[Techniques]]></category>
		<category><![CDATA[boot]]></category>
		<category><![CDATA[raspbian]]></category>
		<guid isPermaLink="false">https://learncgames.com/?p=636</guid>

					<description><![CDATA[<p>Well to be fair, it was me that made it unbootable. I&#8217;d been reading this Wiki page on configuring the Pi. I&#8217;d told it to give the GPU almost a GB of RAM. The Pi is a 4 GB Pi 4B.  I did it last night and so this morning, I found it not working [&#8230;]</p>
The post <a href="https://learncgames.com/fixing-an-unbootable-raspberry-pi/">Fixing an unbootable Raspberry Pi</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></description>
										<content:encoded><![CDATA[<div class='__iawmlf-post-loop-links' style='display:none;' data-iawmlf-post-links='[{&quot;id&quot;:559,&quot;href&quot;:&quot;https:\/\/pixabay.com\/users\/BenjaminNelan-268798\/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=1719218&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20251010065837\/https:\/\/pixabay.com\/users\/benjaminnelan-268798\/?utm_source=link-attribution&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 16:07:51&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-09 17:00:23&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-12 22:35:49&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-17 02:13:11&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-26 08:26:38&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-01 15:07:29&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-06 04:00:27&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-11 15:32:45&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-17 11:47:16&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-24 15:45:53&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-30 19:12:33&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-04 03:02:35&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-07 07:19:48&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-12 04:23:18&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-17 05:32:10&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-20 13:11:15&quot;,&quot;http_code&quot;:403}],&quot;broken&quot;:true,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-20 13:11:15&quot;,&quot;http_code&quot;:403},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:560,&quot;href&quot;:&quot;https:\/\/pixabay.com\/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=1719218&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20260205102120\/https:\/\/pixabay.com\/?utm_source=link-attribution&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 16:07:53&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-09 17:00:23&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-17 02:13:11&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-26 08:26:38&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-01 15:07:29&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-06 04:00:27&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-11 15:32:45&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-17 11:47:16&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-24 15:45:53&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-30 19:12:33&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-04 03:02:35&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-07 07:19:49&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-12 04:23:19&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-17 05:32:09&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-20 13:11:13&quot;,&quot;http_code&quot;:403}],&quot;broken&quot;:true,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-20 13:11:13&quot;,&quot;http_code&quot;:403},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:723,&quot;href&quot;:&quot;https:\/\/elinux.org\/RPiconfig&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20260205214645\/https:\/\/www.elinux.org\/RPiconfig&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 17:54:41&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-10 04:40:46&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-18 16:22:28&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-26 09:54:22&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-01 15:07:30&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-07 14:14:00&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-13 01:22:00&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-18 16:39:50&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-12 21:22:09&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-16 08:43:24&quot;,&quot;http_code&quot;:200}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-16 08:43:24&quot;,&quot;http_code&quot;:200},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:724,&quot;href&quot;:&quot;https:\/\/www.switchdoc.com\/2016\/01\/tutorial-repairing-corrupted-sd-cards-for-the-raspberry-pi-on-mac&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20250828141719\/https:\/\/www.switchdoc.com\/2016\/01\/tutorial-repairing-corrupted-sd-cards-for-the-raspberry-pi-on-mac\/&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 17:54:44&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-18 16:22:23&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-03 05:46:05&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-07 14:13:57&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-13 01:21:58&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-18 16:39:51&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-12 21:22:10&quot;,&quot;http_code&quot;:503}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-12 21:22:10&quot;,&quot;http_code&quot;:503},&quot;process&quot;:&quot;done&quot;}]'></div>
<figure id="attachment_638" aria-describedby="caption-attachment-638" style="width: 300px" class="wp-caption alignleft"><img fetchpriority="high" decoding="async" class="size-medium wp-image-638" src="https://learncgames.com/wp-content/uploads/2020/05/raspberry-pi-1719218_640-300x175.jpg" alt="Raspberry-Pi" width="300" height="175" srcset="https://learncgames.com/wp-content/uploads/2020/05/raspberry-pi-1719218_640-300x175.jpg 300w, https://learncgames.com/wp-content/uploads/2020/05/raspberry-pi-1719218_640.jpg 640w" sizes="(max-width: 300px) 100vw, 300px" /><figcaption id="caption-attachment-638" class="wp-caption-text">Image by <a href="https://pixabay.com/users/BenjaminNelan-268798/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=1719218">Benjamin Nelan</a> from <a href="https://pixabay.com/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=1719218">Pixabay</a></figcaption></figure>
<p>Well to be fair, it was me that made it unbootable. I&#8217;d been reading <a title="Link to Raspi config Wiki" href="https://elinux.org/RPiconfig" target="_blank" rel="noopener noreferrer">this Wiki page</a> on configuring the Pi. I&#8217;d told it to give the GPU almost a GB of RAM. The Pi is a 4 GB Pi 4B.  I did it last night and so this morning, I found it not working at all well.</p>
<p>My first thoughts were I&#8217;d messed up the Operating system and so I took the SD card put it in a holder and booted up my old laptop which has Ubuntu 18.04 LTS on it. This page on <a title="Link to switchdoc.com website" href="https://www.switchdoc.com/2016/01/tutorial-repairing-corrupted-sd-cards-for-the-raspberry-pi-on-mac/" target="_blank" rel="noopener noreferrer">switchdoc</a> suggested I could do a repair with these commands.</p>
<p>First <em>lsblk</em> to view attached devices. There was a <strong>/dev/sdc2</strong> . There was also a <strong>/dev/sdc1</strong></p>
<p>Then</p>
<pre><code class="language-c" data-line="">sudo fsck -fy /dev/sdc1</code></pre>
<p>That gave information about the drive but not the disk. That took</p>
<pre><code class="language-c" data-line="">sudo fsck -fy /dev/sdc2</code></pre>
<p>That took a few seconds and listed information, but still my drive wouldn&#8217;t boot back in the Pi.</p>
<p>Then I remembered I&#8217;d changed the boot config.txt and it was back with the SD card in the laptop and rebooted that. It showed two devices on the desktop (no need to mount anything) and clicking boot gave me a directory listing of /boot. I edited config.txt and changed the GPU Mem value to 256MB.</p>
<p>That fixed it and my PI is now booting quite happily again. I am now going to make a backup copy! It wouldn&#8217;t the end of the world if I had made it permanently unbootable, I&#8217;d just burn the OS again. It&#8217;s just the time wasted and minor hassles copying files, downloading and reinstalling software. Best avoided if possible!</p>
<p>&nbsp;</p>
<p>&nbsp;</p>The post <a href="https://learncgames.com/fixing-an-unbootable-raspberry-pi/">Fixing an unbootable Raspberry Pi</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">636</post-id>	</item>
	</channel>
</rss>
