Format and mount an EBS volume in Linux and Windows

You create an EBS volume from Amazon Management Panel  OR from RightScale OR From Firefox plugin OR even from other EC2 complince management software.

After creating it you attach it to EC2 instance using same management panel .

Please note that : at a time you can only attach an EBS volume with one EC2 instance , but you can attach many EBS volumes to an EC2 instance.

Now after you have attached the EBS volume you will mention the location lets say you attach it under /dev/sdb , for formating and mounting follow the procedure as below.

To format and mount a volume in Linux/UNIX

  • Enter the following commands to format and mount the drive on directory /mnt/myVol (replace “/dev/sdb” with the device you chose to mount the Volume):
    mkfs -t ext2 /dev/sdb
    mkdir /mnt/myVol
    mount /dev/sdb /mnt/myVol

To format and mount a volume in Windows

  1. On the taskbar, click Start, and then click Run.
  2. Type diskmgmt.msc and click OK. The Disk Management utility opens.
  3. Right-click the Amazon EBS volume, select New Volume, and follow the on-screen prompts to mount it.