There are many books, TV shows, and movies on the subject, and a Google search for EMP delivers 273 million results.
The problem with preparing for an EMP attack is that we do not know what will happen in the days, weeks, and months after the lights go out.
