{"id":233,"date":"2011-09-15T07:24:41","date_gmt":"2011-09-15T12:24:41","guid":{"rendered":"https:\/\/www.bodhost.com\/blog\/?p=233"},"modified":"2026-02-26T13:59:07","modified_gmt":"2026-02-26T13:59:07","slug":"how-to-create-a-partition-on-a-linux-server","status":"publish","type":"post","link":"https:\/\/www.bodhost.com\/blog\/how-to-create-a-partition-on-a-linux-server\/","title":{"rendered":"How To Create A Partition On A Linux Server?"},"content":{"rendered":"<p>If you want to create a new partition on a <a href=\"https:\/\/www.bodhost.com\/web-servers\/self-managed-vps-hosting\" target=\"_blank\" rel=\"noopener\">Linux server<\/a> then you have to follow the following steps :<\/p>\n<p>Login to your Linux server with root access which is provided by your hosting provider.<br \/>\nUse the following command to find out the total number of partitions which are already created on your Linux server.<\/p>\n<p>#fdisk -l<\/p>\n<p>After using the command you get the following details :<\/p>\n<p>Disk \/dev\/sda: 499.5 GB, 499558383616 bytes<br \/>\n255 heads, 63 sectors\/track, 60734 cylinders<br \/>\nUnits = cylinders of 16065 * 512 = 8225280 bytes<\/p>\n<p>Device Boot Start End Blocks Id System<br \/>\n\/dev\/sda1 * 1 653 5245191 83 Linux<br \/>\n\/dev\/sda2 654 3713 24579450 82 Linux swap \/ Solaris<br \/>\n\/dev\/sda3 3714 6324 20972857+ 83 Linux<br \/>\n\/dev\/sda4 6325 60734 437048325 5 Extended<br \/>\n\/dev\/sda5 6325 8935 20972826 83 Linux<\/p>\n<p>If you need a 1000MB partition then you follow the below steps :<\/p>\n<p>#fdisk \/dev\/sda<\/p>\n<p>Type n for new partition and specify the cylinder size as +1000M then<\/p>\n<p>Type p to find new partition<\/p>\n<p>Type w for save<\/p>\n<p>Then use the following command<\/p>\n<p>#partprobe<\/p>\n<p>After creating the partition you have to format that.<\/p>\n<p>#mke2fs -j \/dev\/sdaX<\/p>\n<p>The \u201cX\u201d indicate your created partition number.<\/p>\n<p>Create that particular directory where you wish to point your new partition.<\/p>\n<p>#mkdir -p \/new<\/p>\n<p>you have to point your new partition to that particular directory with the below command.<\/p>\n<p>#mount -t ext3 \/dev\/sdaX \/new<\/p>\n<p>If you want to save these setting permanently then utilize the below command.<\/p>\n<p>#vi \/etc\/fstab<\/p>\n<p>\/dev\/sdaX \/new ext3 defaults 0 0<\/p>\n<p>Save and quite the fstab file.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you want to create a new partition on a Linux server then you have to follow the following steps : Login to your Linux server with root access which is provided by your hosting provider. Use the following command to find out the total number of partitions which are already created on your Linux [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[77],"class_list":["post-233","post","type-post","status-publish","format-standard","hentry","category-web-hosting","tag-linux-server"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/posts\/233","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/comments?post=233"}],"version-history":[{"count":11,"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/posts\/233\/revisions"}],"predecessor-version":[{"id":5032,"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/posts\/233\/revisions\/5032"}],"wp:attachment":[{"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/media?parent=233"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/categories?post=233"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/tags?post=233"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}