29 Comments to How to use diskpart, chkdsk, defrag and other disk-related commands

  1. kevin says:

    How to resizing a partition using the command prompt? are there any article about this? thx

  2. Rizwan says:

    i have a doubt that if i have to create a partition in GB scale then how many zeros must i add , i know the question is silly but i face a lot problems when i try to partition my disk using CMD

  3. adam says:

    what do you do if it says there are no fixed disks to show.

  4. Dan Wasson says:

    Hi this was great because I am currently stuck in command line, trying to back up key files from my c: drive before i do a factory restore of win7. (i’m here because I can’t get windows to boot so i’m going to nuke it). I’d like to make another partition so that I can put the backup files (like 10-20gb) onto that drive (like I’ll call it F:) so the windows restore doesnt blow it away.

    question – I got to the part where I was going to create a partition, but it says I have no free space.

    List Disk says 300gb hard drive has no free space (size: 298gb, free: 0b).
    List Volume says D: Recovery 14gb, C: OS 283gb

    but – when I look at the drive space actually available on C (c: dir) there’s about 180gb free.

    is there a way to use that 180gb of free space to create another partition/virtual drive with a different drive letter / mount?

    thanks!

    1. Ciprian Adrian Rusen says:

      If Windows seems to be reporting your free space incorrectly, it is good to perform a scan disk and repair any errors on it. Info about this tool can be found here: http://www.digitalcitizen.life/test-partition-errors-check-disk

      Personally, I recommend using a more visual tool to manage your partitions and create new ones, like the Disk Management Tool: http://www.digitalcitizen.life/how-manage-your-disks-using-disk-management-utility

      The command line is trickier to use and more error prone if you don’t know very well what you are doing.

  5. Ledian says:

    Hi, this is deff helpful. However, I just build a barebones comp and when I give the LIST DISK command it tells me there are no fixed disks to show. I know my hdd is working properly, and the BIOS recognizes it too, but I’m stuck and don’t know what to do. Any help is much appreciated

  6. Joshua says:

    Hi,i have a problem,when i try the list disk,the free space shown is 0…so what is the problem?

  7. Avinash says:

    Hi… Your site is very good and the descriptions are very much easy and understandable… Hats off to you.

  8. t0tti says:

    how can i do this commands by batch file?

  9. reza says:

    Hi, very useful information. Got a question though.
    when I use “list partition” I can see three partitions which I used to have. However, one of them on which I have my operating system is missing or somehow got inactivated, i.e when type “list volume” I am not able to see the driver or programs. How can I recover it or making it available again so that I can have my Pc work again?

    Tnx

  10. Barry Brian says:

    How to in large hard disk

  11. guna says:

    i have one doubt. In my laptop i have 1TB hard disk but i have one disk only. i do like this command partition means is their any chance to get the OS corrupt?

    1. Ciprian Adrian Rusen says:

      If you work with the commands shared in this article and you want to re-partition your hard disk, make sure that your data is backed up so that you don’t lose it, in case something goes wrong.

  12. Elina says:

    Im trying to recover data from my sd card that says that its damaged and needs to be reformatted. Looked up the solutions and it says to go thru Cmd and type in diskpart and then enter, then list disk. Well, the problem is, after i hit diskpart then enter, the next window comes up and doesn’t let me type anything. Not sure what to do at this point. Please, help!

  13. paris says:

    i only have disk 0 and disk 1. disk 0 is 298gb but no free space and disk 1 is 0gb. I cant get windows os 8.1 to reinstall my system crashed. I need to create a partition I guess can u help?

  14. abdullah says:

    will i lose my date after deleting volume

  15. Jun says:

    How to format a write protected disk?

  16. Diana Peek says:

    how to restore all disk partitions ! how to recover severel operating systems when disk partion cmd prompt cmd has been ussd by unotherized user left no disk keeping storage. on any letter

  17. Amit singh says:

    Nice Article

    1. Ciprian Adrian Rusen says:

      Thanks!

  18. Mike says:

    Great article. Love all the articles I read from D.C. One comment though: I would have mentioned, in the defrag section, that one should not defrag an SSD. This puts extra wear & tear on the drive and is actually unnecessary because of the speed of the drive. Keep up the good work & thank you.

  19. Yancy Willson says:

    Ok, I followed instructions per your site. And may I say first that the hard drive that I am trying to fix came from a machine that I bought performance HDD for. So now I am using another machine and hdd dock station. All went well to the point when I tryed to delete the partition. This is what command propt tells me. (Virtual disk service error:
    Cannot delete a protected partition without the force protected parameter set.
    So how do I set the force protected parameter?
    If you know how and do not mind helping me learn more about my machine, I would be very gratful.

    1. Anonymous says:

      Hi, try to use the “delete partition override” command instead.

  20. Hamza says:

    Please tell the command for fregmentation of disk

  21. aravinth says:

    i tried everything and finally i used partition wizard tool and its worked for me

    1. Anonymous says:

      It is good that you found a solution that worked. 😉

  22. Owner OF a DELL PC says:

    this was so helpful. thank you! 🙂

  23. LINDA RODRIGUEZ says:

    THIS WAS GREAT! HOW TO GET YOUR DISK OR PARTITION BACK. I JUST HAVE 232 GB OUR OF 1TB AND CAN NOT INSTALL WINDOWS 10

  24. MIMI VACHER says:

    DIGITAL CITIZEN: PROBABLY THE BEST, MOST INFORMATIVE, CONCISE TUTORIAL EVER….NO PROBLEM WITH UNDERSTANDING THE CLEARLY WORDED STEP-BY-STEP INSTRUCTIONS!!!!!

Leave a comment

Loading...