I mounted volume by following it gets mounted but files get lost after stop.
mkfs -t ext2 /dev/sdb mkdir /mnt/myVol mount /dev/sdb /mnt/myVol
I mounted volume by following it gets mounted but files get lost after stop.
mkfs -t ext2 /dev/sdb mkdir /mnt/myVol mount /dev/sdb /mnt/myVol
If you want a volume whose data persists after you stop the EC2 instance that the volume is mounted on, you should use an Elastic Block Store volume.