<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"><title>Start Coding Now - linux</title><link href="https://startcodingnow.com/" rel="alternate"/><link href="https://startcodingnow.com/category/linux/feed" rel="self"/><id>https://startcodingnow.com/</id><updated>2020-01-13T00:00:00-07:00</updated><entry><title>10 Gigabit Networking Between Home Server and Computer</title><link href="https://startcodingnow.com/10-gigabit-networking" rel="alternate"/><published>2020-01-13T00:00:00-07:00</published><updated>2020-01-13T00:00:00-07:00</updated><author><name>Lance Goyke</name></author><id>tag:startcodingnow.com,2020-01-13:/10-gigabit-networking</id><summary type="html">&lt;p&gt;In my other life, I film a lot of &lt;a class="reference external" href="https://www.youtube.com/lancegoyke"&gt;videos on
fitness&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;After a recent lecture a few friends and I did for charity, I found out…
I’m out of storage space!&lt;/p&gt;
&lt;p&gt;I built a server for my home to not only store the videos I film, but
also …&lt;/p&gt;</summary><content type="html">&lt;p&gt;In my other life, I film a lot of &lt;a class="reference external" href="https://www.youtube.com/lancegoyke"&gt;videos on
fitness&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;After a recent lecture a few friends and I did for charity, I found out…
I’m out of storage space!&lt;/p&gt;
&lt;p&gt;I built a server for my home to not only store the videos I film, but
also as a media server to store and watch some of the bluray and DVD
content I’ve purchased over the years.&lt;/p&gt;
&lt;p&gt;Problem is I have about 5TB of my own storage. And I have a few
computers lying around that can help with the job of transcoding my
ripped bluray and DVD media.&lt;/p&gt;
&lt;p&gt;But if I do that on multiple devices, I’ll still have to transfer them
back to the server.&lt;/p&gt;
&lt;p&gt;So I decided to set up 10 gigabit ethernet between my main computer and
my server.&lt;/p&gt;
&lt;div class="topic"&gt;
&lt;p class="topic-title"&gt;&lt;strong&gt;Bits vs Bytes&lt;/strong&gt;
Networking often describes speed in bits.
In our daily computing, we usually use bytes.
One byte is comprised of eight bits.&lt;/p&gt;
&lt;p&gt;Ex 1) 1 gigabit networking means 125 megabytes per second
Ex 2) 10 gigabit networking means 1.25 gigabytes per second&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="inventory-what-youll-need-to-get-this-going"&gt;
&lt;h2&gt;Inventory - what you’ll need to get this going&lt;/h2&gt;
&lt;p&gt;I will outline what I bought exactly at the end of this section, but
here’s an overview so you can pick and choose what you need.&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;At least two computers&lt;/li&gt;
&lt;li&gt;Two networking interfaces&lt;/li&gt;
&lt;li&gt;A 10 gigabit switch&lt;/li&gt;
&lt;li&gt;The appropriate cables (one for each computer)&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="section" id="network-card"&gt;
&lt;h3&gt;Network card&lt;/h3&gt;
&lt;p&gt;My server is in a huge tower (Fractal Design Define XL R2) with a huge
motherboard (Supermicro X9DRH-7F). There is a variant of this
motherboard with onboard 10 gigabit ethernet, but the cost was double at
the time of purchase, so I opted for this cheaper one.&lt;/p&gt;
&lt;p&gt;To get 10 gigabit networking, I will need a 10 gigabit network adapter.
I can use one of my six PCIe 3.0 x8 slots, with a &lt;a class="reference external" href="http://www.pearsonitcertification.com/articles/article.aspx?p=2731934&amp;amp;seqNum=24"&gt;max transfer rate of
about
8GBps&lt;/a&gt;,
is plenty fast enough to take a 10 gigabit network adapter card. There
could even be two or four 10GbE interfaces on that card and it would
still work, since 10 Gb = 1.25 GB and 40 Gb = 5 GB.&lt;/p&gt;
&lt;p&gt;Now there are two major types of connectors used for 10 gigabit
ethernet: the standard-looking RJ45, and the intimidating SFP+.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="connector-type"&gt;
&lt;h3&gt;Connector type&lt;/h3&gt;
&lt;p&gt;There are four major methods for home use&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;Direct Attach Copper (DAC) cable – cheap but only works for short
distances&lt;/li&gt;
&lt;li&gt;LC connector for multi-mode fiber optic cable – better for longer
distances across the home&lt;/li&gt;
&lt;li&gt;LC connector for single-mode fiber optics – good for REALLY long
distances, but doesn’t seem to make sense for home use&lt;/li&gt;
&lt;li&gt;RJ45 – only really makes sense if you already have at least Cat 6a
ethernet cables&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I found &lt;a class="reference external" href="https://youtu.be/MDiiHN0MPdA"&gt;this video from Craft Computing on
YouTube&lt;/a&gt; very helpful here. More on
this when we talk about the 10 gigabit switch in a few sections.&lt;/p&gt;
&lt;p&gt;My server is sitting right underneath my work desk, so I didn’t need
long cables. I was going to pick an RJ45 connector until I discovered…&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="thunderbolt-3-to-10-gigabit-adapter"&gt;
&lt;h3&gt;Thunderbolt 3 to 10 Gigabit Adapter&lt;/h3&gt;
&lt;p&gt;It would have been easy to just buy two of those network cards above and
call it day, but my main computer is actually a Lenovo X1 Extreme Gen 1
laptop. I can’t just plug in a traditional PCIe network card.&lt;/p&gt;
&lt;p&gt;This laptop is very capable (read: expensive) and comes with Thunderbolt
3, which is EVEN FASTER than 10 GbE, running 40 Gbps through the proper
cables. But I need an adapter to get the 10 GbE into the TB 3 port on my
laptop.&lt;/p&gt;
&lt;p&gt;QNAP makes just such an adapter – one for SFP+ connections, and one for
RJ45 connections. The SFP+ adapter was cheaper, so I chose that.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="gigabit-switch"&gt;
&lt;h3&gt;10 Gigabit Switch&lt;/h3&gt;
&lt;p&gt;I had intended to just plug the two computers together and call it a
day, but I decided a much more elegant solution would be to plug each
machine into a switch and let the switch facilitate the connections.&lt;/p&gt;
&lt;p&gt;The aforementioned YouTube video from Craft Computing detailed a super
affordable product: the Mikrotik CRS305-1G-4S+IN. It comes with a power
supply, is nearly silent when running, and has one gigabit port to hook
up to the main router (if desired) and four 10 gigabit ports to use as a
switch.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="summary-purchase-list"&gt;
&lt;h3&gt;Summary Purchase List&lt;/h3&gt;
&lt;p&gt;This is assuming your have a laptop with Thunderbolt 3 and a tower
server with open PCIe lanes.&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;a class="reference external" href="https://amzn.to/2R0ZJNP"&gt;Mikrotik CRS305-1G-4S+IN&lt;/a&gt; - 10 gigabit
switch&lt;/li&gt;
&lt;li&gt;&lt;a class="reference external" href="https://www.ebay.com/itm/MNPA19-XTR-10GB-MELLANOX-CONNECTX-2-PCI-E-10G-SFP-NETWORK-CARD-W-BOTH-BRACKET/131634470127?ssPageName=STRK%3AMEBIDX%3AIT&amp;amp;_trksid=p2057872.m2749.l2649"&gt;Mellanox
MNPA19-XTR&lt;/a&gt;
- 10 gigabit SFP+ network card for server
(&lt;a class="reference external" href="https://www.ebay.com/itm/Mellanox-MNPH29D-XTR-ConnectX-Dual-Port-10Gigabit-Network-PCI-E-Card-w-2x-SFP/402027133923?epid=16021419048&amp;amp;hash=item5d9aaf3be3:g:jLcAAOSwJ2pbrm72"&gt;2-port&lt;/a&gt;
and &lt;a class="reference external" href="https://amzn.to/2T8Kc0Z"&gt;4-port&lt;/a&gt; variants)&lt;/li&gt;
&lt;li&gt;&lt;a class="reference external" href="https://amzn.to/2N8HYew"&gt;QNAP QNA-T310G1S&lt;/a&gt; - 10 gigabit to
Thunderbolt 3 network adapter for laptop&lt;/li&gt;
&lt;li&gt;(2x) &lt;a class="reference external" href="https://amzn.to/2R3w7zk"&gt;DAC cable&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="section" id="getting-it-working-not-quite-plug-and-play"&gt;
&lt;h2&gt;Getting It Working - NOT quite plug and play&lt;/h2&gt;
&lt;p&gt;One thing I need to make perfectly clear: I am not a networking guru. I
just like to tinker around and learn new stuff. So when that Craft
Computing video said this solution was “plug and play”, it left me a
little confused when I plugged everything in and it wasn’t working.&lt;/p&gt;
&lt;p&gt;I just needed to realize how my computers were connecting.&lt;/p&gt;
&lt;div class="section" id="samba-shares"&gt;
&lt;h3&gt;Samba Shares&lt;/h3&gt;
&lt;p&gt;When I first got my server running, I set up a Samba SMB share to my
main storage folder so that I had a new place to move my old files.&lt;/p&gt;
&lt;p&gt;That worked pretty quickly. I was happy with that.&lt;/p&gt;
&lt;p&gt;So I plugged in all my 10 gigabit hardware and tried transferring files…&lt;/p&gt;
&lt;p&gt;I was able to transfer files, but only at a dismal 40-50 MBps. That was
not even saturating the write speed on my HDD, which I expected to be at
MINIMUM 80 MBps.&lt;/p&gt;
&lt;img alt="dismal 40-50 MBps transfer rate" src="./images/47MBps-transfer-rate.png"/&gt;
&lt;p&gt;The problem was that after setting up my 10 gigabit connections, I kept
using that plain ol’ 1 gigabit connection I had already been using.
Notice what is highlighted on the left side of the following two
screenshots.&lt;/p&gt;
&lt;a class="reference external image-reference" href="./images/FLEXION-server-selected-in-Windows-Explorer.png"&gt;
&lt;img alt="FLEXION server selected in Windows Explorer sidebar" class="image-process-bottom-left-thumbnail" sizes="(min-width: 557px) 525px, (min-width: 375px) 343px, 343px" src="./images/derivatives/bottom-left-thumbnail/525w/FLEXION-server-selected-in-Windows-Explorer.png" srcset="./images/derivatives/bottom-left-thumbnail/343w/FLEXION-server-selected-in-Windows-Explorer.png 343w, ./images/derivatives/bottom-left-thumbnail/525w/FLEXION-server-selected-in-Windows-Explorer.png 525w"/&gt;
&lt;/a&gt;
&lt;a class="reference external image-reference" href="./images/IP-address-network-drive-selected-in-Windows-Explorer.png"&gt;
&lt;img alt="192.168.88.51 server selected in Windows Explorer sidebar" class="image-process-bottom-left-thumbnail" sizes="(min-width: 557px) 525px, (min-width: 375px) 343px, 343px" src="./images/derivatives/bottom-left-thumbnail/525w/IP-address-network-drive-selected-in-Windows-Explorer.png" srcset="./images/derivatives/bottom-left-thumbnail/343w/IP-address-network-drive-selected-in-Windows-Explorer.png 343w, ./images/derivatives/bottom-left-thumbnail/525w/IP-address-network-drive-selected-in-Windows-Explorer.png 525w"/&gt;
&lt;/a&gt;
&lt;p&gt;Both of those network locations appear the same. When I click one of
them in the sidebar on my Windows 10 laptop, it shows the same root
folders. Navigating through shows the same folders as well.&lt;/p&gt;
&lt;p&gt;The difference is that when connecting, I typed in a different IP
address.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="section" id="setting-up-windows-network-share"&gt;
&lt;h2&gt;Setting Up Windows Network Share&lt;/h2&gt;
&lt;p&gt;First, we need to find addresses. The Mikrotik CRS305-1G-4S+IN comes
configured with an IP of 192.168.88.1. I decided to move my Mellanox 10
GbE server card and my QNAP QNA-T310G1S 10 GbE laptop adapter to the
192.168.88.xxx subnet.&lt;/p&gt;
&lt;div class="section" id="configure-ip-on-windows-adapter"&gt;
&lt;h3&gt;Configure IP on Windows Adapter&lt;/h3&gt;
&lt;p&gt;Right click your networking icon in your Windows task tray and select
“Open Network &amp;amp; Internet settings”.&lt;/p&gt;
&lt;img alt="Open Network &amp;amp; Internet settings" src="./images/configure-ip-on-windows-adapter-1.png"/&gt;
&lt;p&gt;Select “Change Adapter Options”.&lt;/p&gt;
&lt;a class="reference external image-reference" href="./images/configure-ip-on-windows-adapter-2.png"&gt;
&lt;img alt="Change Adapter Options" class="image-process-bottom-left-thumbnail" sizes="(min-width: 557px) 525px, (min-width: 375px) 343px, 343px" src="./images/derivatives/bottom-left-thumbnail/525w/configure-ip-on-windows-adapter-2.png" srcset="./images/derivatives/bottom-left-thumbnail/343w/configure-ip-on-windows-adapter-2.png 343w, ./images/derivatives/bottom-left-thumbnail/525w/configure-ip-on-windows-adapter-2.png 525w"/&gt;
&lt;/a&gt;
&lt;p&gt;Right-click the 10 gigabit network adapter and select “Properties”.&lt;/p&gt;
&lt;a class="reference external image-reference" href="./images/configure-ip-on-windows-adapter-3.png"&gt;
&lt;img alt="Right-click the 10 gigabit network adapter and select “Properties”" class="image-process-top-left-thumbnail" sizes="(min-width: 557px) 525px, (min-width: 375px) 343px, 343px" src="./images/derivatives/top-left-thumbnail/525w/configure-ip-on-windows-adapter-3.png" srcset="./images/derivatives/top-left-thumbnail/343w/configure-ip-on-windows-adapter-3.png 343w, ./images/derivatives/top-left-thumbnail/525w/configure-ip-on-windows-adapter-3.png 525w"/&gt;
&lt;/a&gt;
&lt;p&gt;Make sure “Internet Protocol Version 4 (TCP/IPv4)” is enabled and double
click it.&lt;/p&gt;
&lt;img alt="Checkbox is selected next to “Internet Protocol Version 4”" src="./images/configure-ip-on-windows-adapter-4.png"/&gt;
&lt;p&gt;Configure it manually to use the same sub-network as your switch. If you
bought the Mikrotik one and didn’t change it, the subnet is
192.168.88.xxx. You just have to fill in the last number to give this
network adapter it’s own location.&lt;/p&gt;
&lt;p&gt;Since I’m not connecting to the internet, I just left the default
gateway and DNS server addresses blank because I don’t need them. My
Internet traffic is routed through my Gigabit ethernet or my WiFI
adapter.&lt;/p&gt;
&lt;img alt="Manually configuring IP address" src="./images/configure-ip-on-windows-adapter-5.png"/&gt;
&lt;p&gt;Accept the changes and move to your server.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="configure-ip-on-ubuntu"&gt;
&lt;h3&gt;Configure IP on Ubuntu&lt;/h3&gt;
&lt;p&gt;Go to network settings.&lt;/p&gt;
&lt;a class="reference external image-reference" href="./images/settings-for-linux-10gbe-card-1.png"&gt;
&lt;img alt="Click the arrow in the top right of the Ubuntu desktop, click on the network card and select “Wired Settings”" class="image-process-top-right-thumbnail" sizes="(min-width: 557px) 525px, (min-width: 375px) 343px, 343px" src="./images/derivatives/top-right-thumbnail/525w/settings-for-linux-10gbe-card-1.png" srcset="./images/derivatives/top-right-thumbnail/343w/settings-for-linux-10gbe-card-1.png 343w, ./images/derivatives/top-right-thumbnail/525w/settings-for-linux-10gbe-card-1.png 525w"/&gt;
&lt;/a&gt;
&lt;p&gt;Click the settings gear icon for your 10 gigabit network card.&lt;/p&gt;
&lt;img alt="Network settings" src="./images/network-settings.png"/&gt;
&lt;p&gt;In IPv4, add an IP address on the same sub-network you selected earlier.
If you went with the default for the Mikrotik switch, then the first
three numbers have to be 192.168.88.&lt;/p&gt;
&lt;img alt="Configure the correct subnet" src="./images/setting-ipv4.png"/&gt;
&lt;/div&gt;
&lt;div class="section" id="set-up-a-samba-share-on-linux"&gt;
&lt;h3&gt;Set up a Samba Share on Linux&lt;/h3&gt;
&lt;p&gt;Now we need to have a folder that we want to share. In my case, I have
four 10 TB HDDs that I have mirrored and pooled together. So two serve
as a RAID 1 redundant mirror for the other two, which are pooled
together to be displayed on my file browser as one folder. It’s pretty
neat and ensures I’ll always have my stuff even if a drive fails.&lt;/p&gt;
&lt;p&gt;I have mounted this pooled virtual drive in my /mnt folder. The easiest
and most visual way to share this folder on my local network is to
navigate to it in my Ubuntu Desktop file browser. The default file
browser is “Nautilus”.&lt;/p&gt;
&lt;img alt="See Samba folder in Linux desktop file browser" src="./images/selecting-samba-folder.png"/&gt;
&lt;p&gt;Right-click the folder and select “Local Network Share”.&lt;/p&gt;
&lt;a class="reference external image-reference" href="./images/select-local-network-share.png"&gt;
&lt;img alt="Samba folder right clicked and highlighting “Local Network Share”" class="image-process-bottom-right-thumbnail" sizes="(min-width: 557px) 525px, (min-width: 375px) 343px, 343px" src="./images/derivatives/bottom-right-thumbnail/525w/select-local-network-share.png" srcset="./images/derivatives/bottom-right-thumbnail/343w/select-local-network-share.png 343w, ./images/derivatives/bottom-right-thumbnail/525w/select-local-network-share.png 525w"/&gt;
&lt;/a&gt;
&lt;p&gt;Configure your sharing settings. I kept the name of the folder and
allowed more access to it so that people on my local network dont need
my help getting logged into the folder.&lt;/p&gt;
&lt;img alt="Folder sharing dialog with name of “Intel 660P”" src="./images/create-intel660p-share.png"/&gt;
&lt;p&gt;Then hit “Create Share”.&lt;/p&gt;
&lt;p&gt;If you run into an error that says
&lt;tt class="docutils literal"&gt;Nautilus needs to add some permissions to your folder&lt;/tt&gt; in order to
share it, try to add them automatically (if that is indeed what you want
to do).&lt;/p&gt;
&lt;p&gt;If you’re hit with another error that says
&lt;tt class="docutils literal"&gt;Could not change the permissions of folder&lt;/tt&gt;, then we need superuser
privileges to get things straightened out.&lt;/p&gt;
&lt;p&gt;To confirm this is actually the problem, right-click on your desired
share folder and select “Properties” then “Permissions”. Here’s a
screenshot from another folder of mine that I want to share.&lt;/p&gt;
&lt;img alt="Intel660P permissions dialog box set to root" src="./images/root-permissions.png"/&gt;
&lt;p&gt;This is showing us that the folder is owned by the user “root”. Since I
am logged in as “lance”, I cannot change root’s folder. We’ll need to go
to the terminal and tell it “I am root”.&lt;/p&gt;
&lt;p&gt;Hit Ctrl + Alt + T to open up the Linux Terminal.&lt;/p&gt;
&lt;img alt="Empty Linux terminal" src="./images/terminal.png"/&gt;
&lt;p&gt;We need superuser privileges to change the permissions on this folder.
And we need to know the path of the folder. Mine is /mnt/Intel660P.
First we’ll change the owner of the directory and all of its contents.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;$&lt;span class="w"&gt; &lt;/span&gt;sudo&lt;span class="w"&gt; &lt;/span&gt;chown&lt;span class="w"&gt; &lt;/span&gt;--recursive&lt;span class="w"&gt; &lt;/span&gt;username:username&lt;span class="w"&gt; &lt;/span&gt;/path/to/folder
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;&lt;tt class="docutils literal"&gt;sudo&lt;/tt&gt; gives us superuser privileges (telling the terminal “I am
root”)&lt;/p&gt;
&lt;p&gt;&lt;tt class="docutils literal"&gt;chown&lt;/tt&gt; means “change the owner”&lt;/p&gt;
&lt;p&gt;&lt;tt class="docutils literal"&gt;&lt;span class="pre"&gt;--recursive&lt;/span&gt;&lt;/tt&gt; means “do this on all the sub-directories and contained
files”&lt;/p&gt;
&lt;p&gt;&lt;tt class="docutils literal"&gt;username:username&lt;/tt&gt; represents the user and the group that owns this
folder. Each user has a group that is the same as their username, and
that’s what I want to set my folder to.&lt;/p&gt;
&lt;p&gt;&lt;tt class="docutils literal"&gt;/path/to/folder&lt;/tt&gt; designates the file or folder we want to change&lt;/p&gt;
&lt;p&gt;Putting it all together, here is what I wrote to change the owner of my
folder&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;$&lt;span class="w"&gt; &lt;/span&gt;sudo&lt;span class="w"&gt; &lt;/span&gt;chown&lt;span class="w"&gt; &lt;/span&gt;--recursive&lt;span class="w"&gt; &lt;/span&gt;lance:lance&lt;span class="w"&gt; &lt;/span&gt;/mnt/Intel660P
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;And we can check to see if it worked by refreshing our Nautilus file
viewing and checking the Properties &amp;gt; Permissions again.&lt;/p&gt;
&lt;img alt="Intel660P permissions dialog box set to “me”" src="./images/chown-folder-results.png"/&gt;
&lt;p&gt;Nice! Now, I need others to be able to access the folder, so we’ll need
to change the permissions of this folder and the enclosed files.&lt;/p&gt;
&lt;p&gt;Easiest way on Ubuntu desktop is to change the “access” for “group” and
for “others”.&lt;/p&gt;
&lt;img alt="Intel660P permissions dialog box set with “Change Permissions for Enclosed Files” highlighted" src="./images/changing-permissions.png"/&gt;
&lt;p&gt;Then click on “Change Permissions for Enclosed Files…” and change to the
settings you want.&lt;/p&gt;
&lt;img alt="Owner, group, and others permissions for files and folders" src="./images/changing-permissions-for-enclosed-files.png"/&gt;
&lt;p&gt;Check out the &lt;a class="reference external" href="https://en.wikipedia.org/wiki/Chmod"&gt;chmod&lt;/a&gt; command if
you want to do it in the terminal.&lt;/p&gt;
&lt;p&gt;You can get a lot fancier with permissions if you set up samba shares.
&lt;a class="reference external" href="https://tutorials.ubuntu.com/tutorial/install-and-configure-samba#0"&gt;Click here for the basics of setting up samba
shares&lt;/a&gt;
and &lt;a class="reference external" href="https://help.ubuntu.com/community/Samba/SambaServerGuide"&gt;click here to get a more advanced samba
configuration.&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="create-new-network-share-on-windows"&gt;
&lt;h3&gt;Create New Network Share on Windows&lt;/h3&gt;
&lt;p&gt;NOW! This step was my big problem. I already had a folder on my Linux
server marked as a share. And I already had a link to that share set up
on my Windows computer. This gave my Windows computer access to the
storage on my Linux server.&lt;/p&gt;
&lt;p&gt;The problem was that this link was made BEFORE installing the 10 gigabit
network cards. So it was using plain ol’ gigabit (which is honestly fine
for my home use, but doesn’t seem as cool so I “needed” to upgrade).&lt;/p&gt;
&lt;p&gt;Let’s create a new network share on Windows that now uses this new
connection.&lt;/p&gt;
&lt;p&gt;On your Windows computer, hit WIN + E to open up Windows Explorer.&lt;/p&gt;
&lt;img alt="Open Windows Explorer" src="./images/create-network-share-windows-1.png"/&gt;
&lt;p&gt;Right-click “This PC” in the left sidebar and select “Add a Network
Location”. Note: you can also select “Map network drive…” if you want it
to be stored as a letter.&lt;/p&gt;
&lt;img alt="Right-click dialgo with “Add a Network Location” highlighted" src="./images/create-network-share-windows-2.png"/&gt;
&lt;p&gt;This will open the Add Network Location Wizard.&lt;/p&gt;
&lt;img alt="Add network location wizard" src="./images/create-network-share-windows-3.png"/&gt;
&lt;p&gt;Hit Next to continue.&lt;/p&gt;
&lt;p&gt;Select “Choose a custom network location” and select Next.&lt;/p&gt;
&lt;img alt="Custom network location" src="./images/create-network-share-windows-4.png"/&gt;
&lt;p&gt;Now is time to tell Windows where to look. You need your server’s 10
gigabit IPv4 address for this step. This was the last IP address we set
just a few steps ago. We will write…&lt;/p&gt;
&lt;pre class="literal-block"&gt;
\\IPA.DDR.ESS.XXX\SHARED_FOLDER
&lt;/pre&gt;
&lt;p&gt;Mine looks like this…&lt;/p&gt;
&lt;img alt="Internet or network address: \\192.168.88.51:raw-latex:`\Intel`660P" src="./images/create-network-share-windows-5.png"/&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="section" id="success"&gt;
&lt;h2&gt;Success!&lt;/h2&gt;
&lt;img alt="Transfer file rate of 222MBps" src="./images/create-network-share-windows-6.png"/&gt;
&lt;p&gt;Check out those transfer speeds! This is from a local &lt;a class="reference external" href="https://www.samsung.com/semiconductor/ssd/client-ssd/MZVLB1T0HALR/"&gt;Samsung NVMe
drive&lt;/a&gt;,
through a Direct Attach Copper cord, into a 10 gigabit switch, out
another DAC cord, and writing onto one of two spinning hard disks in my
server.&lt;/p&gt;
&lt;p&gt;As with most technology-based projects, this was TREMENDOUSLY
FRUSTRATING and then TREMENDOUSLY REWARDING. Hope this helps one of you
out there.&lt;/p&gt;
&lt;p&gt;What are you using your 10 gigabit network for? Anybody doing any photo
or video editing through it? Leave a comment below if you want an excuse
for a humble brag.&lt;/p&gt;
&lt;/div&gt;
</content><category term="linux"/><category term="10-gbe"/><category term="10-gigabit-ethernet"/><category term="10-gigabit-networking"/><category term="10-gigabit-switch"/><category term="bits"/><category term="bytes"/><category term="dac-cable"/><category term="direct-attach-copper"/><category term="linux"/><category term="mikrotik"/><category term="nautilus"/><category term="network-share"/><category term="networking"/><category term="samba"/><category term="share"/><category term="switch"/><category term="transfer-speeds"/><category term="ubuntu"/><category term="ubuntu-18-04"/><category term="windows"/></entry><entry><title>Fixing Bad Blocks Finder burnin “ERROR - unable to open device: /dev/sda [Device or resource is busy]”</title><link href="https://startcodingnow.com/fixing-bad-blocks-finder-burnin-error-device-busy" rel="alternate"/><published>2019-12-20T00:00:00-07:00</published><updated>2019-12-20T00:00:00-07:00</updated><author><name>Lance Goyke</name></author><id>tag:startcodingnow.com,2019-12-20:/fixing-bad-blocks-finder-burnin-error-device-busy</id><summary type="html">&lt;p class="first last"&gt;Help me access this device!&lt;/p&gt;
</summary><content type="html">&lt;div class="section" id="my-situation"&gt;
&lt;h2&gt;My situation&lt;/h2&gt;
&lt;p&gt;I had four equivalent drives.&lt;/p&gt;
&lt;p&gt;I had 2 x RAID 1 mirrors created with mdadm
(&lt;a class="reference external" href="https://www.digitalocean.com/community/tutorials/how-to-create-raid-arrays-with-mdadm-on-ubuntu-18-04#creating-a-raid-1-array"&gt;ref&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;I had both of these RAID 1 mirrors pooled together using mergerfs
(&lt;a class="reference external" href="https://blog.linuxserver.io/2017/06/24/the-perfect-media-server-2017/#settingupthedrivesusingmergerfs"&gt;ref&lt;/a&gt;)&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="the-problem"&gt;
&lt;h2&gt;The problem&lt;/h2&gt;
&lt;p&gt;I tried to run a burnin with bad blocks finder.&lt;/p&gt;
&lt;pre class="code shell literal-block"&gt;
sudo&lt;span class="w"&gt; &lt;/span&gt;bbf&lt;span class="w"&gt; &lt;/span&gt;-c&lt;span class="w"&gt; &lt;/span&gt;&lt;mydevicecaptchacode&gt;&lt;span class="w"&gt; &lt;/span&gt;burnin&lt;span class="w"&gt; &lt;/span&gt;/dev/sda
&lt;/mydevicecaptchacode&gt;&lt;/pre&gt;
&lt;p&gt;I received an error.&lt;/p&gt;
&lt;pre class="code shell literal-block"&gt;
ERROR&lt;span class="w"&gt; &lt;/span&gt;-&lt;span class="w"&gt; &lt;/span&gt;unable&lt;span class="w"&gt; &lt;/span&gt;to&lt;span class="w"&gt; &lt;/span&gt;open&lt;span class="w"&gt; &lt;/span&gt;device:&lt;span class="w"&gt; &lt;/span&gt;/dev/sda&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;[&lt;/span&gt;Device&lt;span class="w"&gt; &lt;/span&gt;or&lt;span class="w"&gt; &lt;/span&gt;resource&lt;span class="w"&gt; &lt;/span&gt;is&lt;span class="w"&gt; &lt;/span&gt;busy&lt;span class="o"&gt;]&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;div class="section" id="unmounting-the-drives"&gt;
&lt;h2&gt;Unmounting the drives&lt;/h2&gt;
&lt;p&gt;I went in and unmounted my mergerfs pool and both of my mdadm arrays
from their respective spots in my /mnt folder.&lt;/p&gt;
&lt;pre class="code shell literal-block"&gt;
$&lt;span class="w"&gt; &lt;/span&gt;sudo&lt;span class="w"&gt; &lt;/span&gt;umount&lt;span class="w"&gt; &lt;/span&gt;/mnt/storage&lt;span class="w"&gt;
&lt;/span&gt;$&lt;span class="w"&gt; &lt;/span&gt;sudo&lt;span class="w"&gt; &lt;/span&gt;umount&lt;span class="w"&gt; &lt;/span&gt;/mnt/mirror1&lt;span class="w"&gt;
&lt;/span&gt;$&lt;span class="w"&gt; &lt;/span&gt;sudo&lt;span class="w"&gt; &lt;/span&gt;umount&lt;span class="w"&gt; &lt;/span&gt;/mnt/mirror2
&lt;/pre&gt;
&lt;p&gt;I tried the &lt;tt class="docutils literal"&gt;burnin&lt;/tt&gt; again here and was still receiving the ERROR.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="deactivating-the-mdadm-array"&gt;
&lt;h2&gt;Deactivating the mdadm array&lt;/h2&gt;
&lt;p&gt;I then stopped the mdadm arrays, zeroed their superblocks, commented out
persistent references to the array in &lt;tt class="docutils literal"&gt;/etc/fstab&lt;/tt&gt; file, commented out
the array definition in my &lt;tt class="docutils literal"&gt;/etc/mdadm/mdadm.conf&lt;/tt&gt; file, and updated
initramfs so that the early boot process doesn’t try to find these
arrays.
(&lt;a class="reference external" href="https://www.digitalocean.com/community/tutorials/how-to-create-raid-arrays-with-mdadm-on-ubuntu-18-04#resetting-existing-raid-devices"&gt;ref&lt;/a&gt;)&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="happily-ever-after"&gt;
&lt;h2&gt;Happily ever after&lt;/h2&gt;
&lt;p&gt;Now my first 10TB drive is doing a burnin… only 28 more hours to go
&lt;strong&gt;?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Hopefully this helps someone!&lt;/p&gt;
&lt;p&gt;Special thanks to &lt;em&gt;trapexit&lt;/em&gt; for not only his help figuring out the
issue, but for developing these tools in the first place. Check out his
&lt;a class="reference external" href="http://spawn.link"&gt;website&lt;/a&gt; or his
&lt;a class="reference external" href="https://github.com/trapexit"&gt;Github&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a class="reference external" href="https://github.com/trapexit/bbf/issues/20"&gt;Here’s a link to the original issue a opened on
Github.&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
</content><category term="linux"/><category term="burn-in"/><category term="devices"/><category term="drives"/><category term="fstab"/><category term="mdadm"/><category term="mergerfs"/><category term="raid"/><category term="raid-1"/><category term="trapexit"/></entry></feed>