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
6
votes
3 answers
How to save assembly to disk?
How I can save assembly to file? I.e. I mean not dynamic assembly but "normal" in-memory assemblies.
Assembly[] asslist = AppDomain.CurrentDomain.GetAssemblies();
foreach (Assembly ass1 in asslist)
{
// How to save?
}
This situation can occur…

ZedZip
- 5,794
- 15
- 66
- 119
6
votes
5 answers
Logic in Disk Defragmantation & Disk Check
What is the logic behind disk defragmentation and Disk Check in Windows? Can I do it using C# coding?

Sauron
- 16,668
- 41
- 122
- 174
6
votes
4 answers
What's the fastest way to read/write to disk in .NET?
I've got a little program that reads and writes files on disk. Breaking it down to the most simple level, it reads bytes from one file stream and writes them to another. It performs its duties fine, but it isn't the fastest thing.
I've seen other…
user1228
5
votes
3 answers
WMI: Win32_DiskDrive to get total sector on the physical disk drive
I have tried getting the maximum total sector of a disk using Win32_DiskDrive but all of them return the incorrect value. I used HxD and this program return the accurate value. I've tried to get the total sector in Linux using fdisk, it also return…

Yeo
- 11,416
- 6
- 63
- 90
5
votes
5 answers
Data structure/algorithm for variable length record storage and lookup on disk withsearch only on primary keys
I am looking for an algorithm / data structure that works well for large block based devices (eg a mechanical hard drive) which is optimised for insert, get, update and delete where searches are always done using the id of the data and where the…

Paul Keeble
- 1,202
- 2
- 12
- 16
5
votes
3 answers
Profiling disk access
Currently I am working on a MFC application which reads and writes in to the disk. Sometimes this application runs amazingly fast and sometimes it is damn slow. I am guessing that it is because of the disk access involved, hence I want to profile…

Naveen
- 74,600
- 47
- 176
- 233
5
votes
2 answers
Looking for a disk-bound b-tree example
Maybe my google-foo just isn't up to snuff, but I'm wanting to play with a b-tree alogrithm that is bound to disk. Since most tutorials and examples are on-memory, they assume random access memory in which changing nodes in a tree is simple enough,…

Arne Claassen
- 14,088
- 5
- 67
- 106
5
votes
2 answers
Can't clear up space on macOs Catalina. "Other" takes 370GB out of 500GB and other tools show half of this
Recently I had almost full disk space taken on my Macbook Pro running macOs Catalina. I saw that what took most of my space was folder under: /Users/Shared/Relocated Items so I deleted this folder by moving to trash and emptying it. I deleted many…

Wojtek Smol
- 57
- 1
- 2
5
votes
3 answers
Identifying CDs
I'd like to be able to determine what music album CD is in a CD drive. For example, if someone claims that the CD in their drive is Eminem - The Eminem Show, I would like to be able to verify that the CD is indeed The Eminem Show.
Any ideas? I've…

core
- 32,451
- 45
- 138
- 193
5
votes
6 answers
Powershell and wmi, how to map logical disk/volumes to a hard disk or vice versa?
Get-WmiObject -ComputerName $ip -Credential $credential -Class Win32_logicaldisk
This gets me disks as I see them in "My computer", eg. C:, D:, E:
Now how I get corresponding underlying physical disks ?
If I run following command
Get-WmiObject…

Primoz
- 4,079
- 17
- 56
- 67
5
votes
1 answer
OMS Logical disk performance counters not existing disk instancename
We use Azure OMS to monitor many of our on premise servers.
When using the LogicalDisk(*)\% Free Space performance counter there are some non existing instanceNames for example HarddiskVolume170, HarddiskVolume89, ...
When checking perfmon on the…

Fluffymittens
- 170
- 7
5
votes
1 answer
Redshift disk space vs number of nodes
I am currently using AWS Redshift service to store data. The data size is about to hit 100% of disk space.
Will adding nodes and changing from Single-node to Multi-nodes increase the disk size?
Is moving from dc1.xlarge to bigger nodes such as…

Aung Myint Thein
- 390
- 5
- 17
5
votes
1 answer
Tuning sequential disk reads for performance
I am reading a large file sequentially from the disk and trying to understand the iostat output while the reading is taking place.
Size of the file : 10 GB
Read Buffer : 4 KB
Read ahead (/sys/block/sda/queue/read_ahead_kb) : 128 KB
The iostat…

Stormshadow
- 6,769
- 9
- 33
- 34
5
votes
0 answers
zookeeper high disk IO
Currently our 3 zookeeper instance running on EC2 suffering high disk IO (cpu wait 50% in top command).
Our Disk is 80G EBS which can get 240 4k IOPS
I iotop zookeeper Process shows Disk Write 900K/s
However I also tried sysdig which shows the…

enzoyang
- 847
- 4
- 13
- 25
5
votes
1 answer
Docker - Disk Quotas
I understand that docker containers have a maximum of 10GB of disk space with the Device Mapper storage driver by default.
In my case, I have a worker container and a data volume container. I then link them together using "-volumes-from". I also use…

James
- 179
- 2
- 10