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
9
votes
4 answers
How to handle large numbers of concurrent disk write requests as efficiently as possible
Say the method below is being called several thousand times by different threads in a .net 4 application. What’s the best way to handle this situation? Understand that the disk is the bottleneck here but I’d like the WriteFile() method to return…

Canacourse
- 1,805
- 2
- 20
- 37
9
votes
8 answers
Laravel 5.1: ErrorException in file_put_contents() error,possibly out of free disk space
This error arrived all out of a sudden.
ErrorException in D:\xampp\htdocs\pckg\vendor\laravel\framework\src\Illuminate\Filesystem\Filesystem.php line 81:
file_put_contents(): Only 0 of 3520 bytes written, possibly out of free disk space

D.P.
- 429
- 1
- 3
- 9
9
votes
2 answers
Programmatically getting per-process disk io statistics on Windows?
I would like to display a list of processes (Windows, C++) and how much they are reading and writing from the disk in KB/sec.
The Resource Monitor of Windows 7 has the ability so I should be able to do the same.
However I have unable to find a…

dutchmega
- 1,384
- 2
- 12
- 16
9
votes
3 answers
Direct disk access in windows (C#)
I want to be able to read and write data directly to and from a disk (i.e. at a sector / cluster level) but I've yet to find a suitable tool for doing this under windows.
I've been trying to figure out how to write my own in C#, but the…

Justin
- 84,773
- 49
- 224
- 367
8
votes
1 answer
Custom bootloader issues
Im trying to write a bootloader for a Hobby OS and have it working great.
Nothing Special, just prints a line of text:
BITS 16
ORG 0
start: jmp main
OEM db "Test OS "
BytesPerSector: DW 512
SectorsPerCluster: DB…

Chase Walden
- 1,252
- 1
- 14
- 31
8
votes
3 answers
How to open disks in windows and read data at low level?
I know in linux it is as simple as /dev/sda but in Windows how do you open a disk and start reading data at the low level?
In python I've tried:
f = open("K:", "r")
and I get this error:
Traceback (most recent call last):
File "", line 1,…

nobody
- 93
- 1
- 2
- 5
8
votes
5 answers
Bash monitor disk usage
I bought a NAS box which has a cut down version of debian on it.
It ran out of space the other day and I did not realise. I am basically wanting to write a bash script that will alert me whenever the disk gets over 90% full.
Is anyone aware of a…

RailsSon
- 19,897
- 31
- 82
- 105
8
votes
2 answers
File system block size vs disk block size
I was reading Hadoop: The Definitive Guide and the following paragraph came up.
A disk has a block size, which is the minimum amount of data that it
can read or write. Filesystems for a single disk build on this by
dealing with data in blocks,…

Farsan Rashid
- 1,460
- 4
- 17
- 28
8
votes
5 answers
Which are the best practices for data intensive reading and writing in a HD?
I'm developing a C++ application (running in a Linux box) that is very intensive in reading log files and writing derived results in disk. I'd like to know which are the best practices for optimizing these kind of applications:
Which OS tweaks…

tonicebrian
- 4,715
- 5
- 41
- 65
8
votes
1 answer
how to get disk read/write bytes per second from /proc in programming on linux?
purpose :i want to get information like iostat command can get .
I have already known that if open /proc/diskstats or /sys/block/sdX/stat there are information that :sectors read and sectors write. So if i want to get read/write bytes/s ,the…

spartawhy117
- 511
- 1
- 5
- 22
8
votes
4 answers
On-Disk database storage, best practices
If this question seems common to you, I apologise, I did a quick search around this site and a few google searches and could not find a satisfying answer.
My question is this;
I have only been a software developer for 3-4 years now. This may seem…

user407356
- 284
- 5
- 18
8
votes
3 answers
Accessing Windows disks directly with Java NIO
I am using a library that uses Java NIO in order to directly map files to memory, but I am having trouble reading disks directly.
I can read the disks directly using FileInputStream with UNC, such as
File disk = new…

timbo
- 1,533
- 1
- 15
- 26
8
votes
3 answers
How to repair/isolate hard drive bad blocks
During the last month Ubuntu starts having some problems: it shuts down suddenly without any apparent reason.. I figured out that the problem is in the hard disk, if I run this command:
$ sudo badblocks -sv -b 512 /dev/sda
I get 24 bad blocks all…

Red
- 664
- 2
- 10
- 20
8
votes
2 answers
How can I save an arbitrary Ruby object to the disk and read it back when necessary?
I would like to save a Ruby set, or a hash, to the disk and it back from the file when necessary. How can I do this?

Konstantin
- 2,983
- 3
- 33
- 55
8
votes
3 answers
Memory mapped - partially disk based algorithms
Are there any good resources or books for spillable data structures, that is, say, a queue?
When storing large objects it could fill up all of memory, but if you can keep, say, the most used items of that queue structure in memory and the rest on…

JH.
- 4,147
- 3
- 19
- 20