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 ...
- 06-13-2008 #1Just 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.
thanksLast edited by bs1977; 06-13-2008 at 07:28 PM. Reason: clarification
- 06-13-2008 #2
If it's mounted properly just type
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.Code:df
- 06-13-2008 #3
Hi and Welcome !
Check the manual of df command.Code:df -h
Code:man df
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 06-13-2008 #4Just 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.
thanksLast edited by bs1977; 06-13-2008 at 07:29 PM. Reason: Clarification


Reply With Quote