Remove memtest from usb

A while ago I had some hardware issues with my desktop and used a USB stick to put a bootable memtest on it to do some diagnosis (at the time it was that one of the memory sticks was bad). Fast forward several weeks later however and now I'd like to find a way to get rid of memtest on my USB so that I may use it again for storing small documents and things of that nature.

Would anyone know how to restore a USB stick to its original state?

1

4 Answers

  1. Insert USB Disk.
  2. Launch the imageUSB program that you used to create the MemTest86 USB and select the appropriate USB Disk. (Be careful and select the correct drive!).
  3. Choose the Zero USB Disk option & Run.
  4. Drive MBR (Master Boot Record) is now Zeroed. You will need to reinsert the drive for Windows to recognize it and prompt for formatting before you can use it again. A normal format will now recover the full capacity of the USB drive.
3

Just format the drive, which will make it unbootable and empty.

enter image description here

1

No need to format your device!
If you can't remove or change anything, then probably your USB Stick is in "Read-Only" state.
Otherwise, smtg is wrong with your driver or there is a stupid virus.

But if all is OK, just make your Windows show all System and Hidden files,
or start CMD.exe and write there:

attrib -s -h -r <your drive>\*.* /s /d

Now all files are visible and are not Read-Only, including memtest. Now you can remove all odd files!

You can do it without imageUSB. From the memtest86 7.4 USB package readme file:

WARNING: THIS PROCESS WILL COMPLETELY DELETE THE DATA ON THE DRIVE

For Linux/Mac:

1) Insert the USB drive into a USB slot.

2) Determine which device the USB drive is assigned as (eg. /dev/sdc on Linux, /dev/disk1 on Mac).

3) As root, use the 'dd' command to erase the partition table of the USB drive. For example,

dd if=/dev/zero of= bs=512 count=1

where is the device the USB key is assigned to. Use the base device (ie. /dev/sdc) not a partition designation (ie. /dev/sdc1).

You can use blkid to find out the device name. Be absolutely sure to use the correct device name with dd. Format afterwards.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like