How to get the cluster usage details of a hard disk Volume?

This is a discussion on How to get the cluster usage details of a hard disk Volume? within the Windows Programming forums, part of the Platform Specific Boards category; hiii How to get the cluster usage details of a hard disk Volume? Is there any API available...??...

  1. #1
    Registered User
    Join Date
    Jun 2009
    Location
    Bangalore,India
    Posts
    24

    How to get the cluster usage details of a hard disk Volume?

    hiii

    How to get the cluster usage details of a hard disk Volume?
    Is there any API available...??

  2. #2
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,211
    There is no way to do this in standard C++. This would have to be done specifically for the system you're using, requiring you to research the method that your system provides.

  3. #3
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,045
    What operating system are you using? If it's Windows, check MSDN. If it's Linux, you could examine the source code for some disk-checking program, if you can find one. (fsck comes to mind, but that might be complicated.)

    Either way, it will probably be complicated. What are you trying to do?
    Last edited by dwks; 06-05-2009 at 10:27 AM.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  4. #4
    Registered User
    Join Date
    Jun 2009
    Location
    Bangalore,India
    Posts
    24

    Reply

    hii

    I'm trying to copy the used clusters of a hard disk volume to another volume.And both partitions are of same size and NTFS.Now I copy everything with out checking the clusters are allocated or free.To improve the performance I wanna copy only the used clusters.And my application is "copy partition " platform Windows...

    Anyway thanks for the reply from our side.

    With regards
    Krish
    Last edited by Salem; 06-06-2009 at 04:12 AM. Reason: snipped email address

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. hard disk space and spyware
    By oldmancan in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 01-23-2003, 12:24 AM
  2. truely Cleaning a hard disk
    By xds4lx in forum A Brief History of Cprogramming.com
    Replies: 29
    Last Post: 01-22-2003, 11:37 PM
  3. how to store a node on hard disk
    By ALLRIGHT in forum C Programming
    Replies: 3
    Last Post: 05-13-2002, 10:11 AM
  4. program to check hard disk transfer rate
    By shadow99er in forum C Programming
    Replies: 3
    Last Post: 03-01-2002, 04:04 PM
  5. Direct disk access in DOS
    By VirtualAce in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 02-26-2002, 01:52 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21