diskspace

How can I determine the space/size of my drive programatically? Both in LInux and on Windows.

That is : How can I check the drive size which is not formatted... Don't consider the formatted drives...just unformatted drive. ...

Easiest way to simulate no free disk space situation?

I need to test my web app in a scenario where there’s no disk space remaining, i.e. I cannot write any more files. But I don’t want to fill my hard drive with junk just to make sure there’s really no space left. What I want is to simulate this situation withing a particular process (actually, a PHP app). Indeed, temporarily prohibiting ...

Determine available disk size with a sql query

I need to determine the available space on the drive where my database lives. I know about the xp_fixeddrives procedure but how do I get the info for the specific drive where my database resides? ...

how to estimate disk size required for subversion

Hi all, We have a subversion repository for a large application, and create stabilisation branches for each release. Development branches are created as well for major contributions worked on by several people. until now branches are created by the administrator on request. Suppose every developer gets permission to create branches for ...

whats the method to calculate and display the disc size inserted in f-drive?

how can i calculate the total disc space available + free space + used space in the DVD/CD inserted in f-drive.. and display the result on the label... ...

Determine which table takes most disk space in MySQL

What is the easiest way to determine which table takes most disk space ? A handicap: I have no MySQL server, only the file with all data (dump.sql) ...

Find out how much storage a row is taking up in the database

Is there a way to find out how much space (on disk) a row in my database takes up? I would love to see it for SQL Server CE, but failing that SQL Server 2008 works (I am storing about the same data in both). The reason I ask is that I have a Image column in my SQL Server CE db (it is a varbinary[max] in the SQL 2008 db) and I need to k...

Calculating free disk space

What is the best method for calculating free disk space using C++ only. My target platform is WinCE but most of the file operations are the same as normal Windows. ...

Is Cassandra suitable enough for storing logs in term of disk space usage?

I've a problem storing 50Gb of logs each day in a distributed environment. I looked at Hadoop HDFS but because it has problems running on Windows infrastructure, lack of multi language filesystem API it doesn't suit me very well. Cassandra on the other hand is very easy to deploy on any platform. The only big problem I'm facing is a disk...

.Net Framework too big?

Every time a new feature like WPF comes along, it's added to the .Net Framework. Do you ever worry about disk space on the clients computer? Should I? ...

Get free disk space of a Windows mount point remotely

Does anyone know of a way to get the free disk space of a Windows mount point on a remote system without using WMI? For example, GetDiskFreeSpaceEx returns the following values: C:\ - 29 GB C:\MountedDir - 50 GB When run remotely on a Windows 2003 server (orig_server is 2008 R2) it reports the following: \\orig_server\C$ - 29 GB \\o...

What is the fastest way to calculate disk usage per customer?

Hi there, I'm hoping this is a simple one. I run a Rails web app where I'm hosting about 100 school websites. The one app handles all the sites, and I have a management interface where we can add and remove schools etc... I want to add a stat to this interface which is the total disk space used by that school. Each schools files are st...

CryptoStream.Close() fails when the disk is full

I am using a CryptoStream for writing encrypted audio data to the file (underlying stream is FileStream). When I try to call CryptoStream.Close() over the full disk, I get an exception. I know that this is because CryptoStream.Close() invokes FlushFinalBlock() during disposing. As a result I get the corrupted data in my encrypted file an...

apache use all of available disk space

Hi, I've a server with running apache, then, every 20 h i must restart apache service because / partition is full (100%), after restart space disk is 33%... what can i do for this problem? Thanks Bye Mauro ...

Oracle disk space used by a table

Hello, I have a table in an Oracle db that gets a couple of million new rows every month. Each row has a column which states the date when it was created. I'd like to run a query that gets the disk space growth over the last 6 months. In other words, the result would be a table with two columns where each row would have the month's na...

How can I reduce the size of a Subversion repository?

I have a pair of svn repositories which are significantly larger than others. They're not too big for svn, but they're taking a lot of disk space I'd rather be using for something else. What strategies are available for reducing the disk use of svn repositories? I tried the "removing dead transactions" section described here but that di...

How does the length of a filename affect remaining storage space on a disk?

How does the length of a filename affect remaining storage space on a disk? I realize this is filesystem dependent. In particular I am thinking about the EXT series of file systems. I don't fully understand how inodes affect disk space and how the filename itself is stored. It's difficult to get relevant search results for this question...

MSI Package hangs-up when calculating disk space

In my team we prepared an msi installer package for our application. Package is made in WIX contains custom UI, call custom actions from C# library and almost everything works fine except one thing: calculating required disk space. On this stage whole installer hangs up from time to time, especially when client testing it :( We have the ...

Are there more efficient alternatives to ASP.NET 2.0 anonymous Profiles?

I discovered ASP.NET profiles a few years back and found it quick and easy to implement some powerful functionality in my web site. I ended up exclusively using "anonymous" profile properties because I am NOT using ASP.NET membership and wanted to track information and provide personalization for my site's users even though they weren't ...

Amazon EC2 and EBS disk space problem.

Hi I am having a problem reconciling the space available on my EBS volume. According to the AWS console the volume is 50GB and is attached to an instance. If I ssh to this instance and do a df -h, I get the following output: Filesystem Size Used Avail Use% Mounted on /dev/sda1 15G 13G 3.0G 81% / udev ...