Skip to main content

Questions tagged [diskspace]

Issues relating to availability of disk space.

diskspace
Filter by
Sorted by
Tagged with
529 votes
7 answers
215k views

Is it okay to delete the macOS Xcode CoreSimulator devices folder?

My ~/Library/Developer/CoreSimulator/Devices folder is 26 GB. Is it safe to just delete all the content? Will those files be automatically regenerated?
Franck's user avatar
  • 9,139
287 votes
9 answers
155k views

Android SDK folder taking a lot of disk space. Do we need to keep all of the System Images?

There are a lot of system images piling up on my disk in the android sdk folder. i hardly use the emulator. May be once in 6 months. Most of my development is directly on device. What i wanted to ...
Viral Patel's user avatar
  • 33.1k
206 votes
12 answers
331k views

How do I monitor the computer's CPU, memory, and disk usage in Java?

I would like to monitor the following system information in Java: Current CPU usage** (percent) Available memory* (free/total) Available disk space (free/total) *Note that I mean overall memory ...
David Crow's user avatar
  • 16.2k
157 votes
19 answers
97k views

How to detect total available/free disk space on the iPhone/iPad device?

I'm looking for a better way to detect available/free disk space on the iPhone/iPad device programmatically. Currently I'm using the NSFileManager to detect the disk space. Following is the snippet of ...
Code.Decode's user avatar
  • 3,756
132 votes
17 answers
161k views

Why is docker image eating up my disk space that is not used by docker

I have setup docker and I have used completely different block device to store docker's system data: [root@blink1 /]# cat /etc/sysconfig/docker # /etc/sysconfig/docker other_args="-H tcp://0.0.0.0:...
ming.kernel's user avatar
  • 3,545
123 votes
9 answers
144k views

Docker container logs taking all my disk space

I am running a container on a VM. My container is writing logs by default to /var/lib/docker/containers/CONTAINER_ID/CONTAINER_ID-json.log file until the disk is full. Currently, I have to delete ...
poiuytrez's user avatar
  • 22.1k
122 votes
12 answers
82k views

Docker filling up storage on macOS

