Anything related to disk-like storage media, like hard-disks, CDs, DVDs, etc. By extension it could be applied to other mass storage media that are commonly referred as "disks", like SSD, flash cards, etc.
Questions tagged [disk]
1293 questions
5
votes
2 answers
How to define a disk quota for docker containers?
I'm was faced with the requirement to have disk quotas on docker containers. Specifically I want to limit the amount of data that is not in the layers of base image but in the diff. Googling for "docker disk quota" suggests to use either the device…

Fabian Jakobs
- 28,815
- 8
- 42
- 39
5
votes
0 answers
Android memory and disk cache http client using Picasso
I am using Picasso to load images in a container. I want to cache in memory and cache in disk.
What is the best way to cache a image in disk? What http client is the best option?
These are my requirements:
First check cache in memory
Check cache…

Araceli A.
- 111
- 5
5
votes
2 answers
Access the RAW disk using C/C++
I have a large storage device (flash memory) plugged onto my computer via the PCIe bus, I want to access such device directly, i.e., without any file system (e.g., NTFS or ext4) on it.
How can I do this using C/C++? (on both Windows 7 and Linux)
I…

Bloodmoon
- 1,308
- 1
- 19
- 34
5
votes
3 answers
How many files can i have opened at once?
On a typical OS how many files can i have opened at once using standard C disc IO?
I tried to read some constant that should tell it, but on Windows XP 32 bit that was a measly 20 or something. It seemed to work fine with over 30 though, but i…

Michael Jefferson
- 53
- 1
- 3
5
votes
2 answers
What is the difference between compaction and defragmentation?
My operating systems textbook says that compaction is a process that rearranges disk blocks such that all free disk blocks form a contiguous "chunk" of free disk space.
But I always thought that was what defragmentation does? Are these two terms the…

vladimirm
- 261
- 1
- 2
- 8
5
votes
2 answers
linux partitions to drive mapping
In linux, I am using the blkid apis to get most information about disk partitions. I am unable to find an API that would let me find out the mapping between a partition name and its drive.
For example, the disk /dev/sda is partitioned into…

user3092576
- 51
- 1
- 2
5
votes
2 answers
Does disk caching with NSURLRequest and NSURLConnection actually work on the iPhone?
I have a UITableView whose cells contain custom ImageViews that asynchronously load the images from the internet. To load those images I use NSURLRequest and NSURLConnection which works fine. The only problem is that the images are not cached and…

kiteloop
- 1,057
- 13
- 16
5
votes
3 answers
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?

Ries
- 2,844
- 4
- 32
- 45
5
votes
1 answer
open() not working with O_DIRECT flag on UBUNTU
I'm trying to open a file with the O_DIRECT flag. On Ubuntu, the program fails with errno 22. I just installed Fedora on the same machine with dual boot, and this exact same code runs there smoothly.
I'm running Ubuntu 13.10 with kernel 3.12.6 and…

nday
- 229
- 1
- 8
5
votes
2 answers
Efficient method to store Python dictionary on disk?
What is the most efficient method to store a Python dictionary on the disk? The only methods I know of right now are plain-text and the pickle module.
Edit: Sorry for not being very clear. By efficient I meant fastest execution speed. The dictionary…

linkmaster03
- 4,038
- 6
- 25
- 22
5
votes
0 answers
How to get disk drive informations in ObjectiveC
I was looking at the main window of Mac OSX Disk Utility and I found four informations about USB devices (when a drive item is selected):
Disk Description
Connection Bus
Connection Type
USB Serial Number
I was able to get the first three…

Antonio
- 105
- 8
5
votes
2 answers
.svn folders using a lot of disk space
today I realized that the hidden .svn folders within my folders under version control eat up ~16 GB of hard drive space. I am using a SSD drive so this is quite a lot. Do I really need these huge subfolders? As far as I understand they are used for…

Cerd
- 143
- 1
- 2
- 10
5
votes
1 answer
How to get raw disk access in Java with write permissions - Windows 7
OK, so trust me there's a reason I want to do this. Maybe not using Java, but there is. I am able to raw access the disk on Windows 7 using the UNC-style paths, for example:
RandomAccessFile raf = null;
try {
raf = new…

Azurlake
- 612
- 1
- 6
- 29
5
votes
0 answers
Darwin kernel disk device to pass disk arbitration
So I ported latest ZFS to OSX (github/osx.zfs), then added ZVOL as it is something I wanted. Now the pure BSD kernel side of things do appear to work, but I am having issues with Apple specific integration. I'm just missing a piece of the puzzle.
I…

lundman
- 1,616
- 13
- 25
5
votes
1 answer
How to write a python program to read data from disk image file (.raw file)?
I need to write a program to extract the information from a disk using 512KB blocks. The disk image file is in raw format.

Russel
- 73
- 2
- 7