How to restore factory Hard Drive / Flash drive Capacity

AID: 8597
  • Status: Published

3290 points

  • ByShbasha
  • TypeTips/Tricks
  • Posted on2011-11-14 at 23:15:43
Problem description : Some external hard disks / USB flash drives do not show actual space as mentioned in the factory settings.

This is a common problem when you use an 8 GB USB drive to make it bootable to install a firmware/ driver on a server, which is a DOS flavored utility. After this, connect the flash drive to a laptop and it shows less than 2 GB. The reason for this is when making the flash disk to run a DOS program, it will format the flash disk with FAT file system. To correct this we need command line mode.

In Disk Management we can see the remaining space is available as unallocated. To partition it and make use of it, run the following from the command prompt:

Before executing the disk part command, make sure that the data from the flash drive is backed up as the command wipes data from the flash drive - or any other drive you select.

Run command prompt as administrator
Type "diskpart"

Type "list disk" it will show the following output (as example)
Disk ###  Status      Size     Free     Dyn  Gpt
--------  ----------  -------  -------  ---  ---
Disk 0    Online      2040 GB     0 B
Disk 1    Online       683 GB      0 B
                                    
1:
2:
3:
4:

Select allOpen in new window



To select Disk 0:
Type "select disk 0" (or whatever number that corresponds to your flash drive or disk), and proceed at your own risk, in particular if you have other external hard disks or USB flash drives connected to your computer.

This will shows the output as "Disk 0 is now the selected disk."

In the prompt type "clean" if you are satisfied that you have selected the right disk.
Now the entire disk shows as unallocated. You can create new partition using disk management or by using the following commands
create partition primary
select partition 1
active
format fs=fat32
assign
exit
                                    
1:
2:
3:
4:
5:
6:

Select allOpen in new window


After creating the primary partition and making it active, you can format the USB drive with NTFS file system from the windows explorer as well. Now it will show the entire space.
Asked On
2011-11-14 at 23:15:43ID8597
Tags

Flash drive

,

Storage

,

USB

Topic

Hard Drives & Storage

Views
2559

Comments

Expert Comment

by: USTRLLC on 2011-11-15 at 21:24:40ID: 33213

Very good tweak..

Add your Comment

Please Sign up or Log in to comment on this article.

Join Experts Exchange Today

Gain Access to all our Tech Resources

Get personalized answers

Ask unlimited questions

Access Proven Solutions

Search 3.2 million solutions

Read In-Depth How-To Guides

1000+ articles, demos, & tips

Watch Step by Step Tutorials

Learn direct from top tech pros

And Much More!

Your complete tech resource

See Plans and Pricing

30-day free trial. Register in 60 seconds.

Loading Advertisement...

Top Storage Misc Experts

  1. hanccocka

    247,063

    Guru

    0 points yesterday

    Profile
    Rank: Genius
  2. andyalder

    186,674

    Guru

    2,000 points yesterday

    Profile
    Rank: Genius
  3. dlethe

    151,091

    Guru

    0 points yesterday

    Profile
    Rank: Genius
  4. Callandor

    76,887

    Master

    0 points yesterday

    Profile
    Rank: Genius
  5. paulsolov

    72,153

    Master

    0 points yesterday

    Profile
    Rank: Genius
  6. meyersd

    50,146

    Master

    0 points yesterday

    Profile
    Rank: Genius
  7. kevinhsieh

    42,168

    2,800 points yesterday

    Profile
    Rank: Genius
  8. woolmilkporc

    41,212

    0 points yesterday

    Profile
    Rank: Genius
  9. rindi

    33,652

    0 points yesterday

    Profile
    Rank: Savant
  10. shahzoor

    33,509

    0 points yesterday

    Profile
    Rank: Guru
  11. nobus

    33,393

    0 points yesterday

    Profile
    Rank: Savant
  12. noxcho

    33,214

    0 points yesterday

    Profile
    Rank: Genius
  13. BigSchmuh

    28,987

    0 points yesterday

    Profile
    Rank: Sage
  14. garycase

    27,968

    0 points yesterday

    Profile
    Rank: Genius
  15. arnold

    26,694

    0 points yesterday

    Profile
    Rank: Genius
  16. SelfGovern

    22,967

    0 points yesterday

    Profile
    Rank: Wizard
  17. Shbasha

    18,208

    0 points yesterday

    Profile
    Rank: Master
  18. charlestasse

    18,144

    0 points yesterday

    Profile
    Rank: Wizard
  19. pgm554

    18,126

    0 points yesterday

    Profile
    Rank: Sage
  20. robocat

    16,490

    0 points yesterday

    Profile
    Rank: Sage
  21. ve3ofa

    16,400

    0 points yesterday

    Profile
    Rank: Genius
  22. DavisMcCarn

    15,300

    0 points yesterday

    Profile
    Rank: Genius
  23. strung

    13,800

    0 points yesterday

    Profile
    Rank: Genius
  24. chakko

    12,725

    0 points yesterday

    Profile
    Rank: Genius
  25. millardjk

    12,424

    0 points yesterday

    Profile
    Rank: Master

Hall Of Fame