Find the answer to your Linux question:
Results 1 to 4 of 4
Hi All, I'm primarily Windows developer and recently came across with Linux and trying to get into it. I have Linux system which has different type of disks on it ...
  1. #1
    Just Joined!
    Join Date
    Jun 2008
    Posts
    2

    How to find size of Flash Disk

    Hi All,

    I'm primarily Windows developer and recently came across with Linux and trying to get into it. I have Linux system which has different type of disks on it ..Flash,HDD etc.. I have to write a utility( in C/C++ using ACE library) to find the size of Flash disk and log proper message in log file.

    I'm not familiar with any APIs as of now and just learning commands etc.. any help you be greatly appreciated.

    thanks
    Last edited by bs1977; 06-13-2008 at 07:28 PM. Reason: clarification

  2. #2
    Just Joined! kveldulf980's Avatar
    Join Date
    Apr 2008
    Location
    New Jersey
    Posts
    15
    If it's mounted properly just type
    Code:
    df
    in the console and look for it in the list. "di" also works if you have it installed, I think the output looks a little nicer, too.

  3. #3
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Hi and Welcome !

    Code:
    df -h
    Check the manual of df command.
    Code:
    man df
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  4. #4
    Just Joined!
    Join Date
    Jun 2008
    Posts
    2

    ACE function

    Thanks for response. Sorry about confusion but I really need a OS function or corresponding ACE function on Linux.
    I'm actually looking for library to use inside the application , not command. I see that this application (written by someone else) is using ACE framework so I need to figure out corresponding ACE function call on specific device. Please help me if anyone has used ACE libraries.

    In short, I'm looking linux clone of GetDiskFreeSpaceEx(). GetDiskFreeSpaceEx() is Windows API to find disk space on system. I would appreciate if someone can point any sample.

    thanks
    Last edited by bs1977; 06-13-2008 at 07:29 PM. Reason: Clarification

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...