In order to utilize an HD upgrade you can opt to create a new partition. You need to go through a six step explanation that will guide you through the process of creating a partition for your BladeVPS.
Note: Incase it is not mentioned, a command is always followed by an ‘enter’.
Steps to Create Partition in CentOS
1. In order to create a partition login as root on your VPS by using the command “su -”. You can use the following command in order to start the creation of a partition “fdisk /dev/vda”. After that Press “p” and then hit enter. Here you will come across your current partitions. The Partitions labeled 1, 2, 3 and 4 are your primary partitions. The next thing you need to do is Pick a number from the primary partitions that does not show up in the table (mostly it is 3 or 4). Now Write it down or just remember it, you will need it later. Along with this note down the final cylinder number. This is the number that you will come across in the end column for the latest partition. For example, we look at 104025 (see screenshot) as a sample. Here, Press “n” to continue with the procedure.

2. For continuing press “p”. Here You can now fill in the partition number. Remember that you have to opt for a partition number that is not taken yet. You will get to know that what are these partitions from the previous step that you made. Now please write down or memorize the partition number that you have chosen. You will be needing it later. If you are asked to submit a first cylinder, then enter the cylinder number from the previous stop + 1. In the example that we are using this would be 104026( 104025 + 1). Now the last cylinder will automatically be counted, the next thing you do is that you accept the default proposition for the last cylinder by simply pressing ‘enter‘. Once you have done that now write the partition by providing the command “w”.
3. The next that you would be required to do is “Reboot” your VPS and then run the following command “mke2fs -j /dev/vdaX”. Here you need to Replace the x with the partition number from the step that was previously taken.
4. Once the partition is formatted you will be required to create a new so-called mount point. Here, Create a new directory using the following mentioned command “mkdir /mynewpartition” here you have the choice to opt for any name that you want for “mynewpartition”. But do not forget to memorize or pen down the partition name. You will need it in the steps that follow.
5. Now you need to copy /etc/fstab using the command “cp /etc/fstab /etc/fstab.bak”. The partition is now completely ready to be added to /etc/fstab. Now Use the following mentioned command “echo ‘/dev/vdaX /mynewpartition ext4 defaults 1 1′ >> /etc/fstab”.
6. After you are done with this now use this command to mount the partition and your Harddisk Upgrade will be completed: ”mount /mynewpartition”






