Questions tagged [diskspace]

Issues relating to availability of disk space.

Questions using this tag are expected to be related to handling disk space issues, regardless of language and system.

749 questions
31
votes
1 answer

Trying to resize2fs EB volume fails

I have a 200GB EBS volume and am trying to increase the space available. I followed the instructions on: http://www.hellersoftware.com/2012/resize-ebs-volume-attached-to-amazon-web-services-ec2-instance/ and managed to create a snapshot and create a…
Shamoon
  • 41,293
  • 91
  • 306
  • 570
30
votes
4 answers

Get current CPU, RAM and Disk drive usage in C#

How to get the CPU, RAM and Disk drive usage of the system in C# code?
Sauron
  • 16,668
  • 41
  • 122
  • 174
29
votes
5 answers

Eclipse .metadata\.plugins disk space

Eclipse's .metadata/.plugins seems to consume way too much space (235 MB), is there something I can safely throw away and still be happy? I archive my source root, and this seems to take away all my space. This is a project with several Java…
foobarometer
  • 751
  • 1
  • 9
  • 20
29
votes
11 answers

Get available diskspace in ruby

What is the best way to get diskspace information with ruby. I would prefer a pure ruby solution. If not possible (even with additional gems), it could also use any command available in a standard ubuntu desktop installation to parse the information…
Martin Flucka
  • 3,125
  • 5
  • 28
  • 44
28
votes
13 answers

Measure disk space of certain file types in aggregate

I have some files across several folders: /home/d/folder1/a.txt /home/d/folder1/b.txt /home/d/folder1/c.mov /home/d/folder2/a.txt /home/d/folder2/d.mov /home/d/folder2/folder3/f.txt How can I measure the grand total amount of disk space taken up by…
Dan
  • 9,935
  • 15
  • 56
  • 66
26
votes
5 answers

What does "write failed: No space left on device" mean?

I am getting these errors on my site, yet i haven't changed any code or anything, so I don't why this is happening. Warning: Unknown(): write failed: No space left on device (28) in Unknown on line 0 Warning: Unknown(): Failed to write session data…
Michael
  • 525
  • 2
  • 6
  • 6
25
votes
7 answers

Find free disk space in python on OS/X

I'm looking for the number of free bytes on my HD, but have trouble doing so on python. I've tried the following: import os stat = os.statvfs(path) print stat.f_bsize * stat.f_bavail But, on OS/X it gives me a 17529020874752 bytes, which is about…
Evert
  • 93,428
  • 18
  • 118
  • 189
22
votes
10 answers

What is the unix command to see how much disk space there is and how much is remaining?

I'm looking for the equivalent of right clicking on the drive in windows and seeing the disk space used and remaining info.
Brian
  • 13,412
  • 10
  • 56
  • 82
21
votes
5 answers

How can I check for available disk space?

I need a way to check available disk space on a remote Windows server before copying files to that server. Using this method I can check to see if the primary server is full and if it is, then I'll copy the files to a secondary server. How can I…
Bryan Denny
  • 27,363
  • 32
  • 109
  • 125
20
votes
3 answers

Running out of disk space EC2

I ran into some issues with my EC2 micro instance and had to terminate it and create a new one in its place. But it seems even though the old instance is no longer visible in the list, it is still using up some space on my disk. My df -h is listed…
coderatlarge
  • 577
  • 3
  • 8
  • 23
19
votes
4 answers

How to find out the free disk space for a given path on a linux shell?

1) I am in some directory 2) I want to find out how much free space is left there Is there a simple command that does this? I don't want to look in fstab or whatever, having to map the devices & mount points in my mind in order to determine how much…
19
votes
2 answers

Data size in memory vs. on disk

How does the RAM required to store data in memory compare to the disk space required to store the same data in a file? Or is there no generalized correlation? For example, say I simply have a billion floating point values. Stored in binary form,…
18
votes
4 answers

R How to estimate csv file size prior to writing it to disk

Is there any way in R to estimate the file size of a csv file prior to actually writing it to disk via write.csv or readr::write_csv? I would like to implement a warning if the user accidentially tries to write huge files to disk in a…
roming
  • 1,165
  • 1
  • 9
  • 22
17
votes
4 answers

How to get the current free disk space in Postgres?

I need to be sure that I have at least 1Gb of free disk space before start doing some work in my database. I'm looking for something like this: select pg_get_free_disk_space(); Is it possible? (I found nothing about it in docs). PG: 9.3 & OS:…
Christian
  • 7,062
  • 9
  • 53
  • 79
16
votes
1 answer

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…
pjmorse
  • 9,204
  • 9
  • 54
  • 124
1 2
3
49 50