I stopped my EC2 Ubuntu (can't remember if it's 14.04 or 16.04) instance and now I can't access it.
These are the last couple lines of the system log.
Begin: Loading essential drivers ... done. Begin: Running /scripts/init-premount ... done. Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done. Begin: Running /scripts/local-premount ... done. Warning: fsck not present, so skipping root file system [ 9.413433] EXT4-fs (xvda1): mounted filesystem with ordered data mode. Opts: (null) done. Begin: Running /scripts/local-bottom ... done. Begin: Running /scripts/init-bottom ... Warning: overlayroot: debug is busted done. run-init: /sbin/init: No such file or directory Target filesystem doesn't have requested /sbin/init. run-init: /sbin/init: No such file or directory run-init: /etc/init: Permission denied run-init: /bin/init: No such file or directory /bin/sh: 0: can't access tty; job control turned off # [ 37.220041] random: nonblocking pool is initialized
I mounted my volume into another instance and checked, and /sbin/init is really not there.
In the new instance I launched, /sbin/init is a link to /lib/systemd/systemd. In the old volume, /lib/systemd/systemd apparently does not exist.
I also tried running fsck in the old volume and it didn't work.