In this article we will see how we can start an AWS EC2 instance for a non-stop state of Initializing. Causes for this type of EC2 instance behavior are listed at this link EC2 tourbleshooting and came well detailed by AWS documentation. But in some cases like mine there is no official troubleshoot done. So here is what i got in my System Log.
And here is the content of the log, just the part we are interested in:
[ 4.352948] cirrus 0000:00:02.0: registered panic notifier
[ 4.352952] [drm] Initialized cirrus 1.0.0 20110418 for 0000:00:02.0 on minor 0
[ 4.409799] xvde: unknown partition table
[ 93.960199] type=1305 audit(1453357323.599:3): audit_pid=538 old=0 auid=4294967295 ses=4294967295 res=1
Give root password for maintenance
(or type Control-D to continue):
3 - Attach the detached volume to the instance we started at step 1.
4 - Login to your new instance and list the volumes attached to the instance using the lsblk command.
[root@aodba]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
xvda 202:0 0 8G 0 disk
└─xvda1 202:1 0 8G 0 part /
xvdx 202:80 0 15G 0 disk
├─xvdx1 202:81 0 1M 0 part
└─xvdx2 202:82 0 6G 0 part [root@aodba]# mkdir /rest
[root@aodba]# mount /dev/xvdx2 /rest/
--edit fstab file
[root@aodba]# vim /rest/etc/fstab