Creating new EBS disk partitions on Linux (Centos, RHEL) for Amazon Cloud EC2

Posted on October 14, 2012

First of all we run fdisk on the disk we want to partition, in my case it is /dev/sdb and you should replace by yours appropriately. We create it as a primary partition by entering p at the prompt, then 1 as the first cylinder and +500M for the size<

Next, we confirm our changes

Next, format the partition using EXT4 (or whichever file system you want)

Finally, we have to mount the partition and add it to the /etc/fstab so that it mounts at startup.

Create a new line with your drive info

Mount your new drive


Leave a Reply

Your email address will not be published.

Contact Us

Have a question? Send us a message. We'll get back to you soon.