Fixing USB Drive

My old pendrive get corrupted. I've used it to install ArchLinux and needed it repartitioned back as regular pendrive. Unfortunately using "always working" HP USB Disk Storage Format Tool corrupted the drive on my Windows 8.1 box. It just seemed to remove partition table, but drive was not visible on Windows and Drive Manager was unable to format it. Here what I did to recover it (note diskpart was started from elevated command line):

Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>diskpart

Microsoft DiskPart version 6.3.9600

Copyright (C) 1999-2013 Microsoft Corporation.
On computer: KARO-VAIO

DISKPART> list disk

  Disk ###  Status         Size     Free     Dyn  Gpt
  --------  -------------  -------  -------  ---  ---
  Disk 0    Online          465 GB      0 B
  Disk 1    No Media           0 B      0 B
  Disk 2    Online         1908 MB      0 B

DISKPART> select disk 2

Disk 2 is now the selected disk.
DISKPART> list partition

  Partition ###  Type              Size     Offset
  -------------  ----------------  -------  -------
  Partition 1    Primary           1907 MB    31 KB

DISKPART> clean


DiskPart succeeded in cleaning the disk.

DISKPART> list partition

There are no partitions on this disk to show.

DISKPART> exit

Leaving DiskPart...

Now it was enough just to format drive using standard Windows 

Comments

Popular posts from this blog

Hardening OpenWRT - adding non-root user account

Dropbear SSH keys and autossh on OpenWRT

SSH Tunel with OpenWRT