How to Make an Amazon EBS Volume Available for Use
Inside the instance, the Amazon EBS volume is exposed as a normal block device and can be formatted as any file system and mounted.
After making the Amazon EBS volume available for use, you can take snapshots of it for backup purposes or to use as baselines to launch new volumes.
Linux and UNIX
This section describes how to make a volume available to the Linux and UNIX operating system.
To create an ext3 file system on the Amazon EBS volume and mount it as /mnt/data-store
-
Enter the following command.
$
-
Enter the following command.
$
-
Enter the following command.
$
Any data written to this file system is written to the Amazon EBS volume and is transparent to applications using the device.
Note | |
---|---|
To enable the instance to reconnect to an Amazon EBS volume on reboot, add the device to the fstab or create a script that automatically mounts the volume on boot. |
Windows
This section describes how to make a volume available to the Windows operating system.
To use an Amazon EBS volume
-
Log in to your instance using Remote Desktop.
-
On the taskbar, click Start, and then click Run.
-
Type diskmgmt.msc and click OK. The Disk Management utility opens.
-
Right-click the Amazon EBS volume, select New Volume, and follow the on-screen prompts.
Note If the New Volume option does not appear, select Format.
Any data written to this file system is written to the Amazon EBS volume and is transparent to applications using the device.