As you say that the pendrive works as a hard disk in your laptop it means according to your laptop its your second hard disk so from somewhere collect Windows XP or older version of Windows and format some time because of bad sector it not supports to later version of OS.