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.
Questions tagged [hard-drive]
649 questions
8
votes
1 answer
How can I read HDD S.M.A.R.T registers in C# .NET and obtain all the associated values for that register?
How can I read HDD's SMART registers in .NET using WMI, or another way, which results in having the following data:
Register Name
Current Value
Worst Value
Threshold Value
Data (Vendor)
SMART Status

TheLegendaryCopyCoder
- 1,658
- 3
- 25
- 46
7
votes
0 answers
C# - Reading free space bits on harddrive
Possible Duplicate:
How can I undelete a file using C#?
Ever since I recovered a document using a software called Undelete, that scans your free space and shows you what files are recoverable, I was curious on how to program this. Being a new…

user162941
- 101
- 2
- 3
7
votes
1 answer
C# Hard drive RPM
Anyone knows how to get the RPM info from a hard drive ?
I am able to access a lot of info through the Win32_DiskDrive WMI class but not that particular one.
Thanks !

nanouk
- 71
- 2
7
votes
1 answer
Increase the root volume (Hard disk) of EC2 Linux running instance without restart - Step by step process
Problem:
I have EC2 instance with Linux (Ubunty) and root volume of 10 GB. I have consumed about 96% of the size and now my application responding slow, so I wanted to increase the size to 50 GB.
The most important point is, I have data already…

Muhammad Tariq
- 3,318
- 5
- 38
- 42
7
votes
4 answers
MySQL tables on external hard drive
I have a large amount of text data I need to import into MySQL. I'm doing this on a MacBook and don't have enough space for it so I want to store it in an external hard drive (I'm not really concerned about speed at this point - this is just for…

Michael
- 13,838
- 18
- 52
- 81
7
votes
1 answer
How to determinate if 2 logical drives are on the same physical disc in Java
Imagine a PC with an SSD, and a HDD.
SSD is splitted to 2 partitions: C and D.
HDD is splitted to 2 partitions: E and F.
I need to create a method:
boolean isOnSamePhysicalDrive(String drive1, String drive2);
isOnSamePhysicalDrive("C", "D") -->…

Saphyra
- 450
- 3
- 15
7
votes
2 answers
Volume to physical drive
QueryDosDevice(L"E:", DeviceName, MAX_PATH);
(E: is a SD card)
DeviceName is "\Device\HarddiskVolume3"
How do I "convert" it to something like "\\.\PHYSICALDRIVE1"

Cornwell
- 3,304
- 7
- 51
- 84
7
votes
1 answer
Antimalware Service Executable slow down IO operations
I have a java program that write some temporary files in the temp directory. The temp directory is on a SSD. The write operation is normally very fast. But now with some specific sample data it is very, very slow and the CPU of the Antimalware…

Horcrux7
- 23,758
- 21
- 98
- 156
7
votes
2 answers
How to check hard disk is Sata Device or it is IDE Device using c#
I have SATA Hard Disk, and I want to detect by C# windows form. I want to display that it is SATA or IDE drive. I am using following code but it always return IDE but its should be return SATA. So any one can help me to where I am…

Durgesh Pandey
- 2,314
- 4
- 29
- 43
7
votes
2 answers
Finding what hard drive sectors occupy a file
I'm looking for a nice easy way to find what sectors occupy a given file. My language preference is C#.
From my A-Level Computing class I was taught that a hard drive has a lookup table on the first few KB of the disk. In this table there is a…

Kratz
- 487
- 2
- 6
- 13
7
votes
5 answers
Optimizing locations of on-disk data for sequential access
I need to store large amounts of data on-disk in approximately 1k blocks. I will be accessing these objects in a way that is hard to predict, but where patterns probably exist.
Is there an algorithm or heuristic I can use that will rearrange the…

sanity
- 35,347
- 40
- 135
- 226
7
votes
3 answers
How can I identify the protocol used in hard disk?
I have an application which needs to read information from a hard disk, stuff like serial model etc.
Now of course it matters if the drive is a SAS, SATA or FC drive.
Is there a reliable way that I can identify which protocol a connected drive…
user2882307
7
votes
1 answer
Can you check available hard disk space with Adobe Air?
We have an Adobe Air app that downloads a large amount of images into application storage. I've scanned the docs and found no sign of this, but I thought I'd double check: anyone know if it's possible to see how much available storage space the…

weotch
- 5,788
- 6
- 35
- 42
7
votes
3 answers
How can I store an object on my hard drive?
I'm working on a project that uses a couple maps that can have over 100,000 keys. Currently I'm creating the maps at each runtime using an abbreviated form of the data to save time so that the maps only have around 1,000 keys. But I would like to…

Bradley Oesch
- 763
- 10
- 22
7
votes
3 answers
How can I determine the SATA channel for a given disk?
Using DISKPART command line utility, I can get something called a "Location path" which appears to give me what I need, you can view this by using the command detail disk after selecting one of your disks in diskpart.
It appears I can get this…

Jon
- 1,379
- 1
- 12
- 32