<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.ihitc.net/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Franske_ITC-2480_Lab_11</id>
	<title>Franske ITC-2480 Lab 11 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ihitc.net/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Franske_ITC-2480_Lab_11"/>
	<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_11&amp;action=history"/>
	<updated>2026-05-05T10:36:53Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.38.5</generator>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_11&amp;diff=9760&amp;oldid=prev</id>
		<title>BenFranske: Update to mjnk version</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_11&amp;diff=9760&amp;oldid=prev"/>
		<updated>2021-12-03T20:03:41Z</updated>

		<summary type="html">&lt;p&gt;Update to mjnk version&lt;/p&gt;
&lt;a href=&quot;https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_11&amp;amp;diff=9760&amp;amp;oldid=7332&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>BenFranske</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_11&amp;diff=7332&amp;oldid=prev</id>
		<title>BenFranske: /* Adding a 2nd disk */</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_11&amp;diff=7332&amp;oldid=prev"/>
		<updated>2018-03-22T06:13:43Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Adding a 2nd disk&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 06:13, 22 March 2018&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-l35&quot;&gt;Line 35:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 35:&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;# You may also have noticed there is an &amp;#039;&amp;#039;sdb&amp;#039;&amp;#039; that currently has no partitions. We are going to format this drive into 2 partitions, format them, and then setup automatic mounting of the partitions.&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;# You may also have noticed there is an &amp;#039;&amp;#039;sdb&amp;#039;&amp;#039; that currently has no partitions. We are going to format this drive into 2 partitions, format them, and then setup automatic mounting of the partitions.&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;# To start, run &amp;#039;&amp;#039;&amp;#039;cfdisk /dev/sdb&amp;#039;&amp;#039;&amp;#039; as root. &amp;#039;&amp;#039;cfdisk&amp;#039;&amp;#039; is a graphical version of &amp;#039;&amp;#039;fdisk&amp;#039;&amp;#039;, which is a tool used to setup disk partitioning. Note that &amp;#039;&amp;#039;fdisk&amp;#039;&amp;#039; or any other partitioning software only sets up the MBR, and does not actually format the drive even though you can set a partition type identifier such as &amp;#039;&amp;#039;&amp;#039;fat32&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Linux&amp;#039;&amp;#039;&amp;#039;, etc. Also notice how we tell &amp;#039;&amp;#039;cfdisk&amp;#039;&amp;#039; what drive we want to edit the partition on by appending the drive device &amp;quot;file&amp;quot; to the end of the command.&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 start, run &amp;#039;&amp;#039;&amp;#039;cfdisk /dev/sdb&amp;#039;&amp;#039;&amp;#039; as root. &amp;#039;&amp;#039;cfdisk&amp;#039;&amp;#039; is a graphical version of &amp;#039;&amp;#039;fdisk&amp;#039;&amp;#039;, which is a tool used to setup disk partitioning. Note that &amp;#039;&amp;#039;fdisk&amp;#039;&amp;#039; or any other partitioning software only sets up the MBR, and does not actually format the drive even though you can set a partition type identifier such as &amp;#039;&amp;#039;&amp;#039;fat32&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Linux&amp;#039;&amp;#039;&amp;#039;, etc. Also notice how we tell &amp;#039;&amp;#039;cfdisk&amp;#039;&amp;#039; what drive we want to edit the partition on by appending the drive device &amp;quot;file&amp;quot; to the end of the command.&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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;#* Note: some very large drives can no longer use MBR partition tables and there are other reasons to switch to the newer standard for partitioning, GPT partition tables. In order to do that you would use different tools such as &amp;#039;&amp;#039;&amp;#039;gdisk&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;cgdisk&amp;#039;&amp;#039;&amp;#039; instead of &amp;#039;&amp;#039;&amp;#039;fdisk&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;cfdisk&amp;#039;&amp;#039;&amp;#039;. There are several other differences in the way GPT partitions work so you&amp;#039;ll want to do some research about them before you try using them. Finally, many newer large drives use 4096 byte &amp;quot;Advanced Format&amp;quot; sectors instead of the traditional 512 byte hard drive sectors. Using these disks most efficiently requires adjusting the sector size in software to match the physical sector size on the disk when partitioning and/or formatting.&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;# Because our new drives contain no existing partitions we are asked what type of partition table to create. Choose to create a &amp;#039;&amp;#039;dos&amp;#039;&amp;#039; (aka &amp;#039;&amp;#039;MBR&amp;#039;&amp;#039;) style partition table&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;. Although this is an older style partition table it is well supported by many operating systems and BIOSes. The primary benefit of the newer &amp;#039;&amp;#039;GPT&amp;#039;&amp;#039; style tables is their ability to work with very large drives&lt;/ins&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;# Because our new drives contain no existing partitions we are asked what type of partition table to create. Choose to create a &amp;#039;&amp;#039;dos&amp;#039;&amp;#039; (aka &amp;#039;&amp;#039;MBR&amp;#039;&amp;#039;) style partition table.&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&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;# Once in &amp;#039;&amp;#039;cfdisk&amp;#039;&amp;#039;, Select the &amp;#039;&amp;#039;New&amp;#039;&amp;#039; option. Now select &amp;#039;&amp;#039;primary&amp;#039;&amp;#039; as we are making a primary MBR partition, then set the size close to &amp;#039;&amp;#039;5GB&amp;#039;&amp;#039; (it doesn&amp;#039;t need to be exact).  &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;# Once in &amp;#039;&amp;#039;cfdisk&amp;#039;&amp;#039;, Select the &amp;#039;&amp;#039;New&amp;#039;&amp;#039; option. Now select &amp;#039;&amp;#039;primary&amp;#039;&amp;#039; as we are making a primary MBR partition, then set the size close to &amp;#039;&amp;#039;5GB&amp;#039;&amp;#039; (it doesn&amp;#039;t need to be exact).  &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;# Using the arrow keys to go down to the remaining &amp;#039;&amp;#039;Free Space&amp;#039;&amp;#039; on the drive, and press enter to again select &amp;#039;&amp;#039;New&amp;#039;&amp;#039;. Create another &amp;#039;&amp;#039;primary&amp;#039;&amp;#039; partition, and set the size to about &amp;#039;&amp;#039;2GB&amp;#039;&amp;#039;.&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;# Using the arrow keys to go down to the remaining &amp;#039;&amp;#039;Free Space&amp;#039;&amp;#039; on the drive, and press enter to again select &amp;#039;&amp;#039;New&amp;#039;&amp;#039;. Create another &amp;#039;&amp;#039;primary&amp;#039;&amp;#039; partition, and set the size to about &amp;#039;&amp;#039;2GB&amp;#039;&amp;#039;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>BenFranske</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_11&amp;diff=7331&amp;oldid=prev</id>
		<title>BenFranske: /* Adding a 2nd disk */</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_11&amp;diff=7331&amp;oldid=prev"/>
		<updated>2018-03-22T06:09:51Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Adding a 2nd disk&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 06:09, 22 March 2018&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-l36&quot;&gt;Line 36:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 36:&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 start, run &amp;#039;&amp;#039;&amp;#039;cfdisk /dev/sdb&amp;#039;&amp;#039;&amp;#039; as root. &amp;#039;&amp;#039;cfdisk&amp;#039;&amp;#039; is a graphical version of &amp;#039;&amp;#039;fdisk&amp;#039;&amp;#039;, which is a tool used to setup disk partitioning. Note that &amp;#039;&amp;#039;fdisk&amp;#039;&amp;#039; or any other partitioning software only sets up the MBR, and does not actually format the drive even though you can set a partition type identifier such as &amp;#039;&amp;#039;&amp;#039;fat32&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Linux&amp;#039;&amp;#039;&amp;#039;, etc. Also notice how we tell &amp;#039;&amp;#039;cfdisk&amp;#039;&amp;#039; what drive we want to edit the partition on by appending the drive device &amp;quot;file&amp;quot; to the end of the command.&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 start, run &amp;#039;&amp;#039;&amp;#039;cfdisk /dev/sdb&amp;#039;&amp;#039;&amp;#039; as root. &amp;#039;&amp;#039;cfdisk&amp;#039;&amp;#039; is a graphical version of &amp;#039;&amp;#039;fdisk&amp;#039;&amp;#039;, which is a tool used to setup disk partitioning. Note that &amp;#039;&amp;#039;fdisk&amp;#039;&amp;#039; or any other partitioning software only sets up the MBR, and does not actually format the drive even though you can set a partition type identifier such as &amp;#039;&amp;#039;&amp;#039;fat32&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Linux&amp;#039;&amp;#039;&amp;#039;, etc. Also notice how we tell &amp;#039;&amp;#039;cfdisk&amp;#039;&amp;#039; what drive we want to edit the partition on by appending the drive device &amp;quot;file&amp;quot; to the end of the command.&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;#* Note: some very large drives can no longer use MBR partition tables and there are other reasons to switch to the newer standard for partitioning, GPT partition tables. In order to do that you would use different tools such as &amp;#039;&amp;#039;&amp;#039;gdisk&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;cgdisk&amp;#039;&amp;#039;&amp;#039; instead of &amp;#039;&amp;#039;&amp;#039;fdisk&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;cfdisk&amp;#039;&amp;#039;&amp;#039;. There are several other differences in the way GPT partitions work so you&amp;#039;ll want to do some research about them before you try using them. Finally, many newer large drives use 4096 byte &amp;quot;Advanced Format&amp;quot; sectors instead of the traditional 512 byte hard drive sectors. Using these disks most efficiently requires adjusting the sector size in software to match the physical sector size on the disk when partitioning and/or formatting.&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;#* Note: some very large drives can no longer use MBR partition tables and there are other reasons to switch to the newer standard for partitioning, GPT partition tables. In order to do that you would use different tools such as &amp;#039;&amp;#039;&amp;#039;gdisk&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;cgdisk&amp;#039;&amp;#039;&amp;#039; instead of &amp;#039;&amp;#039;&amp;#039;fdisk&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;cfdisk&amp;#039;&amp;#039;&amp;#039;. There are several other differences in the way GPT partitions work so you&amp;#039;ll want to do some research about them before you try using them. Finally, many newer large drives use 4096 byte &amp;quot;Advanced Format&amp;quot; sectors instead of the traditional 512 byte hard drive sectors. Using these disks most efficiently requires adjusting the sector size in software to match the physical sector size on the disk when partitioning and/or formatting.&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;# &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;If you &lt;/del&gt;are asked what type of partition table to &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;use for the drive select &lt;/del&gt;&amp;#039;&amp;#039;dos&amp;#039;&amp;#039; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;which uses the &lt;/del&gt;MBR &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;type&lt;/del&gt;. Once in &amp;#039;&amp;#039;cfdisk&amp;#039;&amp;#039;, Select the &amp;#039;&amp;#039;New&amp;#039;&amp;#039; option. Now select &amp;#039;&amp;#039;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Primary&lt;/del&gt;&amp;#039;&amp;#039; as we are making a &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Primary &lt;/del&gt;MBR partition, then set the size close to &amp;#039;&amp;#039;5GB&amp;#039;&amp;#039; (it doesn&amp;#039;t need to be exact).  &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;# &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Because our new drives contain no existing partitions we &lt;/ins&gt;are asked what type of partition table to &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;create. Choose to create a &lt;/ins&gt;&amp;#039;&amp;#039;dos&amp;#039;&amp;#039; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(aka &amp;#039;&amp;#039;&lt;/ins&gt;MBR&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&amp;#039;) style partition table&lt;/ins&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;# Using the arrow keys to go down to the remaining &amp;#039;&amp;#039;Free Space&amp;#039;&amp;#039; on the drive, and press enter to again select &amp;#039;&amp;#039;New&amp;#039;&amp;#039;. Create another &amp;#039;&amp;#039;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Primary&lt;/del&gt;&amp;#039;&amp;#039; partition, and set the size to about &amp;#039;&amp;#039;2GB&amp;#039;&amp;#039;.&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;# &lt;/ins&gt;Once in &amp;#039;&amp;#039;cfdisk&amp;#039;&amp;#039;, Select the &amp;#039;&amp;#039;New&amp;#039;&amp;#039; option. Now select &amp;#039;&amp;#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;primary&lt;/ins&gt;&amp;#039;&amp;#039; as we are making a &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;primary &lt;/ins&gt;MBR partition, then set the size close to &amp;#039;&amp;#039;5GB&amp;#039;&amp;#039; (it doesn&amp;#039;t need to be exact).  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;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;# Using the arrow keys to go down to the remaining &amp;#039;&amp;#039;Free Space&amp;#039;&amp;#039; on the drive, and press enter to again select &amp;#039;&amp;#039;New&amp;#039;&amp;#039;. Create another &amp;#039;&amp;#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;primary&lt;/ins&gt;&amp;#039;&amp;#039; partition, and set the size to about &amp;#039;&amp;#039;2GB&amp;#039;&amp;#039;.&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;# At this point we should have two partitions, one named &amp;#039;&amp;#039;sdb1&amp;#039;&amp;#039; with a size of about 5GB (the program will round down to the closest boundary), and &amp;#039;&amp;#039;sdb2&amp;#039;&amp;#039; which takes up the next 2GB or so of the drive. Use the arrow keys to select the &amp;#039;&amp;#039;Write&amp;#039;&amp;#039; option, and press &amp;#039;&amp;#039;enter&amp;#039;&amp;#039;. You will be warned that this will write the table to the disk. enter &amp;#039;&amp;#039;yes&amp;#039;&amp;#039;, and press &amp;#039;&amp;#039;enter&amp;#039;&amp;#039; again to confirm.&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;# At this point we should have two partitions, one named &amp;#039;&amp;#039;sdb1&amp;#039;&amp;#039; with a size of about 5GB (the program will round down to the closest boundary), and &amp;#039;&amp;#039;sdb2&amp;#039;&amp;#039; which takes up the next 2GB or so of the drive. Use the arrow keys to select the &amp;#039;&amp;#039;Write&amp;#039;&amp;#039; option, and press &amp;#039;&amp;#039;enter&amp;#039;&amp;#039;. You will be warned that this will write the table to the disk. enter &amp;#039;&amp;#039;yes&amp;#039;&amp;#039;, and press &amp;#039;&amp;#039;enter&amp;#039;&amp;#039; again to confirm.&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, on the bottom of the screen, you see &amp;quot;The partition table has been altered&amp;quot;, you have successfully written the MBR to the drive. Now you can navigate to &amp;#039;&amp;#039;Quit&amp;#039;&amp;#039; to exit the program.&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, on the bottom of the screen, you see &amp;quot;The partition table has been altered&amp;quot;, you have successfully written the MBR to the drive. Now you can navigate to &amp;#039;&amp;#039;Quit&amp;#039;&amp;#039; to exit the program.&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;# From the command line run &amp;#039;&amp;#039;ls -&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;l &lt;/del&gt;/dev &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;| grep sdb&lt;/del&gt;&amp;#039;&amp;#039;. Notice how you can now see both of the new partitions, &amp;#039;&amp;#039;sdb1&amp;#039;&amp;#039; and &amp;#039;&amp;#039;sdb2&amp;#039;&amp;#039; in the listing. This means the partition device &amp;quot;files&amp;quot; have been created and you are ready to format the partitions with a filesystem.&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;# From the command line run &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&lt;/ins&gt;&amp;#039;&amp;#039;ls -&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;al &lt;/ins&gt;/dev&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;/sd*&amp;#039;&lt;/ins&gt;&amp;#039;&amp;#039;. Notice how you can now see both of the new partitions, &amp;#039;&amp;#039;sdb1&amp;#039;&amp;#039; and &amp;#039;&amp;#039;sdb2&amp;#039;&amp;#039; in the listing. This means the partition device &amp;quot;files&amp;quot; have been created and you are ready to format the partitions with a 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;# The first partition will be formatted as &amp;#039;&amp;#039;ext4&amp;#039;&amp;#039;, and the second partition will be formatted as &amp;#039;&amp;#039;btrfs&amp;#039;&amp;#039;. Both filesystems (as well as many others) are commonly used on Linux systems. For more information on the differences and similarities between &amp;#039;&amp;#039;btrfs&amp;#039;&amp;#039; and &amp;#039;&amp;#039;ext4&amp;#039;&amp;#039;, refer to your book or Google.&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 first partition will be formatted as &amp;#039;&amp;#039;ext4&amp;#039;&amp;#039;, and the second partition will be formatted as &amp;#039;&amp;#039;btrfs&amp;#039;&amp;#039;. Both filesystems (as well as many others) are commonly used on Linux systems. For more information on the differences and similarities between &amp;#039;&amp;#039;btrfs&amp;#039;&amp;#039; and &amp;#039;&amp;#039;ext4&amp;#039;&amp;#039;, refer to your book or Google.&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;# To create the &amp;#039;&amp;#039;ext4&amp;#039;&amp;#039; partition, we will use the &amp;#039;&amp;#039;mkfs.ext4&amp;#039;&amp;#039; command. So as root, run the command &amp;#039;&amp;#039;mkfs.ext4 /dev/sdb1&amp;#039;&amp;#039;. This will partition the drive as &amp;#039;&amp;#039;ext4&amp;#039;&amp;#039; with no label. If you would like to label the partition, look into the options of &amp;#039;&amp;#039;mkfs.ext4&amp;#039;&amp;#039; using &amp;#039;&amp;#039;man mkfs.ext4&amp;#039;&amp;#039;.&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 create the &amp;#039;&amp;#039;ext4&amp;#039;&amp;#039; partition, we will use the &amp;#039;&amp;#039;mkfs.ext4&amp;#039;&amp;#039; command. So as root, run the command &amp;#039;&amp;#039;mkfs.ext4 /dev/sdb1&amp;#039;&amp;#039;. This will partition the drive as &amp;#039;&amp;#039;ext4&amp;#039;&amp;#039; with no label. If you would like to label the partition, look into the options of &amp;#039;&amp;#039;mkfs.ext4&amp;#039;&amp;#039; using &amp;#039;&amp;#039;man mkfs.ext4&amp;#039;&amp;#039;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>BenFranske</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_11&amp;diff=7330&amp;oldid=prev</id>
		<title>BenFranske: /* Disk and File Usage */</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_11&amp;diff=7330&amp;oldid=prev"/>
		<updated>2018-03-22T04:04:07Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Disk and File Usage&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 04:04, 22 March 2018&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-l75&quot;&gt;Line 75:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 75:&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;li&amp;gt; The &amp;#039;&amp;#039;&amp;#039;df&amp;#039;&amp;#039;&amp;#039; command doesn&amp;#039;t give the most easily readable disk or usage sizes by default. Try adding the &amp;#039;&amp;#039;-h&amp;#039;&amp;#039; option to the command like &amp;#039;&amp;#039;&amp;#039;df -h&amp;#039;&amp;#039;&amp;#039; to change the output to a &amp;quot;human readable&amp;quot; format and see what it looks like.&amp;lt;/li&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;li&amp;gt; The &amp;#039;&amp;#039;&amp;#039;df&amp;#039;&amp;#039;&amp;#039; command doesn&amp;#039;t give the most easily readable disk or usage sizes by default. Try adding the &amp;#039;&amp;#039;-h&amp;#039;&amp;#039; option to the command like &amp;#039;&amp;#039;&amp;#039;df -h&amp;#039;&amp;#039;&amp;#039; to change the output to a &amp;quot;human readable&amp;quot; format and see what it looks like.&amp;lt;/li&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;&amp;lt;li&amp;gt; Now, &amp;#039;&amp;#039;&amp;#039;cd&amp;#039;&amp;#039;&amp;#039; into &amp;#039;&amp;#039;/mnt/part1&amp;#039;&amp;#039; so you are on the ext4 partition you created. Then as root, run the command &amp;#039;&amp;#039;&amp;#039;cp -r /var/log ./&amp;#039;&amp;#039;&amp;#039;&amp;lt;/li&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;li&amp;gt; Now, &amp;#039;&amp;#039;&amp;#039;cd&amp;#039;&amp;#039;&amp;#039; into &amp;#039;&amp;#039;/mnt/part1&amp;#039;&amp;#039; so you are on the ext4 partition you created. Then as root, run the command &amp;#039;&amp;#039;&amp;#039;cp -r /var/log ./&amp;#039;&amp;#039;&amp;#039;&amp;lt;/li&amp;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;&amp;lt;li&amp;gt; &amp;#039;&amp;#039;&amp;#039;cd&amp;#039;&amp;#039;&amp;#039; into the &amp;#039;&amp;#039;log&amp;#039;&amp;#039; folder, and run &amp;#039;&amp;#039;du -h&amp;#039;&amp;#039;. &amp;#039;&amp;#039;du&amp;#039;&amp;#039; is a command that allows you to view file usage in a tree format. Just like with &amp;#039;&amp;#039;&amp;#039;df&amp;#039;&amp;#039;&amp;#039; the &amp;#039;&amp;#039;-h&amp;#039;&amp;#039; flag tells &amp;#039;&amp;#039;&amp;#039;du&amp;#039;&amp;#039;&amp;#039; to output the usage in a &amp;quot;human readable&amp;quot; format, while the &amp;#039;&amp;#039;-a&amp;#039;&amp;#039; flag tells it to show you the results for all files, and not just for folders.&amp;lt;/li&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;li&amp;gt; &amp;#039;&amp;#039;&amp;#039;cd&amp;#039;&amp;#039;&amp;#039; into the &amp;#039;&amp;#039;log&amp;#039;&amp;#039; folder, and run &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&lt;/ins&gt;&amp;#039;&amp;#039;du -h&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&lt;/ins&gt;&amp;#039;&amp;#039;. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&lt;/ins&gt;&amp;#039;&amp;#039;du&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&lt;/ins&gt;&amp;#039;&amp;#039; is a command that allows you to view file usage in a tree format. Just like with &amp;#039;&amp;#039;&amp;#039;df&amp;#039;&amp;#039;&amp;#039; the &amp;#039;&amp;#039;-h&amp;#039;&amp;#039; flag tells &amp;#039;&amp;#039;&amp;#039;du&amp;#039;&amp;#039;&amp;#039; to output the usage in a &amp;quot;human readable&amp;quot; format, while the &amp;#039;&amp;#039;-a&amp;#039;&amp;#039; flag tells it to show you the results for all files, and not just for folders.&amp;lt;/li&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;&amp;lt;li&amp;gt; Read the &amp;#039;&amp;#039;&amp;#039;man du&amp;#039;&amp;#039;&amp;#039; page and play around with using the &amp;#039;&amp;#039;&amp;#039;du&amp;#039;&amp;#039;&amp;#039; command across the file system. How much data is the /etc/ folder taking up on your Linux system? What directories are the biggest?&amp;lt;/li&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;li&amp;gt; Read the &amp;#039;&amp;#039;&amp;#039;man du&amp;#039;&amp;#039;&amp;#039; page and play around with using the &amp;#039;&amp;#039;&amp;#039;du&amp;#039;&amp;#039;&amp;#039; command across the file system. How much data is the /etc/ folder taking up on your Linux system? What directories are the biggest?&amp;lt;/li&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;&amp;lt;/ol&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;/ol&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>BenFranske</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_11&amp;diff=7329&amp;oldid=prev</id>
		<title>BenFranske: /* Disk and File Usage */</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_11&amp;diff=7329&amp;oldid=prev"/>
		<updated>2018-03-22T04:03:44Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Disk and File Usage&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 04:03, 22 March 2018&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-l74&quot;&gt;Line 74:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 74:&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;li&amp;gt; This indicates that the two partitions are mounted properly to the folders we created earlier. &amp;#039;&amp;#039;df&amp;#039;&amp;#039; is a powerful command as not only will it show you what is mounted where, but it also shows you how much disk space is used and how much space is left.&amp;lt;/li&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;li&amp;gt; This indicates that the two partitions are mounted properly to the folders we created earlier. &amp;#039;&amp;#039;df&amp;#039;&amp;#039; is a powerful command as not only will it show you what is mounted where, but it also shows you how much disk space is used and how much space is left.&amp;lt;/li&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;&amp;lt;li&amp;gt; The &amp;#039;&amp;#039;&amp;#039;df&amp;#039;&amp;#039;&amp;#039; command doesn&amp;#039;t give the most easily readable disk or usage sizes by default. Try adding the &amp;#039;&amp;#039;-h&amp;#039;&amp;#039; option to the command like &amp;#039;&amp;#039;&amp;#039;df -h&amp;#039;&amp;#039;&amp;#039; to change the output to a &amp;quot;human readable&amp;quot; format and see what it looks like.&amp;lt;/li&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;li&amp;gt; The &amp;#039;&amp;#039;&amp;#039;df&amp;#039;&amp;#039;&amp;#039; command doesn&amp;#039;t give the most easily readable disk or usage sizes by default. Try adding the &amp;#039;&amp;#039;-h&amp;#039;&amp;#039; option to the command like &amp;#039;&amp;#039;&amp;#039;df -h&amp;#039;&amp;#039;&amp;#039; to change the output to a &amp;quot;human readable&amp;quot; format and see what it looks like.&amp;lt;/li&amp;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;&amp;lt;li&amp;gt; Now, &amp;#039;&amp;#039;&amp;#039;cd&amp;#039;&amp;#039;&amp;#039; into &amp;#039;&amp;#039;/mnt/part1&amp;#039;&amp;#039; so you are on the ext4 partition you created. Then as root, run the command &amp;#039;&amp;#039;cp -r /var/log ./&amp;#039;&amp;#039;&amp;lt;/li&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;li&amp;gt; Now, &amp;#039;&amp;#039;&amp;#039;cd&amp;#039;&amp;#039;&amp;#039; into &amp;#039;&amp;#039;/mnt/part1&amp;#039;&amp;#039; so you are on the ext4 partition you created. Then as root, run the command &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&lt;/ins&gt;&amp;#039;&amp;#039;cp -r /var/log ./&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&lt;/ins&gt;&amp;#039;&amp;#039;&amp;lt;/li&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;&amp;lt;li&amp;gt; &amp;#039;&amp;#039;&amp;#039;cd&amp;#039;&amp;#039;&amp;#039; into the &amp;#039;&amp;#039;log&amp;#039;&amp;#039; folder, and run &amp;#039;&amp;#039;du -h&amp;#039;&amp;#039;. &amp;#039;&amp;#039;du&amp;#039;&amp;#039; is a command that allows you to view file usage in a tree format. Just like with &amp;#039;&amp;#039;&amp;#039;df&amp;#039;&amp;#039;&amp;#039; the &amp;#039;&amp;#039;-h&amp;#039;&amp;#039; flag tells &amp;#039;&amp;#039;&amp;#039;du&amp;#039;&amp;#039;&amp;#039; to output the usage in a &amp;quot;human readable&amp;quot; format, while the &amp;#039;&amp;#039;-a&amp;#039;&amp;#039; flag tells it to show you the results for all files, and not just for folders.&amp;lt;/li&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;li&amp;gt; &amp;#039;&amp;#039;&amp;#039;cd&amp;#039;&amp;#039;&amp;#039; into the &amp;#039;&amp;#039;log&amp;#039;&amp;#039; folder, and run &amp;#039;&amp;#039;du -h&amp;#039;&amp;#039;. &amp;#039;&amp;#039;du&amp;#039;&amp;#039; is a command that allows you to view file usage in a tree format. Just like with &amp;#039;&amp;#039;&amp;#039;df&amp;#039;&amp;#039;&amp;#039; the &amp;#039;&amp;#039;-h&amp;#039;&amp;#039; flag tells &amp;#039;&amp;#039;&amp;#039;du&amp;#039;&amp;#039;&amp;#039; to output the usage in a &amp;quot;human readable&amp;quot; format, while the &amp;#039;&amp;#039;-a&amp;#039;&amp;#039; flag tells it to show you the results for all files, and not just for folders.&amp;lt;/li&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;&amp;lt;li&amp;gt; Read the &amp;#039;&amp;#039;&amp;#039;man du&amp;#039;&amp;#039;&amp;#039; page and play around with using the &amp;#039;&amp;#039;&amp;#039;du&amp;#039;&amp;#039;&amp;#039; command across the file system. How much data is the /etc/ folder taking up on your Linux system? What directories are the biggest?&amp;lt;/li&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;li&amp;gt; Read the &amp;#039;&amp;#039;&amp;#039;man du&amp;#039;&amp;#039;&amp;#039; page and play around with using the &amp;#039;&amp;#039;&amp;#039;du&amp;#039;&amp;#039;&amp;#039; command across the file system. How much data is the /etc/ folder taking up on your Linux system? What directories are the biggest?&amp;lt;/li&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;&amp;lt;/ol&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;/ol&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>BenFranske</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_11&amp;diff=7328&amp;oldid=prev</id>
		<title>BenFranske at 04:03, 22 March 2018</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_11&amp;diff=7328&amp;oldid=prev"/>
		<updated>2018-03-22T04:03:24Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_11&amp;amp;diff=7328&amp;amp;oldid=7327&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>BenFranske</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_11&amp;diff=7327&amp;oldid=prev</id>
		<title>BenFranske at 17:03, 21 March 2018</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_11&amp;diff=7327&amp;oldid=prev"/>
		<updated>2018-03-21T17:03:58Z</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 17:03, 21 March 2018&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-l5&quot;&gt;Line 5:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 5:&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;== Exploring /proc ==&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;== Exploring /proc ==&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;# &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;To start this lab, go to &lt;/del&gt;/proc &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;in putty&lt;/del&gt;. /proc is a very special folder is its a virtual filesystem. Its sometimes referred to as a process information pseudo-&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;file system&lt;/del&gt;. The reason is that all of the files in /proc are not &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;real &lt;/del&gt;files, but runtime and system information.&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;# &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Enter the &amp;#039;&amp;#039;&lt;/ins&gt;/proc&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&amp;#039; directory on your VM&lt;/ins&gt;. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&amp;#039;&lt;/ins&gt;/proc&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&amp;#039; &lt;/ins&gt;is a very special folder is its a virtual filesystem. Its sometimes referred to as a process information pseudo-&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;filesystem&lt;/ins&gt;. The reason &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;for calling it a pseudo-file system &lt;/ins&gt;is that all of the &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;quot;&lt;/ins&gt;files&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;quot; &lt;/ins&gt;in &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&amp;#039;&lt;/ins&gt;/proc&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&amp;#039; &lt;/ins&gt;are not &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;really &lt;/ins&gt;files &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;at all&lt;/ins&gt;, but &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;kernel &lt;/ins&gt;runtime &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;configuration &lt;/ins&gt;and system information.&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;# For example, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;now that you are in &lt;/del&gt;/proc&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, run cat &lt;/del&gt;cpuinfo. Notice how the output tells your information about the CPU that is running the &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Virtual Machine&lt;/del&gt;. /proc is used not only to get hardware and &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;runtime &lt;/del&gt;information, but it can also be used to tweak kernel settings. Look back on Lab 10 and notice how we echoed a &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;number &lt;/del&gt;to a file in /proc to enable packet forwarding.&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;# For example, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;use &amp;#039;&amp;#039;&amp;#039;cat cpuinfo&amp;#039;&amp;#039;&amp;#039; to view the contents of the &amp;#039;&amp;#039;&lt;/ins&gt;/proc&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;/&lt;/ins&gt;cpuinfo&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&amp;#039; &amp;quot;file&amp;quot;&lt;/ins&gt;. Notice how the output tells your information about the CPU that is running the &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;VM. This isn&amp;#039;t actually a file at all you are essentially asking the kernel to provide information about the CPU it&amp;#039;s running on which it gathers in realtime&lt;/ins&gt;. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&amp;#039;&lt;/ins&gt;/proc&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&amp;#039; &lt;/ins&gt;is used not only to get hardware and &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;kernel &lt;/ins&gt;information, but it can also be used to tweak kernel settings &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;while the system is running in a way similar to some Windows Registry edits&lt;/ins&gt;. Look back on Lab 10 and notice how we echoed a &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;quot;1&amp;quot; &lt;/ins&gt;to a &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;quot;&lt;/ins&gt;file&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;quot; &lt;/ins&gt;in &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&amp;#039;&lt;/ins&gt;/proc&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&amp;#039; &lt;/ins&gt;to enable packet forwarding &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;without rebooting the system&lt;/ins&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;# There are a few files in /proc you should get to know:&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;# There are a few files in &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&amp;#039;&lt;/ins&gt;/proc&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&amp;#039; &lt;/ins&gt;you should get to know:&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;#039;&amp;#039;&amp;#039;/proc/cpuinfo&amp;#039;&amp;#039;&amp;#039; = Shows you the CPU info for your machine.&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;#039;&amp;#039;&amp;#039;/proc/cpuinfo&amp;#039;&amp;#039;&amp;#039; = Shows you the CPU info for your machine.&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;#039;&amp;#039;&amp;#039;/proc/modules&amp;#039;&amp;#039;&amp;#039; = Shows you the currently enabled kernel modules that are active on your kernel.&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;#039;&amp;#039;&amp;#039;/proc/modules&amp;#039;&amp;#039;&amp;#039; = Shows you the currently enabled kernel modules that are active on your kernel.&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;#039;&amp;#039;&amp;#039;/proc/cmdline&amp;#039;&amp;#039;&amp;#039; = Shows you the boot &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;arguements &lt;/del&gt;used to boot your kernel.&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;#039;&amp;#039;&amp;#039;/proc/cmdline&amp;#039;&amp;#039;&amp;#039; = Shows you the boot &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;arguments &lt;/ins&gt;used to boot your kernel.&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;#039;&amp;#039;&amp;#039;/proc/version&amp;#039;&amp;#039;&amp;#039; = Shows you your kernel version.&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;#039;&amp;#039;&amp;#039;/proc/version&amp;#039;&amp;#039;&amp;#039; = Shows you your kernel version.&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;# It is important to note that some of these files have commands tied to them, for example.&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;# It is important to note that some of these files have commands tied to them &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;that can give you similar information but often formatted in a different way&lt;/ins&gt;, for example.&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;#039;&amp;#039;&amp;#039;/proc/modules&amp;#039;&amp;#039;&amp;#039; = lsmod&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;#039;&amp;#039;&amp;#039;/proc/modules&amp;#039;&amp;#039;&amp;#039; = &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&amp;#039;&amp;#039;&lt;/ins&gt;lsmod&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&amp;#039;&amp;#039;&lt;/ins&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;#* &amp;#039;&amp;#039;&amp;#039;/proc/mounts&amp;#039;&amp;#039;&amp;#039; = mount&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;#039;&amp;#039;&amp;#039;/proc/mounts&amp;#039;&amp;#039;&amp;#039; = &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&amp;#039;&amp;#039;&lt;/ins&gt;mount&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&amp;#039;&amp;#039;&lt;/ins&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;#* &amp;#039;&amp;#039;&amp;#039;/proc/version&amp;#039;&amp;#039;&amp;#039; = uname -a&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;#039;&amp;#039;&amp;#039;/proc/version&amp;#039;&amp;#039;&amp;#039; = &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&amp;#039;&amp;#039;&lt;/ins&gt;uname -a&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&amp;#039;&amp;#039;&lt;/ins&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;# Normally it is best to use the command version to lookup the information as it is normally formatted to be easier to read and understand.&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;# Normally it is best to use the command version to lookup the information as it is normally formatted to be easier to read and understand.&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;# Explore &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;around with &lt;/del&gt;these commands and find the differences between the command line and file output versions.&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;# Explore &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;all of &lt;/ins&gt;these &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;files and &lt;/ins&gt;commands and find the differences between the command line and file output versions &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;as well as what types of information are available&lt;/ins&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;== Exploring /dev ==&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;== Exploring /dev ==&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;# &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;now change &lt;/del&gt;directories to /dev and list the files. Notice &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;that &lt;/del&gt;there are &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ALOT&lt;/del&gt;, but don&amp;#039;t worry there is organization in the mess. Each file, like in /proc, is actually a device or interface on the machine. Here is a list of the most common interfaces you will see:&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;# &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Change &lt;/ins&gt;directories to &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&amp;#039;&lt;/ins&gt;/dev&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&amp;#039; &lt;/ins&gt;and list the &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;quot;&lt;/ins&gt;files&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;quot;&lt;/ins&gt;. Notice there are &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;A LOT&lt;/ins&gt;, but don&amp;#039;t worry&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, &lt;/ins&gt;there is organization in the mess. Each &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;quot;&lt;/ins&gt;file&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;quot;&lt;/ins&gt;, like in &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&amp;#039;&lt;/ins&gt;/proc&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&amp;#039;&lt;/ins&gt;, is actually a device or interface on the machine &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;so &amp;#039;&amp;#039;/dev&amp;#039;&amp;#039; is actually another pseudo-filesystem&lt;/ins&gt;. Here is a list of the most common interfaces you will see:&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;#039;&amp;#039;&amp;#039;/dev/sd*&amp;#039;&amp;#039;&amp;#039; = SATA Hard 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;#* &amp;#039;&amp;#039;&amp;#039;/dev/sd*&amp;#039;&amp;#039;&amp;#039; = SATA Hard Drives&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;#039;&amp;#039;&amp;#039;/dev/hd*&amp;#039;&amp;#039;&amp;#039; = IDE Hard 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;#* &amp;#039;&amp;#039;&amp;#039;/dev/hd*&amp;#039;&amp;#039;&amp;#039; = IDE Hard Drives&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-l27&quot;&gt;Line 27:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 27:&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;# There are also some commands you should learn that will help you with detecting, and looking up devices:&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;# There are also some commands you should learn that will help you with detecting, and looking up devices:&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;#039;&amp;#039;&amp;#039;lsusb&amp;#039;&amp;#039;&amp;#039; = List USB Devices (Bus, Device, ID, and advertised vendor)&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;#039;&amp;#039;&amp;#039;lsusb&amp;#039;&amp;#039;&amp;#039; = List USB Devices (Bus, Device, ID, and advertised vendor)&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: Many virtual machines do not include a virtual &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;usb &lt;/del&gt;controller which means the &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;usb &lt;/del&gt;drivers and software including lsusb are not installed.&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: Many virtual machines do not include a virtual &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;USB &lt;/ins&gt;controller which means the &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;USB &lt;/ins&gt;drivers and software including &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&amp;#039;&amp;#039;&lt;/ins&gt;lsusb&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&amp;#039;&amp;#039; &lt;/ins&gt;are not installed.&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;#039;&amp;#039;&amp;#039;lspci&amp;#039;&amp;#039;&amp;#039; = List PCI Devices (Bus, Type, Advertised Name, Revision)&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;#039;&amp;#039;&amp;#039;lspci&amp;#039;&amp;#039;&amp;#039; = List PCI Devices (Bus, Type, Advertised Name, Revision)&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;#039;&amp;#039;&amp;#039;dmesg&amp;#039;&amp;#039;&amp;#039; = Display or Driver Message. This shows kernel messages that are normally linked to adding, or removing devices.&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;#039;&amp;#039;&amp;#039;dmesg&amp;#039;&amp;#039;&amp;#039; = Display or Driver Message. This shows kernel messages that are normally linked to adding, or removing devices.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>BenFranske</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_11&amp;diff=7319&amp;oldid=prev</id>
		<title>BenFranske: /* Adding a 2nd disk */</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_11&amp;diff=7319&amp;oldid=prev"/>
		<updated>2018-03-12T03:49:22Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Adding a 2nd disk&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 03:49, 12 March 2018&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-l36&quot;&gt;Line 36:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 36:&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 start, run cfdisk /dev/sdb as root. &amp;#039;&amp;#039;cfdisk&amp;#039;&amp;#039; is a graphical version of &amp;#039;&amp;#039;fdisk&amp;#039;&amp;#039;, which is a tool used to setup disk partitioning. Note that &amp;#039;&amp;#039;fdisk&amp;#039;&amp;#039; only sets up the MBR, and does not actually format the drive. Also notice how we tell &amp;#039;&amp;#039;cfdisk&amp;#039;&amp;#039; what drive we want to format by appending the drive file to the end of the command.&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 start, run cfdisk /dev/sdb as root. &amp;#039;&amp;#039;cfdisk&amp;#039;&amp;#039; is a graphical version of &amp;#039;&amp;#039;fdisk&amp;#039;&amp;#039;, which is a tool used to setup disk partitioning. Note that &amp;#039;&amp;#039;fdisk&amp;#039;&amp;#039; only sets up the MBR, and does not actually format the drive. Also notice how we tell &amp;#039;&amp;#039;cfdisk&amp;#039;&amp;#039; what drive we want to format by appending the drive file to the end of the command.&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;#* Note: some very large drives can no longer use MBR partition tables and there are other reasons to switch to the newer standard for partitioning, GPT partition tables. In order to do that you would use different tools such as gdisk and cgdisk instead of fdisk and cfdisk. Note that there are several other differences in the way GPT partitions work so you&amp;#039;ll want to do some research about them before you try using them.&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;#* Note: some very large drives can no longer use MBR partition tables and there are other reasons to switch to the newer standard for partitioning, GPT partition tables. In order to do that you would use different tools such as gdisk and cgdisk instead of fdisk and cfdisk. Note that there are several other differences in the way GPT partitions work so you&amp;#039;ll want to do some research about them before you try using them.&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;# If you are asked what type of partition table to use for the drive select &amp;quot;dos&amp;quot; which uses the MBR type. Once in &amp;#039;&amp;#039;cfdisk&amp;#039;&amp;#039;, Press the New option. Now select Primary as we are making a Primary partition, then for the size set it to &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;6GB&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;# If you are asked what type of partition table to use for the drive select &amp;quot;dos&amp;quot; which uses the MBR type. Once in &amp;#039;&amp;#039;cfdisk&amp;#039;&amp;#039;, Press the New option. Now select Primary as we are making a Primary partition, then for the size set it to &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;5GB&lt;/ins&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;# Now, use the arrow keys to go down to the Free Space, and press enter to Select New. Again, set it to Primary, and set it to &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;3GB&lt;/del&gt;. Then press Enter.&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;# Now, use the arrow keys to go down to the Free Space, and press enter to Select New. Again, set it to Primary, and set it to &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;2GB&lt;/ins&gt;. Then press Enter.&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;# At this point we should have two partitions, one named sdb1 with a size of about 5GB (the program will round down to the closest boundary), and sdb2 which takes up the next &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;3GB &lt;/del&gt;or so of the drive. At this point, use the arrow keys to select Write, and press enter. You will be warned that this will write the table to the disk. enter &amp;quot;yes&amp;quot;, and press enter to confirm.&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;# At this point we should have two partitions, one named sdb1 with a size of about 5GB (the program will round down to the closest boundary), and sdb2 which takes up the next &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;2GB &lt;/ins&gt;or so of the drive. At this point, use the arrow keys to select Write, and press enter. You will be warned that this will write the table to the disk. enter &amp;quot;yes&amp;quot;, and press enter to confirm.&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 on the bottom you see &amp;quot;The partition table has been altered&amp;quot;, then you have successfully written the MBR to the drive. Now you can navigate to quit to exit the program.&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 on the bottom you see &amp;quot;The partition table has been altered&amp;quot;, then you have successfully written the MBR to the drive. Now you can navigate to quit to exit the program.&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;# Now run &amp;#039;&amp;#039;ls -l /dev | grep sdb&amp;#039;&amp;#039;. Notice how the two partitions, sdb1 and sdb2 show up.&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;# Now run &amp;#039;&amp;#039;ls -l /dev | grep sdb&amp;#039;&amp;#039;. Notice how the two partitions, sdb1 and sdb2 show up.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>BenFranske</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_11&amp;diff=7164&amp;oldid=prev</id>
		<title>BenFranske: /* Adding a 2nd disk */</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_11&amp;diff=7164&amp;oldid=prev"/>
		<updated>2017-10-30T22:29:47Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Adding a 2nd disk&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 22:29, 30 October 2017&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-l38&quot;&gt;Line 38:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 38:&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 are asked what type of partition table to use for the drive select &amp;quot;dos&amp;quot; which uses the MBR type. Once in &amp;#039;&amp;#039;cfdisk&amp;#039;&amp;#039;, Press the New option. Now select Primary as we are making a Primary partition, then for the size set it to 6GB.  &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 are asked what type of partition table to use for the drive select &amp;quot;dos&amp;quot; which uses the MBR type. Once in &amp;#039;&amp;#039;cfdisk&amp;#039;&amp;#039;, Press the New option. Now select Primary as we are making a Primary partition, then for the size set it to 6GB.  &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;# Now, use the arrow keys to go down to the Free Space, and press enter to Select New. Again, set it to Primary, and set it to 3GB. Then press Enter.&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;# Now, use the arrow keys to go down to the Free Space, and press enter to Select New. Again, set it to Primary, and set it to 3GB. Then press Enter.&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;# At this point we should have two partitions, one named sdb1 with a size of about &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;6GB &lt;/del&gt;(the program will round down to the closest boundary), and sdb2 which takes up the next 3GB or so of the drive. At this point, use the arrow keys to select Write, and press enter. You will be warned that this will write the table to the disk. enter &amp;quot;yes&amp;quot;, and press enter to confirm.&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;# At this point we should have two partitions, one named sdb1 with a size of about &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;5GB &lt;/ins&gt;(the program will round down to the closest boundary), and sdb2 which takes up the next 3GB or so of the drive. At this point, use the arrow keys to select Write, and press enter. You will be warned that this will write the table to the disk. enter &amp;quot;yes&amp;quot;, and press enter to confirm.&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 on the bottom you see &amp;quot;The partition table has been altered&amp;quot;, then you have successfully written the MBR to the drive. Now you can navigate to quit to exit the program.&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 on the bottom you see &amp;quot;The partition table has been altered&amp;quot;, then you have successfully written the MBR to the drive. Now you can navigate to quit to exit the program.&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;# Now run &amp;#039;&amp;#039;ls -l /dev | grep sdb&amp;#039;&amp;#039;. Notice how the two partitions, sdb1 and sdb2 show up.&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;# Now run &amp;#039;&amp;#039;ls -l /dev | grep sdb&amp;#039;&amp;#039;. Notice how the two partitions, sdb1 and sdb2 show up.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>BenFranske</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_11&amp;diff=6867&amp;oldid=prev</id>
		<title>BenFranske: /* Mounting Partitions */</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_ITC-2480_Lab_11&amp;diff=6867&amp;oldid=prev"/>
		<updated>2016-04-07T02:58:25Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Mounting Partitions&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 02:58, 7 April 2016&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-l49&quot;&gt;Line 49:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 49:&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;== Mounting Partitions ==  &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;== Mounting Partitions ==  &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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;# &lt;/del&gt;There are two main ways to mount disks in linux. One is done manually, and the other is to setup mounting at boot.&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;ol&amp;gt;&lt;/ins&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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;# &lt;/del&gt;To start, we will learn how to manually mount a partition. change into the /mnt directory and then create a folder called part1. Now cd into the part1 folder and create a empty file called unmounted.&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;li&amp;gt; &lt;/ins&gt;There are two main ways to mount disks in linux. One is done manually, and the other is to setup mounting at boot.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/li&amp;gt;&lt;/ins&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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;# &lt;/del&gt;Now, go back to the mnt directory. We are now going to use the mount command to mount the first partition we created to the part1 folder. To do this, we will run &amp;#039;&amp;#039;mount /dev/sdb1 /mnt/part1&amp;#039;&amp;#039; as root. Now, go back into the part1 folder and list files. Notice how the file you made called unmounted no longer exists. This is because the folder is being used as the mount point for the partition. Now change back to the /mnt folder.&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;li&amp;gt; &lt;/ins&gt;To start, we will learn how to manually mount a partition. change into the /mnt directory and then create a folder called part1. Now cd into the part1 folder and create a empty file called unmounted.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/li&amp;gt;&lt;/ins&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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;# &lt;/del&gt;To unmount the partition, run the command &amp;#039;&amp;#039;umount /mnt/part1&amp;#039;&amp;#039;. Now list the contents of the folder part1 again. Notice how the unmounted file is now back. This is because when a drive is mounted to the file, it overlays on top of any files in the folder, but it does not delete or touch the files.&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;li&amp;gt; &lt;/ins&gt;Now, go back to the mnt directory. We are now going to use the mount command to mount the first partition we created to the part1 folder. To do this, we will run &amp;#039;&amp;#039;mount /dev/sdb1 /mnt/part1&amp;#039;&amp;#039; as root. Now, go back into the part1 folder and list files. Notice how the file you made called unmounted no longer exists. This is because the folder is being used as the mount point for the partition. Now change back to the /mnt folder.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/li&amp;gt;&lt;/ins&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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;# &lt;/del&gt;Now we are going to make a folder called btrfs in /mnt. Once created, using the file editor of your choice, open up the file /etc/fstab.&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;li&amp;gt; &lt;/ins&gt;To unmount the partition, run the command &amp;#039;&amp;#039;umount /mnt/part1&amp;#039;&amp;#039;. Now list the contents of the folder part1 again. Notice how the unmounted file is now back. This is because when a drive is mounted to the file, it overlays on top of any files in the folder, but it does not delete or touch the files.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/li&amp;gt;&lt;/ins&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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;# &lt;/del&gt;The fstab file is used to tell a linux system what drives and partitions is should mount as boot, as well as mount options and where to mount the partitions. On the bottom of the file, add the following:&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;li&amp;gt; &lt;/ins&gt;Now we are going to make a folder called btrfs in /mnt. Once created, using the file editor of your choice, open up the file /etc/fstab.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/li&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;li&amp;gt; &lt;/ins&gt;The fstab file is used to tell a linux system what drives and partitions is should mount as boot, as well as mount options and where to mount the partitions. On the bottom of the file, add the following:&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;pre&amp;gt;/dev/sdb1       /mnt/part1      ext4    defaults        0       0&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;pre&amp;gt;/dev/sdb1       /mnt/part1      ext4    defaults        0       0&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;/dev/sdb2       /mnt/btrfs      btrfs   defaults        0       0&amp;lt;/pre&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;/dev/sdb2       /mnt/btrfs      btrfs   defaults        0       0&amp;lt;/pre&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;gt; &amp;lt;/li&lt;/ins&gt;&amp;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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;# &lt;/del&gt;Adding these lines will tell the fstab file to mount both partitions at boot to the folders we created. To mount the partitions without rebooting or using the full mount command syntax, we can just run mount -a which will load and mount all partitions in the fstab file.&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;li&amp;gt; &lt;/ins&gt;Adding these lines will tell the fstab file to mount both partitions at boot to the folders we created. To mount the partitions without rebooting or using the full mount command syntax, we can just run mount -a which will load and mount all partitions in the fstab file.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/li&amp;gt;&lt;/ins&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;&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;== Disk and File Usage ==&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;== Disk and File Usage ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>BenFranske</name></author>
	</entry>
</feed>