Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 1.47 KB

restoring-flash-drive.md

File metadata and controls

28 lines (23 loc) · 1.47 KB

If you wrote an image directly to an USB drive it won't show correctly in file managers.

Windows

Source: http://www.passmark.com/forum/showthread.php?4508-Reclaim-disk-space-after-imaging-with-imageUSB

Path I

  1. Insert UFD.
  2. Launch imageUSB and select the appropriate UFD. (Be careful and select the correct drive!).
  3. Choose the Zero UFD option & Run.
  4. Drive MBR 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.

Path II (if first way doesn't work)

  1. Start a Command Prompt with Admin Permissions. (Start, Type "cmd", right click on command prompt in the list of programs, and select "Run as Administrator")
  2. Enter the command "diskpart"
  3. Enter the command "list disk", locate the disk number for your USB Drive
  4. Enter the command "select disk X", where X is the number of your disk from step 3.
  5. Enter the command "clean", this will remove any and all partition or volume formatting from the disk with focus.
  6. Done, type "exit" to quit diskpart.
  7. Now in back in Disk Management, you should be able to right click the drive and choose new simple volume and proceed with formatting.

Linux

  1. dd count=1 bs=512 if=/dev/zero of=/dev/sdx && sync
  2. sudo pacman -S dosfstools
  3. cfdisk /dev/sdx
  4. mkfs.vfat -F32 /dev/sdx1
  5. dosfslabel /dev/sdx1 USB_STICK

Note that sdx1 is your USB drive. Look for it in lsblk.