Create a USB recovery drive - Microsoft Support
Windows 8.1 includes a built-in tool to create a USB recovery drive. Windows will let you know how big the recovery partition is, and you'll need a USB flash drive at least that big. Warning: Creating a recovery drive will erase anything already stored on your USB flash drive.