Skip to main content

EBS volume unmounted after EC2 instance type change [Resolved]

I have an EC2 instance running mongo, with data stored on a separate EBS device. I decided to change EC2 instance type, and when I restarted I did not see the disk anymore, so I had to mount again. Don't know if this is due to instance downgrade, or if my mount simple does not survive the instance restart. I mounted the disk with this command:

mount /dev/xvdf /data -o noatime -o noadirtime

Question Credit: Felice Pollano
Question Reference
Asked July 11, 2018
Posted Under: Network
34 views
1 Answers

In order to preserve a mount point after a server reboot, you have to add it in /etc/fstab fstab

So you have to add the following line in /etc/fstab

/dev/xvdf /data ext4 errors=remount-ro 0 2


credit: dkokmadis
Answered July 11, 2018
Your Answer
D:\Adnan\Candoerz\CandoProject\vQA