{"id":21260,"date":"2024-03-15T21:44:46","date_gmt":"2024-03-15T21:44:46","guid":{"rendered":"https:\/\/www.silicloud.com\/blog\/how-to-add-a-new-hard-drive-partition-in-centos\/"},"modified":"2024-03-21T20:03:42","modified_gmt":"2024-03-21T20:03:42","slug":"how-to-add-a-new-hard-drive-partition-in-centos","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/blog\/how-to-add-a-new-hard-drive-partition-in-centos\/","title":{"rendered":"How to add a new hard drive partition in CentOS?"},"content":{"rendered":"<p>To add a new hard drive partition on CentOS, you can follow the steps below:<\/p>\n<ol>\n<li>First, connect the new hard drive to the computer and make sure it is correctly recognized and installed.<\/li>\n<li>Use the fdisk -l command to view all disks and partitions in the system.<\/li>\n<li>Use the command &#8220;fdisk \/dev\/sdX&#8221; to open the newly added hard drive. Replace \/dev\/sdX with the device name of the new hard drive, such as \/dev\/sdb.<\/li>\n<li>Press the &#8220;n&#8221; key at the fdisk command prompt to create a new partition.<\/li>\n<li>Choose the type of partition you want to create. You can choose between primary partition (p) or logical partition (l).<\/li>\n<li>Enter the partition number (starting from 1).<\/li>\n<li>Please input the starting and ending sectors of the partition. Press Enter twice if you want to use the entire hard drive for the partition.<\/li>\n<li>Press the &#8216;t&#8217; key to change the type of partition.<\/li>\n<li>Please enter the filesystem type code for the partition. Common filesystem type codes include 83 (Linux) and 82 (Linux swap partition).<\/li>\n<li>Press the &#8216;w&#8217; key to save and exit fdisk.<\/li>\n<li>Use the partprobe command to refresh the partition table.<\/li>\n<li>Run the command mkfs.ext4 \/dev\/sdX1 to create an ext4 file system (if ext4 is your chosen type).<\/li>\n<li>Run the command mkdir \/mnt\/newpartition to create a directory for mounting the new partition.<\/li>\n<li>Execute the command &#8220;mount \/dev\/sdX1 \/mnt\/newpartition&#8221; to mount the new partition to the newly created directory.<\/li>\n<li>Run the &#8220;df -h&#8221; command to verify that the new partition has been successfully mounted.<\/li>\n<\/ol>\n<p>You have successfully added a new hard drive partition. You can access and use it in the \/mnt\/newpartition directory.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To add a new hard drive partition on CentOS, you can follow the steps below: First, connect the new hard drive to the computer and make sure it is correctly recognized and installed. Use the fdisk -l command to view all disks and partitions in the system. Use the command &#8220;fdisk \/dev\/sdX&#8221; to open the [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-21260","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to add a new hard drive partition in CentOS? - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/blog\/how-to-add-a-new-hard-drive-partition-in-centos\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to add a new hard drive partition in CentOS?\" \/>\n<meta property=\"og:description\" content=\"To add a new hard drive partition on CentOS, you can follow the steps below: First, connect the new hard drive to the computer and make sure it is correctly recognized and installed. Use the fdisk -l command to view all disks and partitions in the system. Use the command &#8220;fdisk \/dev\/sdX&#8221; to open the [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/blog\/how-to-add-a-new-hard-drive-partition-in-centos\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/SiliCloudGlobal\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-03-15T21:44:46+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-21T20:03:42+00:00\" \/>\n<meta name=\"author\" content=\"Emily Johnson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@SiliCloudGlobal\" \/>\n<meta name=\"twitter:site\" content=\"@SiliCloudGlobal\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Emily Johnson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/how-to-add-a-new-hard-drive-partition-in-centos\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/blog\/how-to-add-a-new-hard-drive-partition-in-centos\/\"},\"author\":{\"name\":\"Emily Johnson\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/#\/schema\/person\/3b041b19cffc258705478ecfab895378\"},\"headline\":\"How to add a new hard drive partition in CentOS?\",\"datePublished\":\"2024-03-15T21:44:46+00:00\",\"dateModified\":\"2024-03-21T20:03:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.silicloud.com\/blog\/how-to-add-a-new-hard-drive-partition-in-centos\/\"},\"wordCount\":285,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.silicloud.com\/blog\/#organization\"},\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/how-to-add-a-new-hard-drive-partition-in-centos\/\",\"url\":\"https:\/\/www.silicloud.com\/blog\/how-to-add-a-new-hard-drive-partition-in-centos\/\",\"name\":\"How to add a new hard drive partition in CentOS? - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/blog\/#website\"},\"datePublished\":\"2024-03-15T21:44:46+00:00\",\"dateModified\":\"2024-03-21T20:03:42+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/blog\/how-to-add-a-new-hard-drive-partition-in-centos\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/blog\/how-to-add-a-new-hard-drive-partition-in-centos\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/how-to-add-a-new-hard-drive-partition-in-centos\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.silicloud.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to add a new hard drive partition in CentOS?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/blog\/\",\"name\":\"Silicon Cloud Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.silicloud.com\/blog\/#organization\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/#organization\",\"name\":\"Silicon Cloud Blog\",\"url\":\"https:\/\/www.silicloud.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.silicloud.com\/blog\/wp-content\/uploads\/2023\/11\/EN-SILICON-Full.png\",\"contentUrl\":\"https:\/\/www.silicloud.com\/blog\/wp-content\/uploads\/2023\/11\/EN-SILICON-Full.png\",\"width\":1024,\"height\":1024,\"caption\":\"Silicon Cloud Blog\"},\"image\":{\"@id\":\"https:\/\/www.silicloud.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/SiliCloudGlobal\/\",\"https:\/\/twitter.com\/SiliCloudGlobal\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/#\/schema\/person\/3b041b19cffc258705478ecfab895378\",\"name\":\"Emily Johnson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a5cb4e73d02ab1d79f2dfe919389ff7c1de072baa97686392031c03d858cc358?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a5cb4e73d02ab1d79f2dfe919389ff7c1de072baa97686392031c03d858cc358?s=96&d=mm&r=g\",\"caption\":\"Emily Johnson\"},\"url\":\"https:\/\/www.silicloud.com\/blog\/author\/emilyjohnson\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to add a new hard drive partition in CentOS? - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/blog\/how-to-add-a-new-hard-drive-partition-in-centos\/","og_locale":"en_US","og_type":"article","og_title":"How to add a new hard drive partition in CentOS?","og_description":"To add a new hard drive partition on CentOS, you can follow the steps below: First, connect the new hard drive to the computer and make sure it is correctly recognized and installed. Use the fdisk -l command to view all disks and partitions in the system. Use the command &#8220;fdisk \/dev\/sdX&#8221; to open the [&hellip;]","og_url":"https:\/\/www.silicloud.com\/blog\/how-to-add-a-new-hard-drive-partition-in-centos\/","og_site_name":"Blog - Silicon Cloud","article_publisher":"https:\/\/www.facebook.com\/SiliCloudGlobal\/","article_published_time":"2024-03-15T21:44:46+00:00","article_modified_time":"2024-03-21T20:03:42+00:00","author":"Emily Johnson","twitter_card":"summary_large_image","twitter_creator":"@SiliCloudGlobal","twitter_site":"@SiliCloudGlobal","twitter_misc":{"Written by":"Emily Johnson","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.silicloud.com\/blog\/how-to-add-a-new-hard-drive-partition-in-centos\/#article","isPartOf":{"@id":"https:\/\/www.silicloud.com\/blog\/how-to-add-a-new-hard-drive-partition-in-centos\/"},"author":{"name":"Emily Johnson","@id":"https:\/\/www.silicloud.com\/blog\/#\/schema\/person\/3b041b19cffc258705478ecfab895378"},"headline":"How to add a new hard drive partition in CentOS?","datePublished":"2024-03-15T21:44:46+00:00","dateModified":"2024-03-21T20:03:42+00:00","mainEntityOfPage":{"@id":"https:\/\/www.silicloud.com\/blog\/how-to-add-a-new-hard-drive-partition-in-centos\/"},"wordCount":285,"commentCount":0,"publisher":{"@id":"https:\/\/www.silicloud.com\/blog\/#organization"},"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/blog\/how-to-add-a-new-hard-drive-partition-in-centos\/","url":"https:\/\/www.silicloud.com\/blog\/how-to-add-a-new-hard-drive-partition-in-centos\/","name":"How to add a new hard drive partition in CentOS? - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/blog\/#website"},"datePublished":"2024-03-15T21:44:46+00:00","dateModified":"2024-03-21T20:03:42+00:00","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/blog\/how-to-add-a-new-hard-drive-partition-in-centos\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/blog\/how-to-add-a-new-hard-drive-partition-in-centos\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/blog\/how-to-add-a-new-hard-drive-partition-in-centos\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.silicloud.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to add a new hard drive partition in CentOS?"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/blog\/#website","url":"https:\/\/www.silicloud.com\/blog\/","name":"Silicon Cloud Blog","description":"","publisher":{"@id":"https:\/\/www.silicloud.com\/blog\/#organization"},"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.silicloud.com\/blog\/#organization","name":"Silicon Cloud Blog","url":"https:\/\/www.silicloud.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.silicloud.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.silicloud.com\/blog\/wp-content\/uploads\/2023\/11\/EN-SILICON-Full.png","contentUrl":"https:\/\/www.silicloud.com\/blog\/wp-content\/uploads\/2023\/11\/EN-SILICON-Full.png","width":1024,"height":1024,"caption":"Silicon Cloud Blog"},"image":{"@id":"https:\/\/www.silicloud.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/SiliCloudGlobal\/","https:\/\/twitter.com\/SiliCloudGlobal"]},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/blog\/#\/schema\/person\/3b041b19cffc258705478ecfab895378","name":"Emily Johnson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.silicloud.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/a5cb4e73d02ab1d79f2dfe919389ff7c1de072baa97686392031c03d858cc358?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a5cb4e73d02ab1d79f2dfe919389ff7c1de072baa97686392031c03d858cc358?s=96&d=mm&r=g","caption":"Emily Johnson"},"url":"https:\/\/www.silicloud.com\/blog\/author\/emilyjohnson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/posts\/21260","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/comments?post=21260"}],"version-history":[{"count":1,"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/posts\/21260\/revisions"}],"predecessor-version":[{"id":55111,"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/posts\/21260\/revisions\/55111"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/media?parent=21260"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/categories?post=21260"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/tags?post=21260"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}