are you using an SD card image? If not the sketch won't be stored as described elsewhere in this forum
no.. I am using the galileo board as it is from box.. Can you share me the step by step procedures to get galileo work as complete arduino board.
You will need an SD card to store the Arduino sketch and running it from restart. Please check this guide: Intel® Galileo Boards and Kits — SD Card Setup and Sketch Persistent, it explains the process to setup the SD card.