<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://lug.mtu.edu/w/index.php?action=history&amp;feed=atom&amp;title=Storage_management</id>
	<title>Storage management - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://lug.mtu.edu/w/index.php?action=history&amp;feed=atom&amp;title=Storage_management"/>
	<link rel="alternate" type="text/html" href="https://lug.mtu.edu/w/index.php?title=Storage_management&amp;action=history"/>
	<updated>2026-04-30T00:57:58Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.17</generator>
	<entry>
		<id>https://lug.mtu.edu/w/index.php?title=Storage_management&amp;diff=7045&amp;oldid=prev</id>
		<title>imported&gt;Sjwhitak at 13:12, 20 April 2022</title>
		<link rel="alternate" type="text/html" href="https://lug.mtu.edu/w/index.php?title=Storage_management&amp;diff=7045&amp;oldid=prev"/>
		<updated>2022-04-20T13:12:16Z</updated>

		<summary type="html">&lt;p&gt;&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 13:12, 20 April 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 205:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 205:&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;Here&#039;s my computer&#039;s setup:&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;Here&#039;s my computer&#039;s setup:&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;&amp;lt;syntaxhighlight lang=&quot;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;fstab&lt;/del&gt;&quot;&amp;gt;&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;syntaxhighlight lang=&quot;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;text&lt;/ins&gt;&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;/dev/lvm/lv_root                          /     ext4 defaults         0 1 &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;/dev/lvm/lv_root                          /     ext4 defaults         0 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;/dev/lvm/lv_home                          /home ext4 defaults         0 2 &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;/dev/lvm/lv_home                          /home ext4 defaults         0 2 &lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>imported&gt;Sjwhitak</name></author>
	</entry>
	<entry>
		<id>https://lug.mtu.edu/w/index.php?title=Storage_management&amp;diff=7044&amp;oldid=prev</id>
		<title>imported&gt;Sjwhitak: /* Logical volume management (LVM) */</title>
		<link rel="alternate" type="text/html" href="https://lug.mtu.edu/w/index.php?title=Storage_management&amp;diff=7044&amp;oldid=prev"/>
		<updated>2022-04-20T13:10:23Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Logical volume management (LVM)&lt;/span&gt;&lt;/span&gt;&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 13:10, 20 April 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 115:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 115:&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;I&#039;d highly, highly recommend following along with [https://www.howtoforge.com/linux_lvm this tutorial] within an LVM. You will be very comfortable with all of these commands after this.&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;I&#039;d highly, highly recommend following along with [https://www.howtoforge.com/linux_lvm this tutorial] within an LVM. You will be very comfortable with all of these commands after this.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&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;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&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;{{Warning|You destroy all data when running these commands, so if you&#039;re doing this on your system just move everything off the drives before running these 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;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;=== Demo setup ===&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;=== Demo setup ===&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>imported&gt;Sjwhitak</name></author>
	</entry>
	<entry>
		<id>https://lug.mtu.edu/w/index.php?title=Storage_management&amp;diff=7043&amp;oldid=prev</id>
		<title>imported&gt;Sjwhitak: /* Demo setup */</title>
		<link rel="alternate" type="text/html" href="https://lug.mtu.edu/w/index.php?title=Storage_management&amp;diff=7043&amp;oldid=prev"/>
		<updated>2022-04-20T13:10:03Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Demo setup&lt;/span&gt;&lt;/span&gt;&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 13:10, 20 April 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 70:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 70:&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&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&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;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;{{Tip|I&#039;d recommend playing with this in [https://www.virtualbox.org/ VirtualBox] because it is very difficult to change these on your filesystem once you have data on it. In fact, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;you destroy all data when running these commands, so you&#039;d just move everything off the drives before doing this. It&#039;s a big pain.&lt;/del&gt;}}&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;{{Tip|I&#039;d recommend playing with this in [https://www.virtualbox.org/ VirtualBox] because it is very difficult to change these on your filesystem once you have data on it. In fact, }}&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&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;{{Warning|You destroy all data when running these commands, so if you&#039;re doing this on your system just move everything off the drives before running these 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;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;== Logical volume management (LVM) ==&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;== Logical volume management (LVM) ==&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>imported&gt;Sjwhitak</name></author>
	</entry>
	<entry>
		<id>https://lug.mtu.edu/w/index.php?title=Storage_management&amp;diff=7042&amp;oldid=prev</id>
		<title>imported&gt;Sjwhitak: /* Demo setup */</title>
		<link rel="alternate" type="text/html" href="https://lug.mtu.edu/w/index.php?title=Storage_management&amp;diff=7042&amp;oldid=prev"/>
		<updated>2022-04-20T13:09:03Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Demo setup&lt;/span&gt;&lt;/span&gt;&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 13:09, 20 April 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 62:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 62:&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;=== Demo setup ===&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;=== Demo setup ===&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;Follow [https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Disks#Partitioning_the_disk_with_GPT_for_UEFI this] setup to test. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;I&#039;d recommend playing with this in [https://www.virtualbox.org/ VirtualBox] because it is very difficult to change these on your filesystem.&lt;/del&gt;&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;Follow [https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Disks#Partitioning_the_disk_with_GPT_for_UEFI this] setup to test. &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=&quot;text&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=&quot;text&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;Device        Start      End  Sectors  Size Type&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;Device        Start      End  Sectors  Size Type&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 69:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 69:&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;/dev/sda3   2623488 19400703 16777216    8G Linux filesystem&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;/dev/sda3   2623488 19400703 16777216    8G Linux filesystem&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&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&amp;gt;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&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;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&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;{{Tip|I&#039;d recommend playing with this in [https://www.virtualbox.org/ VirtualBox] because it is very difficult to change these on your filesystem once you have data on it. In fact, you destroy all data when running these commands, so you&#039;d just move everything off the drives before doing this. It&#039;s a big pain.}}&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;== Logical volume management (LVM) ==&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;== Logical volume management (LVM) ==&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>imported&gt;Sjwhitak</name></author>
	</entry>
	<entry>
		<id>https://lug.mtu.edu/w/index.php?title=Storage_management&amp;diff=7041&amp;oldid=prev</id>
		<title>imported&gt;Sjwhitak: /* Mounting commands */</title>
		<link rel="alternate" type="text/html" href="https://lug.mtu.edu/w/index.php?title=Storage_management&amp;diff=7041&amp;oldid=prev"/>
		<updated>2022-04-20T13:07:26Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Mounting commands&lt;/span&gt;&lt;/span&gt;&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 13:07, 20 April 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 37:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 37:&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;{{RootCmd|umount /mnt}}&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;{{RootCmd|umount /mnt}}&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 plug in a USB and you want to access it, use &amp;lt;code&amp;gt;lsblk -f&amp;lt;/code&amp;gt;, then &amp;lt;code&amp;gt;mount /dev/sdXN /mnt&amp;lt;/code&amp;gt; or wherever you want the USB files. Then, &amp;lt;code&amp;gt;umount /mnt&amp;lt;/code&amp;gt; to safely remove.&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 plug in a USB and you want to access it, use &amp;lt;code&amp;gt;lsblk -f&amp;lt;/code&amp;gt;, then &amp;lt;code&amp;gt;mount /dev/sdXN /mnt&amp;lt;/code&amp;gt; or wherever you want the USB files. Then, &amp;lt;code&amp;gt;umount /mnt&amp;lt;/code&amp;gt; to safely remove.&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;{{Note|If you&#039;re testing this on [https://www.virtualbox.org/ VirtualBox], your virtual drives have no format, so just run &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;mkfs.ext4 /dev/sdX for every drive and you can mount them.}}&lt;/del&gt;&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;{{Note|If you&#039;re testing this on [https://www.virtualbox.org/ VirtualBox], your virtual drives have no format, so just run &lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&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;{{RootCmd|mkfs.ext4 /dev/sdX}} for every drive and you can mount them.}}&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;== Bare-metal drives ==&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;== Bare-metal drives ==&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>imported&gt;Sjwhitak</name></author>
	</entry>
	<entry>
		<id>https://lug.mtu.edu/w/index.php?title=Storage_management&amp;diff=7040&amp;oldid=prev</id>
		<title>imported&gt;Sjwhitak: .</title>
		<link rel="alternate" type="text/html" href="https://lug.mtu.edu/w/index.php?title=Storage_management&amp;diff=7040&amp;oldid=prev"/>
		<updated>2022-04-20T13:06:43Z</updated>

		<summary type="html">&lt;p&gt;.&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 13:06, 20 April 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 9:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 9:&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;to make the partition a swap file, then run&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;to make the partition a swap file, then run&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;{{RootCmd|swapon /dev/sda2}}&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;{{RootCmd|swapon /dev/sda2}}&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;to enable swap. Run top or htop to see your swap and memory usage.&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;to enable swap. Run &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;code&amp;gt;&lt;/ins&gt;top&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/code&amp;gt;&lt;/ins&gt; or &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;code&amp;gt;&lt;/ins&gt;htop&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/code&amp;gt;&lt;/ins&gt; to see your swap and memory usage.&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;== Looking at things ==&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;== Looking at things ==&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>imported&gt;Sjwhitak</name></author>
	</entry>
	<entry>
		<id>https://lug.mtu.edu/w/index.php?title=Storage_management&amp;diff=7039&amp;oldid=prev</id>
		<title>imported&gt;Sjwhitak: Copied from https://lug.mtu.edu/minutes/fall2021/meeting09.html</title>
		<link rel="alternate" type="text/html" href="https://lug.mtu.edu/w/index.php?title=Storage_management&amp;diff=7039&amp;oldid=prev"/>
		<updated>2022-04-20T13:04:24Z</updated>

		<summary type="html">&lt;p&gt;Copied from https://lug.mtu.edu/minutes/fall2021/meeting09.html&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
Save large files like code, binary files, movies, etc. The storage media are things like HDDs, SSDs, magnetic tape.&lt;br /&gt;
&lt;br /&gt;
Storage is not memory, where memory caches memory for quick access, things like any type of RAM: SRAM, SDRAM, VRAM, etc.&lt;br /&gt;
&lt;br /&gt;
Swap storage is fake memory that is actually storage, but pretends to be memory. You need a partition for this, and so you run&lt;br /&gt;
{{RootCmd|typemkswap /dev/sda2}} &lt;br /&gt;
to make the partition a swap file, then run&lt;br /&gt;
{{RootCmd|swapon /dev/sda2}}&lt;br /&gt;
to enable swap. Run top or htop to see your swap and memory usage.&lt;br /&gt;
&lt;br /&gt;
== Looking at things ==&lt;br /&gt;
* [https://linux.die.net/man/8/lsblk lsblk] - &amp;quot;list block devices&amp;quot;, shows partitions&lt;br /&gt;
** &amp;lt;code&amp;gt;lsblk -f&amp;lt;/code&amp;gt; gives same info as &amp;lt;code&amp;gt;blkid&amp;lt;/code&amp;gt;&lt;br /&gt;
* [https://linux.die.net/man/8/blkid blkid] - &amp;quot;block device ids&amp;quot;, shows storage UUIDs&lt;br /&gt;
* [https://linux.die.net/man/8/fdisk fdisk] - list all your storage media using &amp;lt;code&amp;gt;fdisk&amp;lt;/code&amp;gt;&lt;br /&gt;
* [https://linux.die.net/man/1/df df -h] - shows you the free space on each drive.&lt;br /&gt;
{{Tip|When trying to save space, use &amp;lt;code&amp;gt;du -sh ./*&amp;lt;/code&amp;gt; to look at folder sizes and work your way down to delete the things that aren&amp;#039;t needed.}}&lt;br /&gt;
&lt;br /&gt;
== Mounting systems ==&lt;br /&gt;
=== [https://linux.die.net/man/8/findmnt findmnt] ===&lt;br /&gt;
Finds all the mounts in your system.&lt;br /&gt;
&lt;br /&gt;
Anything in [https://www.thegeekdiary.com/understanding-the-sysfs-file-system-in-linux/ /sys] or [https://www.geeksforgeeks.org/proc-file-system-linux/ /proc] are kernel stuff. The kernel opens up files for you to look at. I don&amp;#039;t know anything else about it! Look it up yourself, cuz I don&amp;#039;t know what it means. It&amp;#039;s not important to working with storage systems.&lt;br /&gt;
&lt;br /&gt;
/dev is your stuff... mostly. Some system stuff that you don&amp;#039;t use: [https://unix.stackexchange.com/questions/93531/what-is-stored-in-dev-pts-files-and-can-we-open-them /dev/pts], [http://www.csl.mtu.edu/cs3331.ck/www/Home.html /dev/shm], [https://users.pja.edu.pl/~jms/qnx/help/watcom/clibref/mq_overview.html /dev/mqueue].&lt;br /&gt;
&lt;br /&gt;
=== Mounting commands ===&lt;br /&gt;
You&amp;#039;re working with storage media, so every single command will always be run as root.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;/dev/sdX&amp;lt;/code&amp;gt; are your drives! &amp;lt;code&amp;gt;/dev/sda&amp;lt;/code&amp;gt; is your first, &amp;lt;code&amp;gt;/dev/sdb&amp;lt;/code&amp;gt; is your second, etc.&lt;br /&gt;
&lt;br /&gt;
Mount a drive to look at:&lt;br /&gt;
{{RootCmd|mount /dev/sdb1 /mnt}}&lt;br /&gt;
Unmount it when you&amp;#039;re done:&lt;br /&gt;
{{RootCmd|umount /mnt}}&lt;br /&gt;
If you plug in a USB and you want to access it, use &amp;lt;code&amp;gt;lsblk -f&amp;lt;/code&amp;gt;, then &amp;lt;code&amp;gt;mount /dev/sdXN /mnt&amp;lt;/code&amp;gt; or wherever you want the USB files. Then, &amp;lt;code&amp;gt;umount /mnt&amp;lt;/code&amp;gt; to safely remove.&lt;br /&gt;
{{Note|If you&amp;#039;re testing this on [https://www.virtualbox.org/ VirtualBox], your virtual drives have no format, so just run mkfs.ext4 /dev/sdX for every drive and you can mount them.}}&lt;br /&gt;
&lt;br /&gt;
== Bare-metal drives ==&lt;br /&gt;
We use [https://linux.die.net/man/8/fdisk fdisk].&lt;br /&gt;
{{RootCmd|fdisk /dev/sda}}&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin:auto&amp;quot;&lt;br /&gt;
|+ [https://linux.die.net/man/8/fdisk fdisk] commands&lt;br /&gt;
|-&lt;br /&gt;
! Command !! What it does&lt;br /&gt;
|-&lt;br /&gt;
| g || sets disk as GUID Partition Table (GPT). This supports UEFI and up to 8 ZB (it goes GB, TB, PB, EB, ZB.. so a lot). &lt;br /&gt;
|-&lt;br /&gt;
| o || Sets disk as a Master Boot Record MBR. This supports legacy boot, NO UEFI, and up to 2 TB size. Easier to set up than GPT. &lt;br /&gt;
|-&lt;br /&gt;
| n || New partition.&lt;br /&gt;
|-&lt;br /&gt;
| p || Primary partition.&lt;br /&gt;
|-&lt;br /&gt;
| t || Sets the file type. Key ones are: (MBR) 82=Linux swap, 83=Linux, fd=RAID, 8e=LVM. (GPT) 19=Linux swap, 20=Linux, 29=Linux RAID, 30=Linux LVM, 1=EFI. The default on fdisk is usually Linux.&lt;br /&gt;
|-&lt;br /&gt;
| w || Write your changes.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Demo setup ===&lt;br /&gt;
Follow [https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Disks#Partitioning_the_disk_with_GPT_for_UEFI this] setup to test. I&amp;#039;d recommend playing with this in [https://www.virtualbox.org/ VirtualBox] because it is very difficult to change these on your filesystem.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
Device        Start      End  Sectors  Size Type&lt;br /&gt;
/dev/sda1      2048   526335   524288  256M EFI System&lt;br /&gt;
/dev/sda2    526336  2623487  2097152    1G Linux swap&lt;br /&gt;
/dev/sda3   2623488 19400703 16777216    8G Linux filesystem&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Logical volume management (LVM) ==&lt;br /&gt;
LVMs abstract away drives quite a bit.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
                   /---------------\ /-----\ /--------\&lt;br /&gt;
Logical volumes    | movies         | code  |  home   |&lt;br /&gt;
                   \---------------/ \-----/ \--------/&lt;br /&gt;
&lt;br /&gt;
                   /----------------------------------\&lt;br /&gt;
Volume groups      |               lvm                |&lt;br /&gt;
                   \----------------------------------/&lt;br /&gt;
&lt;br /&gt;
                   /----------\ /---------\ /----------\&lt;br /&gt;
Physical volumes   | /dev/sda1 | /dev/sdb1 | /dev/sdc1 |&lt;br /&gt;
                   \----------/ \---------/ \----------/&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The main commands are:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin:auto&amp;quot;&lt;br /&gt;
|+ LVM commands&lt;br /&gt;
|-&lt;br /&gt;
! Command !! What it does&lt;br /&gt;
|-&lt;br /&gt;
| pvcreate || Add a drive to the physical volumes.&lt;br /&gt;
|-&lt;br /&gt;
| pvdisplay || View physical volumes in the LVM. &lt;br /&gt;
|-&lt;br /&gt;
| vgcreate || Create a logical group with specified physical volumes.&lt;br /&gt;
|-&lt;br /&gt;
| vgextend || Add physical volumes to the volume group.&lt;br /&gt;
|-&lt;br /&gt;
| vgdisplay || View logical groups in the LVM. &lt;br /&gt;
|-&lt;br /&gt;
| lvcreate || Create a logical volume within the volume group.&lt;br /&gt;
|-&lt;br /&gt;
| lvextend || Expand a logical volume within the volume group.&lt;br /&gt;
|-&lt;br /&gt;
| lvreduce || Decrease a logical volume within the volume group.&lt;br /&gt;
|-&lt;br /&gt;
| lvdisplay || View all logical volumes. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
I&amp;#039;d highly, highly recommend following along with [https://www.howtoforge.com/linux_lvm this tutorial] within an LVM. You will be very comfortable with all of these commands after this.&lt;br /&gt;
&lt;br /&gt;
=== Demo setup ===&lt;br /&gt;
&lt;br /&gt;
Let us assume we have &amp;lt;code&amp;gt;/dev/sda3&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;/dev/sdb1/&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;/dev/sdc1&amp;lt;/code&amp;gt;, 3 drives ready to be added to an LVM group. We will name our volume group &amp;lt;code&amp;gt;lvm&amp;lt;/code&amp;gt; because why not? This will create a folder, &amp;lt;code&amp;gt;/dev/lvm&amp;lt;/code&amp;gt; that contains our logical volumes. &lt;br /&gt;
&lt;br /&gt;
First, add your drives to the physical volume list:&lt;br /&gt;
{{RootCmd|pvcreate /dev/sda3 /dev/sdb1 /dev/sdc1}}&lt;br /&gt;
Then create a volume group with them all:&lt;br /&gt;
{{RootCmd|vgcreate lvm /dev/sda3 /dev/sdb1 /dev/sdc1}}&lt;br /&gt;
Say you want your home directory in a different volume: &lt;br /&gt;
{{RootCmd|lvcreate -L 30G lvm -n lv_home}}&lt;br /&gt;
And then use the rest of the logical volume:&lt;br /&gt;
{{RootCmd|lvcreate -l 100%FREE lvm -n lv_root}}&lt;br /&gt;
You got a new hard drive? Cool. It&amp;#039;s &amp;lt;code&amp;gt;/dev/sdd1&amp;lt;/code&amp;gt;. Add it to the volume group:&lt;br /&gt;
{{RootCmd|vgextend lvm /dev/sdd1}}&lt;br /&gt;
You ran out of storage in a volume group? Resize it:&lt;br /&gt;
{{RootCmd|lvextend -L 35G /dev/lvm/lv_home}}&lt;br /&gt;
&lt;br /&gt;
== RAID ==&lt;br /&gt;
[https://wiki.gentoo.org/wiki/User:SwifT/Complete_Handbook/Software_RAID RAID] is for data protection. This is not a &amp;lt;em&amp;gt;backup&amp;lt;/em&amp;gt;. It is just for protection. Instead of one drive dying and you lose all your data, you can use a RAID system so you have protection against it dying.&lt;br /&gt;
&lt;br /&gt;
Instead of a table of the different RAID systems, here&amp;#039;s a [https://www.cru-inc.com/table-raid-levels/ list of them]. I&amp;#039;m going to assume we use RAID 1 or RAID 10. &lt;br /&gt;
&lt;br /&gt;
RAID is done all under [https://raid.wiki.kernel.org/index.php/A_guide_to_mdadm mdadm]. It&amp;#039;s straightforward comapred to LVM.&lt;br /&gt;
{{RootCmd|mdadm --create /dev/md0 --level&amp;amp;#x3d;1 --raid-devices&amp;amp;#x3d;2 /dev/sdb1 /dev/sdc1}}&lt;br /&gt;
{{RootCmd|mdadm --create /dev/md0 --level&amp;amp;#x3d;10 --raid-devices&amp;amp;#x3d;2 /dev/sdb1 /dev/sdc1}}&lt;br /&gt;
&lt;br /&gt;
== ZFS ==&lt;br /&gt;
You can use LVM and RAID by manually making sure you don&amp;#039;t go over 50% or whatever RAID you want requires, then using mdadm on your logical volumes. Or just use ZFS to create a pool. Even less work.&lt;br /&gt;
{{RootCmd|zpool create pool /dev/sdb /dev/sdc}}&lt;br /&gt;
RAID 1:&lt;br /&gt;
{{RootCmd|zpool create pool mirror /dev/sdb /dev/sdc}}&lt;br /&gt;
RAID 10:&lt;br /&gt;
{{RootCmd|zpool create pool mirror /dev/sdb /dev/sdc mirror /dev/sdd /dev/sde}}&lt;br /&gt;
Check out what you did:&lt;br /&gt;
{{RootCmd|zpool status}}&lt;br /&gt;
Here is [https://mirrors.lug.mtu.edu/ our Linux mirrors] configuration:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
  pool: lug&lt;br /&gt;
 state: ONLINE&lt;br /&gt;
config:&lt;br /&gt;
&lt;br /&gt;
    NAME                       STATE     READ WRITE CKSUM&lt;br /&gt;
    lug                        ONLINE       0     0     0&lt;br /&gt;
      mirror-0                 ONLINE       0     0     0&lt;br /&gt;
        label/lug-HGST-4TB-01  ONLINE       0     0     0&lt;br /&gt;
        label/lug-HGST-4TB-02  ONLINE       0     0     0&lt;br /&gt;
      mirror-1                 ONLINE       0     0     0&lt;br /&gt;
        label/lug-HGST-4TB-03  ONLINE       0     0     0&lt;br /&gt;
        label/lug-HGST-4TB-04  ONLINE       0     0     0&lt;br /&gt;
      mirror-2                 ONLINE       0     0     0&lt;br /&gt;
        label/lug-HGST-4TB-05  ONLINE       0     0     0&lt;br /&gt;
        label/lug-HGST-4TB-06  ONLINE       0     0     0&lt;br /&gt;
      mirror-3                 ONLINE       0     0     0&lt;br /&gt;
        label/lug-HGST-4TB-07  ONLINE       0     0     0&lt;br /&gt;
        label/lug-HGST-4TB-08  ONLINE       0     0     0&lt;br /&gt;
      mirror-4                 ONLINE       0     0     0&lt;br /&gt;
        label/lug-HGST-4TB-09  ONLINE       0     0     0&lt;br /&gt;
        label/lug-HGST-4TB-10  ONLINE       0     0     0&lt;br /&gt;
&lt;br /&gt;
errors: No known data errors&lt;br /&gt;
&lt;br /&gt;
  pool: zroot&lt;br /&gt;
 state: ONLINE&lt;br /&gt;
  scan: scrub repaired 0B in 00:01:47 with 0 errors on Sun Sep 26 16:42:05 2021&lt;br /&gt;
config:&lt;br /&gt;
&lt;br /&gt;
    NAME        STATE     READ WRITE CKSUM&lt;br /&gt;
    zroot       ONLINE       0     0     0&lt;br /&gt;
      mirror-0  ONLINE       0     0     0&lt;br /&gt;
        da10p3  ONLINE       0     0     0&lt;br /&gt;
        da11p3  ONLINE       0     0     0&lt;br /&gt;
&lt;br /&gt;
errors: No known data errors&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== fstab ==&lt;br /&gt;
Automatically mount your file systems at start up and tells you which file system corresponds to which drive, etc.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;fs&amp;gt; &amp;lt;mountpoint&amp;gt; &amp;lt;type&amp;gt; &amp;lt;opts&amp;gt; &amp;lt;dump/pass&amp;gt;.&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/System#Creating_the_fstab_file It is recommended] you use UUIDs for non-LVM non-ZFS. [https://xan.manning.io/2017/05/29/best-practice-for-mounting-an-lvm-logical-volume-with-etc-fstab.html It is recommended] you use the device mapper symlink for LVM or ZFS. I am not smart enough to know the benefits for either.&lt;br /&gt;
&lt;br /&gt;
Options are seen in &amp;quot;Filesystem independent mount options&amp;quot; and &amp;quot;Filesystem dependent mount options&amp;quot; in the [https://linux.die.net/man/8/mount mount(8)] man page. I&amp;#039;d just use &amp;lt;code&amp;gt;defaults&amp;lt;/code&amp;gt;. Use &amp;lt;code&amp;gt;_netdev&amp;lt;/code&amp;gt; for a network drive (cough David cough).&lt;br /&gt;
&lt;br /&gt;
The numbers at the end are not too necessary, but read the [https://linux.die.net/man/5/fstab man page] on the 5th and 6th fields if you really want to know. [https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/System#Creating_the_fstab_file Gentoo] recommends having / at 0 1 and everything else as 0 2.&lt;br /&gt;
&lt;br /&gt;
Here&amp;#039;s my computer&amp;#039;s setup:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;fstab&amp;quot;&amp;gt;&lt;br /&gt;
/dev/lvm/lv_root                          /     ext4 defaults         0 1 &lt;br /&gt;
/dev/lvm/lv_home                          /home ext4 defaults         0 2 &lt;br /&gt;
UUID=46ef4b37-b2bc-4a3a-b821-604c9fb64787 /boot ext4 defaults,noatime 0 2 &lt;br /&gt;
UUID=61518d0a-1a81-4936-85e0-6bb7e1d69155 none  swap sw               0 0&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Sjwhitak</name></author>
	</entry>
</feed>