(Post created on Oct 05 '16) I noticed that every time I run an image and delete it, my system doesn't return to the original amount of available space. The lifecycle I'm applying to my containers is: ...
Franco Rabaglia's user avatar
118 votes
14 answers
115k views

Android get free size of internal/external memory

I want to get the size of free memory on internal/external storage of my device programmatically. I'm using this piece of code : StatFs stat = new StatFs(Environment.getExternalStorageDirectory()....
Android-Droid's user avatar
106 votes
13 answers
162k views

Get free disk space

Given each of the inputs below, I'd like to get free space on that location. Something like long GetFreeSpace(string path) Inputs: c: c:\ c:\temp \\server \\server\C\storage
bh213's user avatar
  • 6,483
102 votes
8 answers
167k views

ElasticSearch find disk space usage

How can I find the amount of disk space that Elastic Search is using for my indexes? I'm currently running it locally and I'm trying to see how much disk space I will need on the VM that I'll be ...
Nived's user avatar
  • 1,859
92 votes
12 answers
162k views

Find size and free space of the filesystem containing a given file

I'm using Python 2.6 on Linux. What is the fastest way: to determine which partition contains a given directory or file? For example, suppose that /dev/sda2 is mounted on /home, and /dev/mapper/foo ...
Federico A. Ramponi's user avatar
87 votes
2 answers
38k views

du counting hardlinks towards filesize?

I have a backup system that creates directories named after Unix Timestamps, and then creates incremental backups using a hardlink system (--link-dest in rsync), so typically the first backup is very ...
Dan LaManna's user avatar
  • 3,481
83 votes
4 answers
106k views

How to find how much disk space is left using Java?

How to find how much disk space is left using Java?
Roman Kagan's user avatar
  • 10.6k
83 votes
6 answers
95k views

Postgresql find total disk space used by a database

I have more than 50 databases hosted in my postgresql server. I need to move some of them on another host, to free-up some disk space,but how can I measure the disk-space used by each database on my ...
pylover's user avatar
  • 7,978
77 votes
12 answers
49k views

Cross-platform space remaining on volume using python

I need a way to determine the space remaining on a disk volume using python on linux, Windows and OS X. I'm currently parsing the output of the various system calls (df, dir) to accomplish this - is ...
user avatar
73 votes
5 answers
29k views

How to check if IOException is Not-Enough-Disk-Space-Exception type?

How can I check if IOException is a "Not enough disk space" exception type? At the moment I check to see if the message matches something like "Not enough disk space", but I know that this won't work ...
jotbek's user avatar
  • 1,499
63 votes
10 answers
135k views

How to solve jenkins 'Disk space is too low' issue?

I have deployed Jenkins in my CentOS machine, Jenkins was working well for 3 days, but yesterday there was a Disk space is too low. Only 1.019GB left. problem. How can I solve this problem, it make ...
Eason's user avatar
  • 661
52 votes
4 answers
30k views

TFS creates a $tf folder with gigabytes of .gz files. Can I safely delete it?

I am using visual studio 2012 with Microsoft TFS 2012. On the workspace that is created on my c: drive, a hidden folder $tf is created. I suspect TFS from creating this folder. It's lurking diskspace ...
Nico Lubbers's user avatar
51 votes
6 answers
31k views

Disk usage of files whose names match a regex, in Linux?

So, in many situations I wanted a way to know how much of my disk space is used by what, so I know what to get rid of, convert to another format, store elsewhere (such as data DVDs), move to another ...
Camilo Martin's user avatar
48 votes
3 answers
34k views

Get amount of free disk space using Go

Basically I want the output of df -h, which includes both the free space and the total size of the volume. The solution needs to work on Windows, Linux, and Mac and be written in Go. I have looked ...
Rick Smith's user avatar
  • 9,181
43 votes
10 answers
53k views

How to find the amount of free storage (disk space) left on Android? [duplicate]

I am trying to figure out the available disk space on the Android phone running my application. Is there a way to do this programmatically? Thanks,
Ashwin's user avatar
  • 435
43 votes
5 answers
49k views

What is the current full install size of Cygwin?

Every source I found online says a full installation of Cygwin takes over 1 GB, but mine is only 100 MB. I was pretty sure I downloaded everything from the mirror servers, but the install ...
TopTierTracker's user avatar
42 votes
8 answers
56k views

du in PowerShell?

How can I get a du-ish analysis using PowerShell? I'd like to periodically check the size of directories on my disk. The following gives me the size of each file in the current directory: foreach ($...
Cheeso's user avatar
  • 191k
41 votes
7 answers
42k views

Get free space on internal memory

Is it possible to get the amount of free memory on an Android device (not on the SD CARD) via the Android SDK? If so, how?
clamp's user avatar
  • 33.7k
41 votes
4 answers
39k views

Auto compact the deleted space in mongodb?

The mongodb document says that To compact this space, run db.repairDatabase() from the mongo shell (note this operation will block and is slow). in http://www.mongodb.org/display/DOCS/Excessive+...
Zealot Ke's user avatar
  • 503
38 votes
4 answers
20k views

Increase Disk Space on Docker Toolbox

I'm trying to start some very large Containers on Docker Toolbox (about 18 GB in total). Unfortunately, I always get the error that there is not enough disk space. I have a 1TB HDD and there are more ...
Pascal's user avatar
  • 2,660
36 votes
6 answers
18k views

Any way to keep curl's cookies in memory and not on disk

I'm doing some cURL work in php 5.3.0. I'm wondering if there is any way to tell the curl handle/object to keep the cookies in memory (assuming I'm reusing the same handle for multiple requests), or ...
Uberfuzzy's user avatar
  • 8,333
36 votes
13 answers
11k views

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 ...
Ilya Birman's user avatar
33 votes
1 answer
59k views

Trying to resize2fs EB volume fails [closed]

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-...
Shamoon's user avatar
  • 42.8k
32 votes
4 answers
54k views

How to get available/free sdcard space in android with adb command

I am trying to get free sdcard space with adb command, but I could not able to achieve. Any suggestions how to get the sdcard space.
Venkatesh's user avatar
  • 3,708
31 votes
3 answers
13k views

What is Docker.qcow2?

I was looking at my disk with DaisyDisk and I have a 30GB something called Docker.qcow2. More specifically, DaisyDisk puts it under ~/Library/Containers/com.docker.docker/Data/vms/0/Docker.qcow2. Is ...
dkimot's user avatar
  • 2,269
30 votes
4 answers
63k views

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's user avatar
  • 16.8k
30 votes
5 answers
15k views

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 ...
foobarometer's user avatar
29 votes
11 answers
15k views

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 ...
Martin Flucka's user avatar
28 votes
13 answers
20k views

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 ...
Dan's user avatar
  • 10.1k
28 votes
5 answers
134k views

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 ...
Michael's user avatar
  • 555
25 votes
7 answers
35k views

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 ...
Evert's user avatar
  • 97.8k
25 votes
4 answers
45k views

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 ...
coderatlarge's user avatar
23 votes
10 answers
149k views

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's user avatar
  • 13.5k
21 votes
5 answers
57k views

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 ...
Bryan Denny's user avatar
  • 27.5k
20 votes
4 answers
49k views

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

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 & ...
Michael Böckling's user avatar
19 votes
4 answers
49k views

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 ...
Christian's user avatar
  • 7,222
19 votes
2 answers
6k views

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 ...
Aaron Leinmiller's user avatar
18 votes
4 answers
9k views

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 ...
roming's user avatar
  • 1,195
17 votes
10 answers
36k views

Finding out total and free disk space in .NET

I am trying to find a way to determine the total and available disk space in an arbitrary folder from a .NET app. By "total disk space" and "available disk space" in a folder I refer to the total and ...
CesarGon's user avatar
  • 15.3k
16 votes
1 answer
18k views

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 ...
pjmorse's user avatar
  • 9,284
15 votes
2 answers
6k views

Docker changing /var/lib/docker/aufs/diff location

Docker folder /var/lib/docker/aufs/diff grows too much and I would like to move it on an other partition. Is there a way to configure Docker to use another location for this foder?
guillaume's user avatar
  • 6,937
14 votes
6 answers
20k views

Git disk usage per branch

Do you know if there is a way to list the space usage of a git repository per branch ? (like df or du would) By "the space usage" for a branch I mean "the space used by the commits which are not yet ...
Anthony O.'s user avatar
  • 23.7k
14 votes
8 answers
20k views

Amazon EC2 and EBS disk space problem

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 ...
Simon's user avatar
  • 251
14 votes
2 answers
3k views

TFS Branching and Disk Space

I've been thinking over some branching strategies (creating branches per feature, maybe per developer since we're a small group) and was wondering if anyone had experienced any issues. Does creating ...
ryan.rousseau's user avatar

1
2 3 4 5
16