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
20
votes
3 answers
Running out of disk space EC2
I ran into some issues with my EC2 micro instance and had to terminate it and create a new one in its place. But it seems even though the old instance is no longer visible in the list, it is still using up some space on my disk. My df -h is listed…

coderatlarge
- 577
- 3
- 8
- 23
20
votes
6 answers
How do I get the disk drive serial number in C/C++
This has been already answered but it's a C# solution. How do I do this in C or C++?

The Mask
- 17,007
- 37
- 111
- 185
18
votes
5 answers
How can I get the system drive letter?
How would I find the driver letter of the main hard disk on a Windows Operating system?
That is, the drive with Program Files, System32, and so on.
danile oanas
18
votes
3 answers
What is the easiest way in C# to check if hard disk is SSD without writing any file on hard disk?
I need to check in C# if a hard disk is SSD (Solid-state drive), no seek penalty?
I used:
ManagementClass driveClass = new ManagementClass("Win32_DiskDrive");
ManagementObjectCollection drives = driveClass.GetInstances();
But its only…

Khaleel Hmoz
- 987
- 2
- 13
- 24
16
votes
2 answers
Detecting SSD storage devices on POSIX OS'es
I'm working on a OS portable program that would benefit from detecting if a physical storage device is a SSD or a plain old spin-disk.
On Linux there is:
/sys/block/sdX/queue/rotational
which return 0 or 1 if SSD, but I'm not sure if this is the…
user152949
15
votes
6 answers
Tag based file system
All OSs that exist right now work in files and folders. I was thinking that there are may other ways of storing files. Would it be a better way to store files by tags, for example:
A file called "music1" can have a tag "2013", if the music was made…
user1779715
14
votes
3 answers
Delphi - How to get list of USB removable hard drives and memory sticks?
In my application (Delphi), I need to list all the USB storage devices. These can be either flash memory sticks or external storage drives.
There is a Jvcl component JvDriveCombo, and it has the DriveType property - the problem is if I select…

Harry Pierce
- 143
- 1
- 1
- 5
13
votes
7 answers
How many threads for reading and writing to the hard disk?
i am developing an application that gathers a list with all the files of the hard drive
and also afterwards it does write files to the hard drive.
I want to ask : what is the optimum number of concurrent threads that will do this task ?
I mean how…

alexandertr
- 943
- 1
- 9
- 18
13
votes
4 answers
Tool to show processes writing to the hard drive?
Is there a tool that will show me what applications are writing to the hard drive in real time? I'm thinking something like Task Manager but for I/O. I've got a number of background processes running, and can never tell when Visual Studio is holding…

gfrizzle
- 12,419
- 19
- 78
- 104
13
votes
3 answers
How to detect if any specific drive is a hard drive?
In C# how do you detect is a specific drive is a Hard Drive, Network Drive, CDRom, or floppy?

StubbornMule
- 2,720
- 5
- 20
- 19
12
votes
7 answers
Linux: direct access to the hard-disk in C
How can I obtain a raw access to the HD and know if that location is used or is a free space?
Just a piece of example, I can obtain a direct access simply with an open and a read on a disk device, the goal is knowing whether the, for example, 10.000…

Lopoc
- 1,308
- 5
- 16
- 26
11
votes
5 answers
Howto get hardware information in Linux using C++
I need to get specifications of hard disk on both Win and *nix machines. I used on Linux like this:
static struct hd_driveid hd;
int device;
if ((device = open("/dev/sda", O_RDONLY | O_NONBLOCK)) < 0)
{
cerr << "ERROR:…

sorush-r
- 10,490
- 17
- 89
- 173
10
votes
7 answers
Get HDD (and NOT Volume) Serial Number on Vista Ultimate 64 bit
I was once looking for getting the HDD serial number without using WMI, and I found it. The code I found and posted on StackOverFlow.com works very well on 32 bit Windows, both XP and Vista. The trouble only begins when I try to get the serial…

TheAgent
- 1,472
- 5
- 22
- 42
10
votes
2 answers
Emulate a hard drive in Linux
I have developed a FUSE-based file system as part of a research project and now have to study the actual read/write requests that are received by the hard drive. In an attempt to do this, I am looking at the option of creating a virtual Hard Drive…

Anand Suresh
- 113
- 1
- 6
10
votes
3 answers
How can get Hard Disk Information Using CMD
I am use this command for finding hard disk in formation "wmic diskdrive" but i insert a external device like hard disk or pan drive, this command is provide information of external hard disk or pan drive. so how can find internal hard disk…

Lokesh Kumar
- 801
- 2
- 8
- 13