Questions tagged [hard-drive]

GENERAL HARDWARE SUPPORT IS OFF-TOPIC. Questions about hardware should be asked on https://superuser.com. A hard drive is a physical storage device used to save state for operating systems and individual software programs. Questions should relate to reading and writing via programming.

649 questions
10
votes
1 answer

How can I detect if a hard drive is spinning (under Windows)?

How can I programatically determine if a hard drive is currently spinning or not (Windows 7 or later)? I tried GetDevicePowerState() but it always returns TRUE (always 1, not another non-zero value) for drives that I know are currently not spinning…
Not Submitted
  • 653
  • 1
  • 7
  • 13
10
votes
5 answers

FileStream very slow on application-cold start

A very similar question has also been asked here on SO in case you are interested, but as we will see the accepted answer of that question is not always the case (and it's never the case for my application use-pattern). The performance determining…
Alex K
  • 10,835
  • 8
  • 29
  • 34
10
votes
2 answers

How can we split one 100 GB file into hundred 1 GB file?

This question came to mind when I was trying to solve this problem. I have harddrive with capacity 120 GB, of which 100 GB is occupied by a single huge file. So 20 GB is still free. My question is, how can we split this huge file into smaller ones,…
Nawaz
  • 353,942
  • 115
  • 666
  • 851
9
votes
2 answers

How to programatically prevent Windows from hard disk drive spin down?

My program performs a task on the hard disk free space. The task is quite long, it takes 1-2 hours. The problem is that on laptop the hard disk may be turned off after few minutes when the user is inactive. How do I programmatically prevent Windows…
user382591
  • 1,320
  • 5
  • 19
  • 39
9
votes
3 answers

How to programmatically really clean Delete files?

So you are about to pass your work-computer to some of your colleague. How do you make sure you really delete all your personal data? Re-formatting, Re-installing OS will not really solve the problem. I searched around and found some programs does…
prakash
  • 58,901
  • 25
  • 93
  • 115
9
votes
1 answer

Know how fast a Hard Drive is in Delphi

I am writing a diagnosis program (like everest, but simpler) and I need to know how fast a HardDrive is. I wanna know things such as: 1 - Bytes per second (read) 2 - Bytes per second (write) 3 - S.M.A.R.T data I guess I can use WMI to query such…
Rafael Colucci
  • 6,018
  • 4
  • 52
  • 121
9
votes
4 answers

Is writing a cookie very slow in JS?

I need to make my website faster on the client side. I wonder if my excessive Javascript cookie manipulation could slow down the browser. It uses the harddrive, which is the slowest component of a computer. On a severely fragmented harddrive, could…
JoJo
  • 19,587
  • 34
  • 106
  • 162
9
votes
7 answers

How do you find how much disk space is left in Cocoa?

I suppose I'd like to be able to find out for any storage, not just the system disk, but that's most important.
zekel
  • 9,227
  • 10
  • 65
  • 96
9
votes
4 answers

Perl: write speed mystery?

How can the output rate be higher than hard disk write rate? Update 1: I have changed the following: Turned off antivirus. No change. Inserted new physical disk and used the first partition for the test. (The disk for the initial test was on…
Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
9
votes
3 answers

Low level disk operations in Linux for C++

What kind of methods exists in linux for low level disk operations in C++? I am attempting to write my own manager of data on a disk. For example, I would like to create a C++ program in the Linux environment that allocated a certain amount…
Matthew
  • 3,886
  • 7
  • 47
  • 84
9
votes
4 answers

How do I use C# to get the Hard-disk serial number?

How do i get the hard disk serial number without using dll and supported by VISTA
Aiswarya
8
votes
1 answer

Why is average disk seek time one-third of the full seek time?

I have read in many books and papers, considering disk performance, that the average seek time is roughly one-third of the full seek time, but no one really offers any explanation about that. Where does this come from?
nikos
  • 2,893
  • 11
  • 30
  • 39
8
votes
2 answers

Create Virtual Disk with .NET?

I found a lot of good topics on Stack Overflow concerning this, but my question is a bit more specific. A lot of companies are using this software to host the same services we…
user470760
8
votes
6 answers

Serial number of Hard Disk or Hard Drive

At first it may seems it is very easy question and some body may be trying to give me advice to try Google, it may be so. But for me it is very hard I have try Google, Stack Overflow and can’t find any good solution. Just want to get Serial number…
Pritesh
  • 3,208
  • 9
  • 51
  • 70
8
votes
1 answer

Install Android Studio and SDK on SSD or Mechanical Disk Drive

I have just upgraded to a new Intel Core i7 (4th gen) PC featuring a 512gb SSD, about 5TB of mechanical storage, and 16GB of DDR3 ram. I am now planning to set up the Android SDK and Android studio. I was wondering, on my old computer the Android…
Andrew S
  • 2,847
  • 3
  • 33
  • 50
1 2
3
43 44