{"id":351,"date":"2010-07-08T06:24:29","date_gmt":"2010-07-08T12:24:29","guid":{"rendered":"http:\/\/blog.supportpro.com\/?p=351"},"modified":"2026-06-26T03:08:23","modified_gmt":"2026-06-26T09:08:23","slug":"partition-creation","status":"publish","type":"post","link":"https:\/\/www.supportpro.com\/blog\/partition-creation\/","title":{"rendered":"Partition Creation in Linux: Complete Step-by-Step Guide"},"content":{"rendered":"\n<p>Managing disk partitions is an essential task for Linux system administrators. Proper disk partitioning helps organize storage, improve performance, and simplify server management. Whether you are setting up a new server or adding additional storage, understanding <strong>Partition creation<\/strong> in Linux is extremely important.<\/p>\n\n\n\n<p>In this guide, we will explain how to create partitions, format them, mount them, and make the configuration permanent using Linux commands.<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">What is Partition Creation?<\/h1>\n\n\n\n<p>Partition creation is the process of dividing a physical hard disk into separate logical sections called partitions.<\/p>\n\n\n\n<p>Each partition can:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Store files independently<\/li>\n\n\n\n<li>Use different file systems<\/li>\n\n\n\n<li>Be mounted to different directories<\/li>\n\n\n\n<li>Serve specific purposes such as backups, databases, or application storage<\/li>\n<\/ul>\n\n\n\n<p>Linux systems commonly use partitions to organize storage efficiently.<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Why Partitioning is Important<\/h1>\n\n\n\n<p>Disk partitioning provides several advantages:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Better disk management<\/li>\n\n\n\n<li>Improved data organization<\/li>\n\n\n\n<li>Easier backups and recovery<\/li>\n\n\n\n<li>Separation of system and user data<\/li>\n\n\n\n<li>Better security and performance management<\/li>\n<\/ul>\n\n\n\n<p>For servers, partitioning also helps isolate workloads and reduce storage-related issues.<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Step 1: Check Existing Disks and Partitions<\/h1>\n\n\n\n<p>Before creating a new partition, first identify the available disks and existing partitions.<\/p>\n\n\n\n<p>Run:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>fdisk -l<\/code><\/pre>\n\n\n\n<p>This command displays:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Available hard disks<\/li>\n\n\n\n<li>Existing partitions<\/li>\n\n\n\n<li>Disk sizes<\/li>\n\n\n\n<li>Mounted storage devices<\/li>\n<\/ul>\n\n\n\n<p>Example devices may appear as:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/dev\/sda<br>\/dev\/sdb<br>\/dev\/sdc<\/code><\/pre>\n\n\n\n<p>Carefully identify the correct disk before proceeding.<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Step 2: Create a New Partition<\/h1>\n\n\n\n<p>Now create a partition on the selected disk.<\/p>\n\n\n\n<p>Run:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>fdisk \/dev\/sdX<\/code><\/pre>\n\n\n\n<p>Replace <code>sdX<\/code> with the appropriate disk name.<\/p>\n\n\n\n<p>Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>fdisk \/dev\/sdb<\/code><\/pre>\n\n\n\n<p>Inside the <code>fdisk<\/code> utility, you can:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Create new partitions<\/li>\n\n\n\n<li>Delete unwanted partitions<\/li>\n\n\n\n<li>Change partition types<\/li>\n\n\n\n<li>Set partition sizes<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Common fdisk Options<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><div class=\"pcrstb-wrap\"><table class=\"has-fixed-layout\"><thead><tr><th>Option<\/th><th>Function<\/th><\/tr><\/thead><tbody><tr><td><code>n<\/code><\/td><td>Create new partition<\/td><\/tr><tr><td><code>d<\/code><\/td><td>Delete partition<\/td><\/tr><tr><td><code>p<\/code><\/td><td>Print partition table<\/td><\/tr><tr><td><code>w<\/code><\/td><td>Save changes and exit<\/td><\/tr><tr><td><code>q<\/code><\/td><td>Quit without saving<\/td><\/tr><\/tbody><\/table><\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Creating a New Partition<\/h2>\n\n\n\n<p>Typical process:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Press <code>n<\/code> for new partition<\/li>\n\n\n\n<li>Select primary or extended partition<\/li>\n\n\n\n<li>Choose partition number<\/li>\n\n\n\n<li>Specify partition size<\/li>\n\n\n\n<li>Press <code>w<\/code> to save changes<\/li>\n<\/ol>\n\n\n\n<p>After saving, the partition table gets updated.<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Step 3: Create a File System<\/h1>\n\n\n\n<p>After partition creation, the partition must be formatted with a file system.<\/p>\n\n\n\n<p>For EXT3 format, run:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mkfs.ext3 \/dev\/sda1<\/code><\/pre>\n\n\n\n<p>You can also use newer file systems such as:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>ext4<\/li>\n\n\n\n<li>xfs<\/li>\n\n\n\n<li>btrfs<\/li>\n<\/ul>\n\n\n\n<p>Example using ext4:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mkfs.ext4 \/dev\/sda1<\/code><\/pre>\n\n\n\n<p>This step prepares the partition for storing files.<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Step 4: Update Kernel Partition Table<\/h1>\n\n\n\n<p>Linux must reload the updated partition table.<\/p>\n\n\n\n<p>Instead of rebooting the server, use:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>partprobe<\/code><\/pre>\n\n\n\n<p>The <code>partprobe<\/code> command informs the kernel about the new partition changes immediately.<\/p>\n\n\n\n<p>This is especially useful for production servers where rebooting may cause downtime.<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Step 5: Mount the Partition<\/h1>\n\n\n\n<p>Now mount the partition to a desired directory.<\/p>\n\n\n\n<p>First create a mount point:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mkdir \/data<\/code><\/pre>\n\n\n\n<p>Then mount the partition:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mount \/dev\/sda1 \/data<\/code><\/pre>\n\n\n\n<p>This attaches the partition to the <code>\/data<\/code> directory.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Verify Mounted Partitions<\/h2>\n\n\n\n<p>Use:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>df -h<\/code><\/pre>\n\n\n\n<p>This command shows:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Mounted partitions<\/li>\n\n\n\n<li>Disk usage<\/li>\n\n\n\n<li>Available storage<\/li>\n\n\n\n<li>Mount locations<\/li>\n<\/ul>\n\n\n\n<h1 class=\"wp-block-heading\">Step 6: Make the Mount Permanent<\/h1>\n\n\n\n<p>Temporary mounts disappear after reboot. To make the mount permanent, add an entry to:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/etc\/fstab<\/code><\/pre>\n\n\n\n<p>Open the file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vi \/etc\/fstab<\/code><\/pre>\n\n\n\n<p>Add an entry like:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/dev\/sda1   \/data   ext4   defaults   0 0<\/code><\/pre>\n\n\n\n<p>Save and exit.<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Test the fstab Configuration<\/h1>\n\n\n\n<p>Before rebooting, verify the configuration using:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mount -a<\/code><\/pre>\n\n\n\n<p>If no errors appear, the configuration is correct.<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Important Tips Before Partition Creation<\/h1>\n\n\n\n<h3 class=\"wp-block-heading\">Backup Important Data<\/h3>\n\n\n\n<p>Partitioning operations may accidentally erase data if performed incorrectly.<\/p>\n\n\n\n<p>Always:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Backup important files<\/li>\n\n\n\n<li>Verify the correct disk name<\/li>\n\n\n\n<li>Double-check partition selections<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Use GPT for Large Disks<\/h3>\n\n\n\n<p>For disks larger than 2TB, GPT partition tables are recommended instead of MBR.<\/p>\n\n\n\n<p>You can create GPT partitions using tools like:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>gdisk<\/code><\/li>\n\n\n\n<li><code>parted<\/code><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Monitor Disk Health<\/h3>\n\n\n\n<p>Before partitioning, check disk health using SMART tools:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>smartctl -a \/dev\/sda<\/code><\/pre>\n\n\n\n<p>This helps identify hardware issues early.<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Common Linux File Systems<\/h1>\n\n\n\n<figure class=\"wp-block-table\"><div class=\"pcrstb-wrap\"><table class=\"has-fixed-layout\"><thead><tr><th>File System<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>ext3<\/td><td>Older journaling filesystem<\/td><\/tr><tr><td>ext4<\/td><td>Modern Linux standard filesystem<\/td><\/tr><tr><td>xfs<\/td><td>High-performance filesystem<\/td><\/tr><tr><td>btrfs<\/td><td>Advanced filesystem with snapshots<\/td><\/tr><\/tbody><\/table><\/div><\/figure>\n\n\n\n<p>Most modern Linux servers use ext4 or xfs.<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Conclusion<\/h1>\n\n\n\n<p>Understanding <strong>Partition creation<\/strong> in Linux is a fundamental skill for server administration. Proper partitioning helps improve storage organization, server management, and system reliability.<\/p>\n\n\n\n<p>The basic process includes:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Checking available disks<\/li>\n\n\n\n<li>Creating partitions using <code>fdisk<\/code><\/li>\n\n\n\n<li>Formatting with a file system<\/li>\n\n\n\n<li>Reloading partition tables<\/li>\n\n\n\n<li>Mounting partitions<\/li>\n\n\n\n<li>Updating <code>\/etc\/fstab<\/code><\/li>\n<\/ol>\n\n\n\n<p>With careful planning and proper backups, partition management in Linux becomes straightforward and efficient.<\/p>\n\n\n\n<p>If you require help, <a href=\"https:\/\/www.supportpro.com\/requestquote.php\">contact SupportPRO Server Admin<\/a><\/p>\n\n\n\n<p class=\"has-text-align-center\"><span id=\"hs-cta-wrapper-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-wrapper\"><span id=\"hs-cta-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-node hs-cta-9d590242-d641-4383-94b4-8cfd62f0af6b\"><a bis_size=\"{&quot;x&quot;:289,&quot;y&quot;:492,&quot;w&quot;:376,&quot;h&quot;:23,&quot;abs_x&quot;:289,&quot;abs_y&quot;:492}\" href=\"https:\/\/cta-redirect.hubspot.com\/cta\/redirect\/2725694\/9d590242-d641-4383-94b4-8cfd62f0af6b\"><\/a><\/span><\/span><\/p>\n\n\n\n<div class=\"wp-block-media-text alignwide has-media-on-the-right is-stacked-on-mobile is-vertically-aligned-center has-white-background-color has-background\"><div class=\"wp-block-media-text__content\">\n<p class=\"has-large-font-size\">Facing issues? <\/p>\n\n\n\n<p class=\"has-large-font-size\">Our technical support<br>engineers can solve it. <\/p>\n\n\n\n<!--HubSpot Call-to-Action Code --><span class=\"hs-cta-wrapper\" id=\"hs-cta-wrapper-3350a795-db50-482f-9911-301930d1b1be\"><span class=\"hs-cta-node hs-cta-3350a795-db50-482f-9911-301930d1b1be\" id=\"hs-cta-3350a795-db50-482f-9911-301930d1b1be\"><!--[if lte IE 8]><div id=\"hs-cta-ie-element\"><\/div><![endif]--><a href=\"https:\/\/cta-redirect.hubspot.com\/cta\/redirect\/2725694\/3350a795-db50-482f-9911-301930d1b1be\" ><img class=\"hs-cta-img\" id=\"hs-cta-img-3350a795-db50-482f-9911-301930d1b1be\" style=\"border-width:0px;\" src=\"https:\/\/no-cache.hubspot.com\/cta\/default\/2725694\/3350a795-db50-482f-9911-301930d1b1be.png\"  alt=\"Contact Us today!\"\/><\/a><\/span><script charset=\"utf-8\" src=\"https:\/\/js.hscta.net\/cta\/current.js\"><\/script><script type=\"text\/javascript\"> hbspt.cta.load(2725694, '3350a795-db50-482f-9911-301930d1b1be', {\"useNewLoader\":\"true\",\"region\":\"na1\"}); <\/script><\/span><!-- end HubSpot Call-to-Action Code -->\n<\/div><figure class=\"wp-block-media-text__media\"><img width=\"904\" height=\"931\" src=\"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup.png\" alt=\"guy server checkup\" class=\"wp-image-12943 size-full\" srcset=\"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup.png 904w, https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup-291x300.png 291w, https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup-768x791.png 768w, https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup-585x602.png 585w\" sizes=\"(max-width: 904px) 100vw, 904px\" \/><\/figure><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Managing disk partitions is an essential task for Linux system administrators. Proper disk partitioning helps organize storage, improve performance, and simplify server management. Whether you are setting up a new&hellip;<\/p>\n","protected":false},"author":4,"featured_media":17250,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":""},"categories":[91],"tags":[],"_links":{"self":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/351"}],"collection":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/comments?post=351"}],"version-history":[{"count":3,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/351\/revisions"}],"predecessor-version":[{"id":17252,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/351\/revisions\/17252"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/media\/17250"}],"wp:attachment":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/media?parent=351"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/categories?post=351"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/tags?post=351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}