Questions tagged [disk]

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.

1293 questions
3
votes
1 answer

.Net Write continuously data to the disk in different files

We have an application that extract data from several hardware devices. Each device's data should be stored in a different file. Currently we have one FileStream by file and doing a write when a data comes and that's it. We have a lot of data coming…
J4N
  • 19,480
  • 39
  • 187
  • 340
3
votes
4 answers

Google Compute Engine VM instance: VFS: Unable to mount root fs on unknown-block

My instance on Google Compute Engine is not booting up due to having some boot order issues. So, I have created a another instance and re-configured my machine. My questions: How can I handle these issues when I host some websites? How can I…
krundru
  • 43
  • 1
  • 3
3
votes
1 answer

Windows 10 IoT Core PowerShell Disk Management Commands

When using PowerShell to connect to a device running Windows 10 IoT Core, I have unable to access disk management commands where I other could on a normal PC. Are these commands not available at all or I'll have to do something to get them…
phandinhlan
  • 583
  • 1
  • 5
  • 16
3
votes
1 answer

How can I write a hard drive sector as reserved?

I am hex editing a hard disk and I would like to mark some hard drive sectors as reserved so that they are not overwritten by Windows (Vista or 7). I think this is possible, since during a defrag, the disk says that there are some sectors that…
samoz
  • 56,849
  • 55
  • 141
  • 195
3
votes
4 answers

Python opened one file and is reading its data, why python still can read its data even I delete this file?

My python program is to read data from a txt file and insert data into my postgre database. The program has already started and keeps running. Then I accidently deleted the file on the disk, but the program still keeps running and inserting data…
Minken Lau
  • 31
  • 3
3
votes
2 answers

ext4 commit= mount option and dirty_writeback_centisecs

I'm tring to understand the way bytes go from write() to the phisical disk plate to tune my picture server performance. Thing I don't understand is what is the difference between these two: commit= mount option and dirty_writeback_centisecs. Looks…
Alexcool
  • 63
  • 1
  • 6
3
votes
2 answers

How to unpack a msgpack file?

I am writing msgpack-encoded data to a file. On writing, I am just using the fbuffer of the C API. As in (I striped all error handling for the example): FILE *fp = fopen(filename, "ab"); msgpack_packer pk; msgpack_packer_init(pk, fp,…
Alex
  • 871
  • 7
  • 23
3
votes
1 answer

Java file IO slows down with large consecutive writes

I've written a drive wiping program designed to securely overwrite the free space of drives. Everything is working great at first, then over time the speed reduced dramatically. I have one 1TB drive which starts out at around 120MB/s then drops…
Colby
  • 452
  • 4
  • 19
3
votes
3 answers

ffmpeg - output images in memory instead of disk

I've a python script which basically converts a video into images and stores them in a folder, then all this images are read and informations are extracted from them, then images are deleted. Since the writing images step is so slow and is…
Hyperion
  • 2,515
  • 11
  • 37
  • 59
3
votes
1 answer

How to explicitly lock a mounted file system?

How do i write to a physical drive in Windows 7? I am trying to write to a physical disk (e.g. \\.\PhysicalDrive0) in Windows 7. This question has been asked to death, but has never been answered. It is something that used to work in Windows XP, but…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
3
votes
2 answers

Win32 API P-Invoke to bring a disk online, offline, and set unique ID

I am currently using Diskpart to accomplish these functions, but i would like to be able to use P-Invoke and not have to shell out to an external process in my C# app. The example Diskpart scripts are: //Online a disk Select disk 7 disk online //…
Andy Schneider
  • 8,516
  • 6
  • 36
  • 52
3
votes
1 answer

Filesystem VS Raw disk benchmarking in C

I am doing some benchmarking (on OS X) to see how the use of file system influences the bandwidth etc. I am using concurrency with the hope to create fragmentation in the FS. However, it looks like using the FS is more efficient than raw disk…
user1553136
  • 328
  • 5
  • 17
3
votes
3 answers

Different disk serial number result from GetVolumeInformation()

DWORD disk_serialINT[MAX_PATH + 1]; GetVolumeInformationA(NULL, NULL, NULL, disk_serialINT, NULL, NULL, NULL, NULL); char* disk_serialANSI; sprintf(disk_serialANSI, "%d", disk_serialINT); std::string HDDserial = disk_serialANSI; This is my piece of…
DualCore
  • 400
  • 1
  • 3
  • 15
3
votes
1 answer

Writing to disk gets slower over time with Node.js

I am trying to write large files (500 MByte) to disk using Node.js. I figured out that while the first few files are being written in a few seconds (typically, 3 to 5 seconds), starting with around the 10th file things tend to get slower (and it…
Golo Roden
  • 140,679
  • 96
  • 298
  • 425
3
votes
1 answer

Which Qt classes use the disk directly?

I'm trying to write a library to separate all the disk activity out into its own thread, but the documentation doesn't really care about such things. What I want to accomplish is that aside from startup, all disk activity is asynchronous, and for…
György Andrasek
  • 8,187
  • 4
  • 48
  • 76