X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: Wed, 11 Sep 2013 16:01:26 -0400 Message-Id: <201309112001.r8BK1QbW018320@envy.delorie.com> From: DJ Delorie To: djgpp AT delorie DOT com In-reply-to: <5230b96b$0$1372$4fafbaef@reader1.news.tin.it> (nospam AT nospam DOT org) Subject: Re: Exact size hdd References: <5230b96b$0$1372$4fafbaef AT reader1 DOT news DOT tin DOT it> Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk I don't think there's such a function. You'd need to read and parse the partition tables on the hard drive to get that info. The best you can do is the size of the whole hard drive, which is a BIOS function: http://www.delorie.com/djgpp/doc/libc/libc_71.html Note that these BIOS calls are only reliable for smaller disk drives; there's a limit to how large a disk can be and still fit into the BIOS parameters, and today's disks are often bigger than that limit.