<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki2025.debian.org/index.php?action=history&amp;feed=atom&amp;title=Template%3AChooseADevice</id>
	<title>Template:ChooseADevice - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki2025.debian.org/index.php?action=history&amp;feed=atom&amp;title=Template%3AChooseADevice"/>
	<link rel="alternate" type="text/html" href="https://wiki2025.debian.org/index.php?title=Template:ChooseADevice&amp;action=history"/>
	<updated>2026-05-06T19:15:12Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki2025.debian.org/index.php?title=Template:ChooseADevice&amp;diff=1309&amp;oldid=prev</id>
		<title>AndrewSayers: s/MaybeBoolean/SanitiseBoolean/</title>
		<link rel="alternate" type="text/html" href="https://wiki2025.debian.org/index.php?title=Template:ChooseADevice&amp;diff=1309&amp;oldid=prev"/>
		<updated>2025-09-07T15:14:14Z</updated>

		<summary type="html">&lt;p&gt;s/MaybeBoolean/SanitiseBoolean/&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:14, 7 September 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&amp;lt;onlyinclude&amp;gt;{{#ifeq:{{&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;MaybeBoolean&lt;/del&gt;|{{{Header|1}}}}}|1|&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&amp;lt;onlyinclude&amp;gt;{{#ifeq:{{&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;SanitiseBoolean&lt;/ins&gt;|{{{Header|1}}}}}|1|&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Typing the wrong device name can destroy all information on your hard disk, so follow these instructions to select the right device name:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Typing the wrong device name can destroy all information on your hard disk, so follow these instructions to select the right device name:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{#ifeq:{{&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;MaybeBoolean&lt;/del&gt;|{{{Body|1}}}}}|1|{{#ifeq:{{&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;MaybeBoolean&lt;/del&gt;|{{{Script|1}}}}}|1|&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{#ifeq:{{&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;SanitiseBoolean&lt;/ins&gt;|{{{Body|1}}}}}|1|{{#ifeq:{{&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;SanitiseBoolean&lt;/ins&gt;|{{{Script|1}}}}}|1|&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Make sure your device is disconnected or turned off, then do:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Make sure your device is disconnected or turned off, then do:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l24&quot;&gt;Line 24:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 24:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{#ifeq:{{&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;MaybeBoolean&lt;/del&gt;|{{{Explanation|1}}}}}|1|&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{#ifeq:{{&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;SanitiseBoolean&lt;/ins&gt;|{{{Explanation|1}}}}}|1|&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If you did everything right, the &amp;lt;kbd&amp;gt;head&amp;lt;/kbd&amp;gt; command should only work when the device is plugged in.  You can now use &amp;lt;kbd&amp;gt;$TARGET_DEVICE&amp;lt;/kbd&amp;gt; instead of the name of your device in future commands.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If you did everything right, the &amp;lt;kbd&amp;gt;head&amp;lt;/kbd&amp;gt; command should only work when the device is plugged in.  You can now use &amp;lt;kbd&amp;gt;$TARGET_DEVICE&amp;lt;/kbd&amp;gt; instead of the name of your device in future commands.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{#ifeq:{{&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;MaybeBoolean&lt;/del&gt;|{{{Footer|1}}}}}|1|&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{#ifeq:{{&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;SanitiseBoolean&lt;/ins&gt;|{{{Footer|1}}}}}|1|&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The instructions below often refer to &amp;lt;kbd&amp;gt;$TARGET_DEVICE&amp;lt;/kbd&amp;gt;.  If you create a variable as described above, you can paste those exact instructions.  Otherwise, change &amp;lt;kbd&amp;gt;$TARGET_DEVICE&amp;lt;/kbd&amp;gt; to your actual device name.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The instructions below often refer to &amp;lt;kbd&amp;gt;$TARGET_DEVICE&amp;lt;/kbd&amp;gt;.  If you create a variable as described above, you can paste those exact instructions.  Otherwise, change &amp;lt;kbd&amp;gt;$TARGET_DEVICE&amp;lt;/kbd&amp;gt; to your actual device name.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}&amp;lt;/onlyinclude&amp;gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}&amp;lt;/onlyinclude&amp;gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key mediawiki-mediawiki-:diff:1.41:old-1304:rev-1309:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>AndrewSayers</name></author>
	</entry>
	<entry>
		<id>https://wiki2025.debian.org/index.php?title=Template:ChooseADevice&amp;diff=1304&amp;oldid=prev</id>
		<title>AndrewSayers: Created page with &quot;&lt;pre&gt;&lt;onlyinclude&gt;{{#ifeq:{{MaybeBoolean|{{{Header|1}}}}}|1| Typing the wrong device name can destroy all information on your hard disk, so follow these instructions to select the right device name:  }} {{#ifeq:{{MaybeBoolean|{{{Body|1}}}}}|1|{{#ifeq:{{MaybeBoolean|{{{Script|1}}}}}|1| &lt;syntaxhighlight lang=&quot;shell&quot;&gt; # Make sure your device is disconnected or turned off, then do: ls /dev/disk/by-id/* | grep -v -- &#039;-part[0-9]*$&#039; | tee /tmp/disks.txt  # Make sure your device...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki2025.debian.org/index.php?title=Template:ChooseADevice&amp;diff=1304&amp;oldid=prev"/>
		<updated>2025-09-06T21:54:55Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;pre&amp;gt;&amp;lt;onlyinclude&amp;gt;{{#ifeq:{{MaybeBoolean|{{{Header|1}}}}}|1| Typing the wrong device name can destroy all information on your hard disk, so follow these instructions to select the right device name:  }} {{#ifeq:{{MaybeBoolean|{{{Body|1}}}}}|1|{{#ifeq:{{MaybeBoolean|{{{Script|1}}}}}|1| &amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt; # Make sure your device is disconnected or turned off, then do: ls /dev/disk/by-id/* | grep -v -- &amp;#039;-part[0-9]*$&amp;#039; | tee /tmp/disks.txt  # Make sure your device...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&amp;lt;onlyinclude&amp;gt;{{#ifeq:{{MaybeBoolean|{{{Header|1}}}}}|1|&lt;br /&gt;
Typing the wrong device name can destroy all information on your hard disk, so follow these instructions to select the right device name:&lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
{{#ifeq:{{MaybeBoolean|{{{Body|1}}}}}|1|{{#ifeq:{{MaybeBoolean|{{{Script|1}}}}}|1|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
# Make sure your device is disconnected or turned off, then do:&lt;br /&gt;
ls /dev/disk/by-id/* | grep -v -- &amp;#039;-part[0-9]*$&amp;#039; | tee /tmp/disks.txt&lt;br /&gt;
&lt;br /&gt;
# Make sure your device is connected and powered up, then do:&lt;br /&gt;
ls /dev/disk/by-id/* | grep -v -- &amp;#039;-part[0-9]*$&amp;#039; | diff /tmp/disks.txt -&lt;br /&gt;
# You should see something like:&lt;br /&gt;
# 10a11&lt;br /&gt;
# &amp;gt; /dev/disk/by-id/&amp;lt;identifier-of-your-disk&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# Make a variable with the device from the previous command:&lt;br /&gt;
TARGET_DEVICE=/dev/disk/by-id/&amp;lt;identifier-of-your-disk&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# Check you typed it correctly by reading one byte from the disk:&lt;br /&gt;
sudo head -c1 &amp;quot;$TARGET_DEVICE&amp;quot; &amp;gt; /dev/null&lt;br /&gt;
# Disconnect your device, then try again:&lt;br /&gt;
sudo head -c1 &amp;quot;$TARGET_DEVICE&amp;quot; &amp;gt; /dev/null&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{#ifeq:{{MaybeBoolean|{{{Explanation|1}}}}}|1|&lt;br /&gt;
If you did everything right, the &amp;lt;kbd&amp;gt;head&amp;lt;/kbd&amp;gt; command should only work when the device is plugged in.  You can now use &amp;lt;kbd&amp;gt;$TARGET_DEVICE&amp;lt;/kbd&amp;gt; instead of the name of your device in future commands.&lt;br /&gt;
}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{#ifeq:{{MaybeBoolean|{{{Footer|1}}}}}|1|&lt;br /&gt;
The instructions below often refer to &amp;lt;kbd&amp;gt;$TARGET_DEVICE&amp;lt;/kbd&amp;gt;.  If you create a variable as described above, you can paste those exact instructions.  Otherwise, change &amp;lt;kbd&amp;gt;$TARGET_DEVICE&amp;lt;/kbd&amp;gt; to your actual device name.&lt;br /&gt;
}}&amp;lt;/onlyinclude&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&amp;lt;templatedata&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	&amp;quot;params&amp;quot;: {&lt;br /&gt;
		&amp;quot;Header&amp;quot;: {&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Whether to include the header section&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;no&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;boolean&amp;quot;,&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;yes&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;Body&amp;quot;: {&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Whether to include the body section&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;no&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;boolean&amp;quot;,&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;yes&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;Script&amp;quot;: {&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Whether to include the script subsection (top half of the body section)&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;no&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;boolean&amp;quot;,&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;yes&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;Explanation&amp;quot;: {&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Whether to include the explanation subsection (bottom half of the body section)&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;no&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;boolean&amp;quot;,&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;yes&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;Footer&amp;quot;: {&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Whether to include the footer section&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;no&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;boolean&amp;quot;,&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;yes&amp;quot;&lt;br /&gt;
		}&lt;br /&gt;
	},&lt;br /&gt;
	&amp;quot;description&amp;quot;: &amp;quot;A fairly safe procedure to select a disk, intended for use in HOWTO guides&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Pages sometimes need to ask the user to specify the filename for a physical device, e.g. to reformat that device.  Getting this wrong can corrupt the user&amp;#039;s hard disk, so this page provides a fairly safe procedure to select the disk.&lt;br /&gt;
&lt;br /&gt;
This template instructs the user to create a variable called &amp;lt;kbd&amp;gt;$TARGET_DEVICE&amp;lt;/kbd&amp;gt;.  If you change the rest of your page to say e.g. &amp;lt;kbd&amp;gt;some-command $TARGET_DEVICE&amp;lt;/kbd&amp;gt; instead of e.g. &amp;lt;kbd&amp;gt;some-command /path/to/your/device&amp;lt;/kbd&amp;gt;, readers will be able to directly copy/paste your instructions.&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>AndrewSayers</name></author>
	</entry>
</feed>