
{"id":14193,"date":"2022-09-30T03:33:22","date_gmt":"2022-09-30T01:33:22","guid":{"rendered":"https:\/\/contabo.com\/blog\/?p=14193"},"modified":"2023-05-15T02:41:10","modified_gmt":"2023-05-15T00:41:10","slug":"changing-the-partition-layout-of-your-vps-after-os-installation","status":"publish","type":"post","link":"https:\/\/contabo.com\/blog\/changing-the-partition-layout-of-your-vps-after-os-installation\/","title":{"rendered":"Changing the Partition Layout of Your VPS after OS Installation"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"630\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/blog-head_changing-the-partition-layout.jpg\" alt=\"\" class=\"wp-image-14317\" srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/blog-head_changing-the-partition-layout.jpg 1200w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/blog-head_changing-the-partition-layout-600x315.jpg 600w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/blog-head_changing-the-partition-layout-768x403.jpg 768w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-what-are-partitions\">What are Partitions?<\/h2>\n\n\n\n<p>Imagine a laptop with a 500 GB disk and Windows as the operating system. By default, Windows is installed on the 500 GB disk. But what if you want to have both Windows and Linux? That\u2019s where <a href=\"https:\/\/en.wikipedia.org\/wiki\/Disk_partitioning\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">partitions<\/a> come in. For example, you can create a 400 GB partition and a 100 GB partition on your 500 GB disk. Now your physical disk acts like two separate disks which means you can install Windows on one partition and Linux on the other.<\/p>\n\n\n\n<p>In other words, partitions are logically separated parts on a hard drive that are treated as if they were separate hard drives. That means, each partition can have its own file system on it and they can also be encrypted.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-and-why-do-i-need-to-partition-my-server\">And Why Do I Need to Partition My Server?<\/h2>\n\n\n\n<p>Typically when you receive your server, you\u2019ll get the default partition layout and OS installed. That\u2019s enough for many users, but there are situations where you may need to edit this setup.<\/p>\n\n\n\n<p>Here are some reasons why you might want to customize the partition layout:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Security:<\/strong> When your file system is full, this usually leads to a server failure. To prevent the whole server from failing, you can create a separate partition for your \/home directory. That way, even if your \/home partition is completely full, it doesn\u2019t affect your OS partition.<\/li>\n\n\n\n<li><strong>Encryption:<\/strong> The default partition where the OS is on cannot be subsequently encrypted. To encrypt your data, you can create a separate partition for your \/home directory and then encrypt this new partition.<\/li>\n\n\n\n<li><strong>Backups:<\/strong> Some backup tools require a whole partition as destination, so you have to create custom partitions in order for them to work. But keep in mind that although partitions are logically separated, they are still on the same hard drive. You should always store your backups on a different hard drive so that you don\u2019t lose your data in case of a drive failure.<\/li>\n\n\n\n<li><strong>Changes of virtual machine storage size:<\/strong> Depending on your hosting provider, your server might not use all the available disk space after an upgrade. In this case, you need to manually extend the existing partition to also use the new space available. If you\u2019re a Contabo customer and you\u2019re <a href=\"https:\/\/contabo.com\/blog\/what-is-cloud-init\/\">using cloud-init<\/a>, this is automatically done for you.<\/li>\n<\/ul>\n\n\n\n<p>In this guide, you\u2019ll learn how to get an overview of your current partition layout, how to extend existing partitions, and also how to create new ones.<\/p>\n\n\n\n<p><strong>Please be advised to <\/strong><a href=\"https:\/\/contabo.com\/blog\/linux-server-backup-using-rclone\/\"><strong>perform a backup of all important data<\/strong><\/a><strong> before proceeding! Changes to the partition table always bear the risk of a complete data loss!<\/strong><\/p>\n\n\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-linux\">Linux<\/h2>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-expand-the-existing-partition\">Expand the Existing Partition<\/h2>\n\n\n\n<p>If you upgraded your virtual machine so that it has more storage, the most typical way to go is to expand the existing partition to use all the available space. For Debian and Ubuntu users, this can be done using the <a href=\"https:\/\/launchpad.net\/ubuntu\/+source\/cloud-utils\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">cloud-utils<\/a> package:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install cloud-utils -y<\/code><\/pre>\n\n\n\n<p>Now the cloud-utils are installed, we need to know the name of the existing partition. use the following command to search for a partition mounted to \u201c\/\u201d:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mount | grep ' \/ '<\/code><\/pre>\n\n\n\n<p>Example output:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/dev\/sda1 on \/ type ext4 (rw,relatime,discard,errors=remount-ro)<\/code><\/pre>\n\n\n\n<p>Remember the first part (\u201c\/dev\/sda1\u201d in the example above). To expand the partition, use the following commands:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo growpart \/dev\/sda 1<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo resize2fs \/dev\/sda1<\/code><\/pre>\n\n\n\n<p>And that\u2019s all it takes to expand your existing partition on Debian and Ubuntu.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-customize-the-partition-layout\">Customize the Partition Layout<\/h2>\n\n\n\n<p>For these changes the server needs to be in the rescue system, so boot your server into that system before proceeding. If you\u2019re a Contabo customer, navigate to <a href=\"https:\/\/my.contabo.com\/abos\">your services in the Customer Control Panel<\/a>, click on \u201cManage\u201d next to your server and select \u201cRescue System\u201d. Choose a password and your server will boot into the rescue system.<\/p>\n\n\n\n<p>Now connect to your server through VNC and login as \u201croot\u201d and the password you\u2019ve set for the rescue system. If you\u2019re not familiar with VNC, <a href=\"https:\/\/contabo.com\/blog\/vnc-connect-vps\/\">head over to this guide<\/a>.<\/p>\n\n\n\n<p>Once you are connected with VNC, use the command startxfce4 to start the GUI (graphical user interface).<\/p>\n\n\n\n<p>The software we\u2019ll use to make changes to the partition layout is \u201cGParted\u201d. Open it up by clicking \u201cApplications\u201d on the top left and then select \u201cRun program\u201d. Type \u201cGParted\u201d and hit \u201cLaunch\u201d.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2042\" height=\"1524\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/linux-1-open.jpg\" alt=\"\" class=\"wp-image-14197\" srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/linux-1-open.jpg 2042w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/linux-1-open-600x448.jpg 600w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/linux-1-open-768x573.jpg 768w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/linux-1-open-1536x1146.jpg 1536w\" sizes=\"auto, (max-width: 2042px) 100vw, 2042px\" \/><\/figure>\n\n\n\n<p>Here you can see an overview of all partitions on the server. In this case, there is no space left, so we have to shrink a partition first. <strong>Note that LVM partitions (which are used with CentOS by default) cannot be shrunk.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2046\" height=\"1520\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/linux-2-overview.jpg\" alt=\"\" class=\"wp-image-14199\" srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/linux-2-overview.jpg 2046w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/linux-2-overview-600x446.jpg 600w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/linux-2-overview-768x571.jpg 768w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/linux-2-overview-1536x1141.jpg 1536w\" sizes=\"auto, (max-width: 2046px) 100vw, 2046px\" \/><\/figure>\n\n\n\n<p>Select the partition you want to shrink, right click and select \u201cResize\/Move\u201d.<\/p>\n\n\n\n<p>A new window appears where you can specify the size of the partition. For example, we can shrink the size so we have 20 GB of space available to create a new partition.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2038\" height=\"1532\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/linux-3-resize.jpg\" alt=\"\" class=\"wp-image-14201\" srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/linux-3-resize.jpg 2038w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/linux-3-resize-600x451.jpg 600w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/linux-3-resize-768x577.jpg 768w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/linux-3-resize-1536x1155.jpg 1536w\" sizes=\"auto, (max-width: 2038px) 100vw, 2038px\" \/><\/figure>\n\n\n\n<p>To confirm the changes, click \u201cResize\/Move\u201d and now you can see that we have 20 GB of unallocated disk space available.<\/p>\n\n\n\n<p>Rightlick the unallocated disk space and select \u201cNew\u201d to create a new partition. Now you should have another partition in the list:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2044\" height=\"1528\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/linux-4-unallocated.jpg\" alt=\"\" class=\"wp-image-14203\" srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/linux-4-unallocated.jpg 2044w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/linux-4-unallocated-600x449.jpg 600w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/linux-4-unallocated-768x574.jpg 768w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/linux-4-unallocated-1536x1148.jpg 1536w\" sizes=\"auto, (max-width: 2044px) 100vw, 2044px\" \/><\/figure>\n\n\n\n<p>So far, no changes have been made to your hard drive. In order to apply the changes, hit the green tick symbol. A confirmation window appears warning you that you can lose your data when performing this action. <strong>As mentioned before, changes to the partition layout can always result in a complete data loss. Make sure you have a full backup of all your data.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2040\" height=\"1522\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/linux-6-confirm.jpg\" alt=\"\" class=\"wp-image-14207\" srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/linux-6-confirm.jpg 2040w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/linux-6-confirm-600x448.jpg 600w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/linux-6-confirm-768x573.jpg 768w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/linux-6-confirm-1536x1146.jpg 1536w\" sizes=\"auto, (max-width: 2040px) 100vw, 2040px\" \/><\/figure>\n\n\n\n<p>If you\u2019re ready, click \u201cApply\u201d and the changes will be applied to your hard drive. Depending on the amount of data stored on your server, this action may take some time.<\/p>\n\n\n\n<p>Once the changes are applied, you can restart your server. Use the following command to list all block devices, including the newly created partition:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo lsblk<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>NAME    MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT\nsda       8:0    0   200G  0 disk\n|-sda1    8:1    0 179.9G  0 part \/\n|-sda2    8:2    0    20G  0 part\n|-sda14   8:14   0     3M  0 part\n`-sda15   8:15   0   124M  0 part \/boot\/efi\n<\/code><\/pre>\n\n\n\n<p>Here you can see the partition \u201csda2\u201d we just created with a size of 20 GB.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-additional-steps-for-lvm\">Additional Steps for LVM<\/h3>\n\n\n\n<p>If you\u2019re managing your partitions with Logical Volume Management (LVM), you need to not only extend the size of the partition itself, but also of the Logical Volume (LV).<\/p>\n\n\n\n<p>First, make sure to activate the volume:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo lvchange -a y &lt;LV_Name&gt;\n<\/code><\/pre>\n\n\n\n<p>You can check the available space with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo vgs<\/code><\/pre>\n\n\n\n<p>Example result:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u200b\u200bVG        #PV #LV #SN Attr   VSize   VFree\ntestgroup   1   1   0 wz--n- &lt;20.00g &lt;8.00g\n<\/code><\/pre>\n\n\n\n<p>In this example, there are 8 GB of free storage capacity in the Volume Group (VG) \u201ctestgroup\u201d, becuase the LV currently uses 12 GB, but there are 20 GB available. Let\u2019s extend it to use all the available space:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo lvextend -l +100%FREE &lt;LV_NAME&gt;<\/code><\/pre>\n\n\n\n<p>This will extend your volume to use all the available storage space. If you run sudo vgs again, you can see that there is no space left (because the LV takes up all the available space):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>VG        #PV #LV #SN Attr   VSize   VFree\ntestgroup   1   1   0 wz--n- &lt;20.00g    0\n<\/code><\/pre>\n\n\n\n<p>Once finished with the LV configuration, resize the filesystem to the size of the LV we\u2019ve just extended:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo resize2fs &lt;LV_Name&gt;<\/code><\/pre>\n\n\n\n<p>And that&#8217;s all there is if you&#8217;re using LVM.<\/p>\n\n\n\n<p>Learn more about mounting additional drives on Linux <a href=\"https:\/\/contabo.com\/blog\/mounting-additional-hard-disks-linux\/\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-windows\">Windows<\/h2>\n\n\n\n<p>If your server is running Windows, <a href=\"https:\/\/contabo.com\/blog\/connect-server-rdp\/\">connect to your server with RDP<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"2400\" height=\"1500\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/windows-1-open-2400x1500.jpg\" alt=\"\" class=\"wp-image-14209\" srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/windows-1-open-2400x1500.jpg 2400w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/windows-1-open-600x375.jpg 600w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/windows-1-open-768x480.jpg 768w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/windows-1-open-1536x960.jpg 1536w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/windows-1-open-2048x1280.jpg 2048w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/windows-1-open-400x250.jpg 400w\" sizes=\"auto, (max-width: 2400px) 100vw, 2400px\" \/><\/figure>\n\n\n\n<p>Right click the Windows logo in the bottom left corner and select \u201cDisk Management\u201d. Here you can see all existing partitions and hard drives. In this case, there is only one 200 GB hard drive connected, which is usual for a VPS. On a dedicated server you may have multiple hard drives connected to your server.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"2400\" height=\"1500\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/windows-2-overview-2400x1500.jpg\" alt=\"\" class=\"wp-image-14211\" srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/windows-2-overview-2400x1500.jpg 2400w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/windows-2-overview-600x375.jpg 600w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/windows-2-overview-768x480.jpg 768w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/windows-2-overview-1536x960.jpg 1536w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/windows-2-overview-2048x1280.jpg 2048w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/windows-2-overview-400x250.jpg 400w\" sizes=\"auto, (max-width: 2400px) 100vw, 2400px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-expand-existing-partitions\">Expand Existing Partitions<\/h2>\n\n\n\n<p>First, right click the partition you want to expand and select \u201cExtend Volume\u201d. If you haven\u2019t changed the partition layout and just upgraded the storage, the default partition on Windows is usually \u201cWindows (C:)\u201d.<\/p>\n\n\n\n<p>Here, select the disk on which you want to expand your partition. In this example, there is only one disk with 50 GB of unallocated space and that\u2019s what the existing partition should use, so we\u2019ll select that.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1128\" height=\"639\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/windows-2-3-expand-existing-partition.png\" alt=\"\" class=\"wp-image-14213\" srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/windows-2-3-expand-existing-partition.png 1128w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/windows-2-3-expand-existing-partition-600x340.png 600w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/windows-2-3-expand-existing-partition-768x435.png 768w\" sizes=\"auto, (max-width: 1128px) 100vw, 1128px\" \/><\/figure>\n\n\n\n<p>You can also change the amount of MB you want to add to the partition, by default that\u2019s all the available space.<\/p>\n\n\n\n<p>Press \u201cNext\u201d and then \u201cFinish\u201d to complete. In Disk Management you can now see that the unallocated space is gone and the partition has more space allocated to it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-modify-existing-partitions\">Modify Existing Partitions<\/h2>\n\n\n\n<p>To change the partition layout, right click the partition you want to change. For this example, we\u2019ll first shrink the existing partition and then create a new one. Select \u201cShrink Volume\u201d and in a new window you can choose how much space you want to free up.<\/p>\n\n\n\n<p>In this example, we\u2019ll free up 50 GB of space which means that we have 50 GB unallocated space on our hard drive after this operation.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"2400\" height=\"1500\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/windows-4-shrink-2400x1500.jpg\" alt=\"\" class=\"wp-image-14215\" srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/windows-4-shrink-2400x1500.jpg 2400w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/windows-4-shrink-600x375.jpg 600w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/windows-4-shrink-768x480.jpg 768w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/windows-4-shrink-1536x960.jpg 1536w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/windows-4-shrink-2048x1280.jpg 2048w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/windows-4-shrink-400x250.jpg 400w\" sizes=\"auto, (max-width: 2400px) 100vw, 2400px\" \/><\/figure>\n\n\n\n<p>Click \u201cShrink\u201d to confirm the changes.<\/p>\n\n\n\n<p>You can now see the 50 GB of unallocated space on the hard drive.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"2400\" height=\"1500\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/windows-5-unallocated-2400x1500.jpg\" alt=\"\" class=\"wp-image-14217\" srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/windows-5-unallocated-2400x1500.jpg 2400w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/windows-5-unallocated-600x375.jpg 600w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/windows-5-unallocated-768x480.jpg 768w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/windows-5-unallocated-1536x960.jpg 1536w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/windows-5-unallocated-2048x1280.jpg 2048w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/windows-5-unallocated-400x250.jpg 400w\" sizes=\"auto, (max-width: 2400px) 100vw, 2400px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-creating-new-partitions\">Creating New Partitions<\/h2>\n\n\n\n<p>To create a new partition, right click the unallocated space in the disk overview and select \u201cNew Simple Volume\u201d.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1440\" height=\"900\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/windows-6-new-partition.jpg\" alt=\"\" class=\"wp-image-14273\" srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/windows-6-new-partition.jpg 1440w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/windows-6-new-partition-600x375.jpg 600w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/windows-6-new-partition-768x480.jpg 768w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/windows-6-new-partition-400x250.jpg 400w\" sizes=\"auto, (max-width: 1440px) 100vw, 1440px\" \/><\/figure>\n\n\n\n<p>You\u2019ll be asked how much space you want to allocate, in this case we\u2019ll just use all the available space (50 GB).<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1440\" height=\"900\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/windows-7-create.jpg\" alt=\"\" class=\"wp-image-14275\" srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/windows-7-create.jpg 1440w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/windows-7-create-600x375.jpg 600w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/windows-7-create-768x480.jpg 768w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/windows-7-create-400x250.jpg 400w\" sizes=\"auto, (max-width: 1440px) 100vw, 1440px\" \/><\/figure>\n\n\n\n<p>You can customize the new partition in the following windows. After the Setup Wizard, the new partition is visible in the Disk Manager:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1440\" height=\"900\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/windows-8-complete.jpg\" alt=\"\" class=\"wp-image-14277\" srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/windows-8-complete.jpg 1440w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/windows-8-complete-600x375.jpg 600w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/windows-8-complete-768x480.jpg 768w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/windows-8-complete-400x250.jpg 400w\" sizes=\"auto, (max-width: 1440px) 100vw, 1440px\" \/><\/figure>\n\n\n\n<p>Learn more about mounting drives on Windows <a href=\"https:\/\/contabo.com\/blog\/mounting-additional-hard-drives-windows\/\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Imagine a laptop with a 500 GB disk and Windows as the operating system. By default, Windows is installed on the 500 GB disk. But what if you want to have both Windows and Linux? That\u2019s where partitions come in.<\/p>\n","protected":false},"author":57,"featured_media":14317,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[18],"tags":[],"ppma_author":[1525],"class_list":["post-14193","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials"],"uagb_featured_image_src":{"full":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/blog-head_changing-the-partition-layout.jpg",1200,630,false],"thumbnail":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/blog-head_changing-the-partition-layout-150x150.jpg",150,150,true],"medium":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/blog-head_changing-the-partition-layout-600x315.jpg",600,315,true],"medium_large":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/blog-head_changing-the-partition-layout-768x403.jpg",768,403,true],"large":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/blog-head_changing-the-partition-layout.jpg",1200,630,false],"1536x1536":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/blog-head_changing-the-partition-layout.jpg",1200,630,false],"2048x2048":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2022\/09\/blog-head_changing-the-partition-layout.jpg",1200,630,false]},"uagb_author_info":{"display_name":"Linus Benkner","author_link":"https:\/\/contabo.com\/blog\/author\/linus\/"},"uagb_comment_info":0,"uagb_excerpt":"Imagine a laptop with a 500 GB disk and Windows as the operating system. By default, Windows is installed on the 500 GB disk. But what if you want to have both Windows and Linux? That\u2019s where partitions come in.","authors":[{"term_id":1525,"user_id":57,"is_guest":0,"slug":"linus","display_name":"Linus Benkner","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/396885b0c71ca364e267b5804deaef19e48538c136b5287377b0d481091abd10?s=96&d=mm&r=g","0":null,"1":"","2":"","3":"","4":"","5":"","6":"","7":"","8":""}],"_links":{"self":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts\/14193","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/users\/57"}],"replies":[{"embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/comments?post=14193"}],"version-history":[{"count":2,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts\/14193\/revisions"}],"predecessor-version":[{"id":17030,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts\/14193\/revisions\/17030"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/media\/14317"}],"wp:attachment":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/media?parent=14193"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/categories?post=14193"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/tags?post=14193"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=14193"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}