{"id":1880,"date":"2024-01-31T18:58:36","date_gmt":"2024-01-31T23:58:36","guid":{"rendered":"https:\/\/www.unliterate.net\/?p=1880"},"modified":"2024-01-31T18:58:37","modified_gmt":"2024-01-31T23:58:37","slug":"today-i-learned-storage-expensive-data-priceless","status":"publish","type":"post","link":"https:\/\/www.unliterate.net\/index.php\/2024\/01\/31\/today-i-learned-storage-expensive-data-priceless\/","title":{"rendered":"Today I Learned: Storage expensive, Data priceless"},"content":{"rendered":"\n<p>We have a combination <a href=\"https:\/\/www.plex.tv\/media-server-downloads\" target=\"_blank\" rel=\"noreferrer noopener\">Plex Media<\/a>\/<a href=\"https:\/\/www.minecraft.net\/en-us\/download\/server\" target=\"_blank\" rel=\"noreferrer noopener\">Minecraft<\/a>\/Archive server that we&#8217;ve had since we purchased our first <a href=\"https:\/\/www.newegg.com\/black-wd-elements-6tb\/p\/N82E16822232981\" target=\"_blank\" rel=\"noreferrer noopener\">6TB Hard Drive<\/a> on December 30, 2019 ($99.99 at the time). After some time we upgraded to our massive <a href=\"https:\/\/www.newegg.com\/wd-elements-14tb-black\/p\/N82E16822234411\" target=\"_blank\" rel=\"noreferrer noopener\">14TB Hard Drive<\/a> ($293.00 at the time) on October 16, 2021. It took a bit over a couple years to fill things up, and now we recently invested into a <a href=\"https:\/\/www.bestbuy.com\/site\/6463053.p\" target=\"_blank\" rel=\"noreferrer noopener\">16TB Hard Drive<\/a> ($279.00 at purchase) to continue our storage needs.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ df -h\r\nFilesystem      Size  Used Avail Use% Mounted on\r\n\/dev\/sda3       457G  288G  169G  64% \/\r\n\/dev\/sda1      1014M  202M  813M  20% \/boot\r\n\/dev\/sdd1        13T   12T   52G 100% \/mnt\/usb14\r\n\/dev\/sdc1       5.5T  4.3T  962G  82% \/mnt\/usb03\r\n\r<\/code><\/pre>\n\n\n\n<p>Now it&#8217;s time to get this new drive ready for usage.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p><strong>Step 1: Plug it in<\/strong><br>Plug it in. 3 USB devices and 2 ports, so I had to get a USB 2.0 hub. The PC itself only has 2.0 hubs, so we go with what we got.<\/p>\n\n\n\n<p><strong>Step 2: Boot things up<\/strong><br>With the USB hub things might&#8217;ve been a bit dodgy, but after booting up, verifying all my previous volumes mounted fine and seeing that it find the third drive gave me a sigh of relief.<\/p>\n\n\n\n<p><strong>Step 3: Partition the new drive<\/strong><br>fdisk -l showed me that the system recognized the new volume. In this case this Seagate was preset for Windows users, and that wasn&#8217;t quite my style.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Disk \/dev\/sdb: 14.6 TiB, 16000900660736 bytes, 31251759103 sectors\r\nUnits: sectors of 1 * 512 = 512 bytes\r\nSector size (logical\/physical): 512 bytes \/ 4096 bytes\r\nI\/O size (minimum\/optimal): 4096 bytes \/ 4096 bytes\r\nDisklabel type: gpt\r\nDisk identifier: 01000000-0000-0000-4E54-31373537314C\r\n\r\nDevice      Start         End     Sectors  Size Type\r\n\/dev\/sdb1      40      409639      409600  200M EFI System\r\n\/dev\/sdb2  411648 31251757055 31251345408 14.6T Microsoft basic data<\/code><\/pre>\n\n\n\n<p>d twice to delete the partitions, the creating the new one rendered me one 14.6TB Linux Partition.<br>v, then w, and then I&#8217;m ready to create and mount this.<\/p>\n\n\n\n<p><strong>Step 4: format my partition<\/strong><br>My other disks are ext4, so mkfs -t ext4 \/dev\/sdb1 is going to be my go-to command.<\/p>\n\n\n\n<p><strong>Step 5: mounting the new partition<\/strong><br>My system is to place the &#8220;size&#8221; as the number in \/mnt\/usbXX, so this will be mounted as \/mnt\/usb16. I also have to find the uuid in \/dev\/disk\/by-uuid\/ so I can make sure this disk will always be reliably mounted.<br>Setting the correct parameters in \/etc\/fstab and mount -a tells me I&#8217;m fairly done.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ df -h\r\nFilesystem      Size  Used Avail Use% Mounted on\r\n\/dev\/sda3       457G  288G  169G  64% \/\r\n\/dev\/sda1      1014M  202M  813M  20% \/boot\r\n\/dev\/sdd1        13T   12T   52G 100% \/mnt\/usb14\r\n\/dev\/sdc1       5.5T  4.3T  962G  82% \/mnt\/usb03\r\n\/dev\/sdb1        15T   19M   14T   1% \/mnt\/usb16\r<\/code><\/pre>\n\n\n\n<p><strong>Step 6: Move things around<\/strong><br>Now it&#8217;s time to move things around&#8230;<br>otherwise, ALL DONE!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We have a combination Plex Media\/Minecraft\/Archive server that we&#8217;ve had since we purchased our first 6TB Hard Drive on December 30, 2019 ($99.99 at the time). After some time we upgraded to our massive 14TB Hard Drive ($293.00 at the time) on October 16, 2021. It took a bit over a couple years to fill [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,17],"tags":[],"class_list":["post-1880","post","type-post","status-publish","format-standard","hentry","category-centos","category-linux"],"_links":{"self":[{"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/posts\/1880","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/comments?post=1880"}],"version-history":[{"count":1,"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/posts\/1880\/revisions"}],"predecessor-version":[{"id":1881,"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/posts\/1880\/revisions\/1881"}],"wp:attachment":[{"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/media?parent=1880"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/categories?post=1880"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/tags?post=1880"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}