Explore Courses Blog Tutorials Interview Questions
0 votes
in AWS by (19.1k points)

I have an EBS volume (e.g. /dev/sdf) that has been attached to an EC2 instance (which boots from a different EBS volume), and I have mounted the volume (through mount /dev/sdf /data). When I stop and start again the instance, the volume is still attached but no longer mounted, and I have to manually mount it again.

Is there a way to make the volume /dev/sdf automatically mounted to /data upon starting the instance?

1 Answer

0 votes
by (44.4k points)

You have to make an entry to  /etc/fstab:

So, the entry would look like:

/dev/sdf    /data ext3    defaults 1 1

This will automatically mount the volume during reboot.

Related questions

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer

Browse Categories