un-acounted space in my C drive

This is a discussion on un-acounted space in my C drive within the Tech Board forums, part of the Community Boards category; @mkylman: Ofcourse, I know the size of a main folder includes the sizes of all the nested folders. And I ...

  1. #16
    Eager young mind
    Join Date
    Jun 2006
    Posts
    342
    @mkylman:
    Ofcourse, I know the size of a main folder includes the sizes of all the nested folders. And I have set the status for all my hidden folders to "visible" anyhow. so, I know its more complicated that just a few hidden folders hogging up space.
    In the middle of difficulty, lies opportunity

  2. #17
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    Format your drive and repartition it
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  3. #18
    Eager young mind
    Join Date
    Jun 2006
    Posts
    342
    well, that did hit me.. just want to keep that as the last option. but, seriously,Is there no other way of finding out what is wrong with my C drive?
    In the middle of difficulty, lies opportunity

  4. #19
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,590
    Do what Salem said. Listen to our suggestions. The only sure way to list every file and folder on your drive is to bypass the Windows API completely. The command prompt or the old DOS session won't lie to you. WYSIWYG with DOS. Not so with Windows as it can be exploited in a fraction of a second to show or not show different folders and files. AKA...rootkits.

    If the command prompt reports a discrepancy you probably have a file system issue.

    dir *.* /s /ash> "MyDrive.txt"

    This will report the size of every folder (directory) and file on the drive be it archive, system, or hidden. It will dump the results in MyDrive.txt.

    You guys who rely on the API to report your drive stats to you are being seriously misled. A small C program will do this for you in console mode and it will be correct. The API is not reliable, hence Windows Explorer or anything to do with Windows or inside of Windows will not be correct. It's just too easy to exploit it.

    The only other way is to read up on how to read the NTFS file system and write code that will do just that. After reading the file system you then do the same in the API and compare the results.

    There is a utility called Rootkit Revealer that does just this very thing. Google it.
    Last edited by VirtualAce; 10-25-2006 at 06:31 AM.

  5. #20
    Eager young mind
    Join Date
    Jun 2006
    Posts
    342
    sorry about that, I logged in after a very long time and I just missed it.
    these were the numbers it showed at the end of the list :

    671,196,727 bytes
    3,358,853,840 bytes free
    which is in fact true. It shows there are onl about 3 GB left, But I dont follow the first part, why is it showing that only 0.6 GB of space is used? or am i missing something here?

    Is there a command that does not perform a recursively walk in each folder but just specifies the size of each folder? this list is too long.
    In the middle of difficulty, lies opportunity

  6. #21
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,434
    Use the 'du' command if you have cygwin installed

    du --help
    for lots of options
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  7. #22
    {Jaxom,Imriel,Liam}'s Dad Kennedy's Avatar
    Join Date
    Aug 2006
    Location
    Alabama
    Posts
    1,065
    On windows/Dos, you can do

    dir /s

    to list subdirectories recursively.

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Out of space when compiling kernel
    By NuNn in forum Linux Programming
    Replies: 3
    Last Post: 04-01-2009, 02:43 PM
  2. SATA HDD failure
    By PING in forum Tech Board
    Replies: 4
    Last Post: 12-22-2008, 11:25 PM
  3. Spin A Drive and such
    By Seph_31 in forum C Programming
    Replies: 15
    Last Post: 11-20-2003, 05:04 PM
  4. hard drive problems continually increasing
    By DavidP in forum Tech Board
    Replies: 5
    Last Post: 11-21-2002, 09:48 PM

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