{"id":303,"date":"2015-03-03T13:24:22","date_gmt":"2015-03-03T20:24:22","guid":{"rendered":"http:\/\/blog.ioflood.com\/?p=303"},"modified":"2023-11-25T22:52:04","modified_gmt":"2023-11-26T05:52:04","slug":"installing-centos-6-x-onto-a-dedicated-server-with-hard-drives-bigger-than-2tb-3tb-4tb-6tb-8tb-or-bigger","status":"publish","type":"post","link":"https:\/\/ioflood.com\/blog\/installing-centos-6-x-onto-a-dedicated-server-with-hard-drives-bigger-than-2tb-3tb-4tb-6tb-8tb-or-bigger\/","title":{"rendered":"Installing Centos 6.x onto a dedicated server with hard drives bigger than 2tb (3tb, 4tb, 6tb, 8tb, or bigger)"},"content":{"rendered":"<div style=\"width: 418px\" class=\"wp-caption alignright\"><img decoding=\"async\" class=\"alignright\" title=\"Too much or too little? by kennymatic\" src=\"https:\/\/ioflood.com\/blog\/wp-content\/uploads\/2015\/03\/3219157599_53734dcfc9_hard-drive.jpg\" alt=\"hard drive photo\" width=\"408\" height=\"274\" \/><p class=\"wp-caption-text\"><small>Photo by <a href=\"http:\/\/www.flickr.com\/photos\/99472898@N00\/3219157599\" target=\"_blank\" rel=\"noopener\">kennymatic<\/a> <a title=\"Attribution License\" href=\"http:\/\/creativecommons.org\/licenses\/by\/2.0\/\" target=\"_blank\" rel=\"nofollow noopener\"><img decoding=\"async\" src=\"https:\/\/ioflood.com\/blog\/wp-content\/plugins\/wp-inject\/images\/cc.png\" alt=\"Creative Commons Logo\" title=\"\"><\/a><\/small><\/p><\/div>\n<p>I&#8217;m a big fan of Centos, but like anything, it&#8217;s not perfect. In Centos 5, it is nearly impossible to get a working install onto drives larger than 2tb. In Centos 6, it is possible, but not entirely straightforward. The reason for the difficulty, is that MBR (master boot record) was designed only to support up to 2TB\u00a0drives. In order to go above that, a new technology, GPT (GUID Partition Table) was developed, which currently supports a maximum size of over 9 billion terabytes (this should be enough for a while yet). Although GPT has been out for a while, support for this varies among operating systems, with Centos 5 having very little support for it, and Centos 6 supporting it, but not having appropriate tools in the installer to use it.<\/p>\n<p>This article will help you with the process of installing Centos 6 onto a boot drive that&#8217;s larger than 2TB. These instructions assume you have a clean system (i.e. all data will be lost), and assume you want to install a fresh copy of Centos 6.x onto drives larger than 2tb, such as 3tb, 4tb, 6tb, or even 8tb hard drives (if you have one of those, lucky you!). This guide is not necessary for installing Centos onto multiple smaller drives in a software raid, although it is necessary if you have a >2TB partition size on the primary OS partition on a hardware raid.<\/p>\n<p>Without further ado, the instructions:<\/p>\n<hr \/>\n<p>\u00a0<\/p>\n<h2>Installing Centos 6.x onto drives larger than 2TB:<\/h2>\n<p>\u00a0<\/p>\n<p>First of all, start the Centos installer, and wait until you get to a point where it asks you questions. At this point, you want to drop to a command shell. Do so with the following key combinations:<\/p>\n<pre style=\"padding-left: 30px;\">ctrl+alt+F2<\/pre>\n<p>This will drop you to a command prompt. You can now clear the partitions on the existing drive(s) and also change the partition table to GPT instead of MSDOS with a single command:<\/p>\n<pre style=\"padding-left: 30px;\">\/usr\/sbin\/parted -s \/dev\/sdb mklabel gpt<\/pre>\n<p>Make sure to run the above with &#8220;\/dev\/sdb&#8221; replaced with the identifier for the drive(s) you&#8217;d like to install your OS onto. In many cases, the Centos installer will start your first hard drive as &#8220;\/dev\/sdb&#8221;, so I&#8217;ve made that the command above.<\/p>\n<p>Repeat the above command for each drive you plan to install onto (\/dev\/sdb, \/dev\/sdc, etc)<\/p>\n<p>\u00a0<\/p>\n<p>Return to the installer. Either type the following command:<\/p>\n<pre style=\"padding-left: 30px;\">exit<\/pre>\n<p>OR type the following key combination:<\/p>\n<pre style=\"padding-left: 30px;\">ctrl+alt+F6<\/pre>\n<p>One of the two above should bring you back to the installer.<\/p>\n<p>\u00a0<\/p>\n<p>Continue with the installation as normal until you reach the partitioning choices.<\/p>\n<p>Once you reach the partitioning options, <strong>select the \u201cuse empty space\u201d option<\/strong> and the installer will create new partitions within the new GPT partition table you&#8217;ve created.<\/p>\n<p><strong>Note:\u00a0<\/strong>If you choose the \u201cdelete everything\u201d option, the installer will replace the GPT with MBR again, defeating the entire purpose of what you&#8217;ve been working on.<\/p>\n<p>\u00a0<\/p>\n<p>That&#8217;s it. You can now create the necessary partitions and file systems as you normally would when installing Centos.<\/p>\n<p>\u00a0<\/p>\n<hr \/>\n<p>\u00a0<\/p>\n<p>If you have any questions about this\u00a0information, or want to learn\u00a0about <a title=\"ioflood.com dedicated servers\" href=\"https:\/\/ioflood.com\/\">ioflood.com Centos dedicated servers<\/a>, email us at <strong>sales [at] ioflood.com<\/strong><\/p>\n<p>\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m a big fan of Centos, but like anything, it&#8217;s not perfect. In Centos 5, it is nearly impossible to get a working install onto drives larger than 2tb. In Centos 6, it is possible, but not entirely straightforward. The reason for the difficulty, is that MBR (master boot record) was designed only to support [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":388,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3,115,9],"tags":[],"class_list":["post-303","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","category-linux","category-redhat-enterprise-linux-rhel","category-sysadmin","cat-4-id","cat-3-id","cat-115-id","cat-9-id","has_thumb"],"_links":{"self":[{"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/posts\/303","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/comments?post=303"}],"version-history":[{"count":7,"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/posts\/303\/revisions"}],"predecessor-version":[{"id":11204,"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/posts\/303\/revisions\/11204"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/media\/388"}],"wp:attachment":[{"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/media?parent=303"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/categories?post=303"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/tags?post=303"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}