It’s a good idea to create some restore media for your OS to supplement your backup strategy (you are backing up, correct?).  Apple has Recovery Disk Assistant while Windows (8.1, 8.0, 7.0)has its own method.  Some manufacturers also have recovery disk options but you’ll have to search Google for your model.