{"id":6077,"date":"2014-12-05T10:13:52","date_gmt":"2014-12-05T14:13:52","guid":{"rendered":"http:\/\/starlightcascade.ca\/blog\/?p=6077"},"modified":"2014-12-05T10:14:44","modified_gmt":"2014-12-05T14:14:44","slug":"linux-drive-replacement","status":"publish","type":"post","link":"https:\/\/starlightcascade.ca\/blog\/2014\/12\/linux-drive-replacement\/","title":{"rendered":"linux drive replacement"},"content":{"rendered":"<p><a href=\"http:\/\/starlightcascade.ca\/blog\/wp-content\/uploads\/2012\/08\/fedora-penguin.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-full wp-image-3278\" src=\"http:\/\/starlightcascade.ca\/blog\/wp-content\/uploads\/2012\/08\/fedora-penguin.png\" alt=\"fedora-penguin\" width=\"256\" height=\"256\" srcset=\"https:\/\/starlightcascade.ca\/blog\/wp-content\/uploads\/2012\/08\/fedora-penguin.png 256w, https:\/\/starlightcascade.ca\/blog\/wp-content\/uploads\/2012\/08\/fedora-penguin-150x150.png 150w\" sizes=\"auto, (max-width: 256px) 100vw, 256px\" \/><\/a>Another data backup drive that is old and small and getting too full. \u00a0The system is running linux fedora 20 on an older piece of hardware.. at least it has SATA drives!<\/p>\n<p>login and switch user to root<\/p>\n<p>vi \/etc\/fstab and comment out the 500GB WDC drive and shutdown the computer.<\/p>\n<p>Physically remove the 500GB drive and install a Seagate 2TB drive<\/p>\n<p>power up and start to format the drive using the following commands:<\/p>\n<p>dmesg | grep -i sdc shows 2TB \u00a0correct!<br \/>\nfdisk \/dev\/sdc and delete partition, create new primary partition<br \/>\nThe size of this disk is 1.8 TiB<br \/>\nmkfs -t ext4 \/dev\/sdc1<br \/>\ntune2fs -O extents,uninit_bg,dir_index \/dev\/sdc1<br \/>\ntune2fs -U random \/dev\/sdb1<br \/>\ne2fsck -pf \/dev\/sdc1<br \/>\nls -l \/dev\/disk\/by-uuidlrwxrwxrwx 1 root root 10 Dec 5 07:43 d8403785-f5fa-4122-9bec-7d00ed376a13 -&gt; ..\/..\/sdc1<br \/>\nvi \/etc\/fstab<br \/>\n#new 2TB drive 2014march12<\/p>\n<p>\/dev\/sdc1 \/databackup ext4 defaults 0 0<\/p>\n<p>mount \/databackup\/<\/p>\n<p>quickly create needed subdirectories like mkdir var, etc, data and then start to manually run the backup scripts.<\/p>\n<p>&nbsp;<\/p>\n<p>all in all less than 10 minutes to finish this off and bring the computer back to operational status.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Another data backup drive that is old and small and getting too full. \u00a0The system is running linux fedora 20 on an older piece of hardware.. at least it has SATA drives! login and switch user to root vi \/etc\/fstab and comment out the 500GB WDC drive and shutdown the computer. Physically remove the 500GB [&hellip;]<\/p>\n","protected":false},"author":494,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"class_list":["post-6077","post","type-post","status-publish","format-standard","hentry","category-tech"],"_links":{"self":[{"href":"https:\/\/starlightcascade.ca\/blog\/wp-json\/wp\/v2\/posts\/6077","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/starlightcascade.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/starlightcascade.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/starlightcascade.ca\/blog\/wp-json\/wp\/v2\/users\/494"}],"replies":[{"embeddable":true,"href":"https:\/\/starlightcascade.ca\/blog\/wp-json\/wp\/v2\/comments?post=6077"}],"version-history":[{"count":0,"href":"https:\/\/starlightcascade.ca\/blog\/wp-json\/wp\/v2\/posts\/6077\/revisions"}],"wp:attachment":[{"href":"https:\/\/starlightcascade.ca\/blog\/wp-json\/wp\/v2\/media?parent=6077"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/starlightcascade.ca\/blog\/wp-json\/wp\/v2\/categories?post=6077"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/starlightcascade.ca\/blog\/wp-json\/wp\/v2\/tags?post=6077"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}