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
6
votes
4 answers

SMART Hard Drive INFO Powershell

I am looking for a way through possibly powershell to obtain the SMART data for a hard drive on any given device. I have tried the WMI commands both through CMD and powershell that I have seen but have not been able to get the appropriate data I am…
Brandon Tinder
  • 73
  • 1
  • 2
  • 6
6
votes
3 answers

Will a hybrid hard drive improve Visual Studio compilation times?

I've seen various suggestions that hard disk speed is a big factor in Visual Studio compilation performance. There is now a relatively cheap hybrid hard drive available called the Seagate Momentus XT. This has a 7200 RPM hard disk of 250, 320 or…
RickL
  • 2,811
  • 3
  • 22
  • 35
6
votes
6 answers

Wipe Free space on hard disk drive using C#

I have been tasked to overwrite all the free space on a few laptops 3 times. I know there are some alternatives but I like to know how things work and if I can to do it myself with C#. 1) yes, I know there are plenty of freeware applications that…
Crash893
  • 11,428
  • 21
  • 88
  • 123
6
votes
2 answers

Read and write hard disk sector directly and efficiently

I have a special need for block data storage. My data are formatted data blocks in size of 4096. For high efficiency, I want to directly manipulate the block on hard disk sector and do not want to treat the data block as file. I think one way is to…
chenatu
  • 827
  • 2
  • 10
  • 22
6
votes
2 answers

NTFS/GPT Mount exited with Exit Code 13

This is a duplicated post since I didn't get any help on askubuntu.com. I have a 1TB external hard drive that I recently formatted to NTFS. It was mounting on my Ubuntu 11.10 fine until just now. I didn't make any changes to affect my OS or my…
dearN
  • 1,256
  • 4
  • 19
  • 40
6
votes
1 answer

I/O Disk Drive Calculations

So I am studying for an up and coming exam, one of the questions involves calculating various disk drive properties. I have spent a fair while researching sample questions and formula but because I'm a bit unsure on what I have come up with I was…
user1356029
  • 381
  • 1
  • 5
  • 14
6
votes
11 answers

Are solid-state drives good enough to stop worrying about disk IO bottlenecks?

I've got a proof-of-concept program which is doing some interprocess communication simply by writing and reading from the HD. Yes, I know this is really slow; but it was the easiest way to get things up and running. I had always planned on coming…
Larsenal
  • 49,878
  • 43
  • 152
  • 220
5
votes
4 answers

How to list the harddisks attached to a Linux machine using C++?

I need to list the harddisk drives attached to the Linux machine using the C++. Is there any C or C++ function available to do this?
balu
  • 55
  • 2
  • 3
5
votes
9 answers

Getting Serial Number of the Hard Drive Provided by the manufacturer through PHP

Getting Serial Number of the Hard Drive Provided by the manufacturer through PHP : How can it be done? I want to store it in a file. OS : windows 2000,XP,ME,Vista... Yes, I want the serial number of the hard drive of the Server. Or can it be done…
simplfuzz
  • 12,479
  • 24
  • 84
  • 137
5
votes
4 answers

How to determine number of files on a drive with Python?

I have been trying to figure out how to retrieve (quickly) the number of files on a given HFS+ drive with python. I have been playing with os.statvfs and such, but can't quite get anything (that seems helpful to me). Any ideas? Edit: Let me be a bit…
Mike Boers
  • 6,665
  • 3
  • 31
  • 40
5
votes
3 answers

Determine Disk Geometry on Windows

I need to programmatically determine out how many sectors, heads, and cylinders are on a physical disk from Windows XP. Does anyone know the API for determining this? Where might Windows expose this information?
Terry
  • 581
  • 3
  • 9
  • 17
5
votes
3 answers

Can anyone recommend disk I/O benchmarking software for Windows?

I want to test the performance of a filesystem under different conditions. Specifically I want to test the performance of Windows virtual machines without compression and with compression both on "normal harddisk" and on USB-disk as it would be…
Tedd Hansen
  • 12,074
  • 14
  • 61
  • 97
5
votes
1 answer

Whats the difference between GetLogicalDrives and FindFirstVolume+FindNextVolume?

It seems that I do not quite understand the differences between Microsoft's definition to "Logical Drive" and "Volume". Is every logical drive a volume but not the other way around ? I would love to get an explanation + a simple example showing the…
f12394
  • 51
  • 1
5
votes
6 answers

Converting HDD Serial # VB6 code into VB.NET code

I've got a cool piece of code taken from a VC++ project which gets complete information of the hard disk drive WITHOUT using WMI (since WMI has got its own problems). I ask those of you who are comfortable with API functions to try to convert this…
TheAgent
5
votes
1 answer

SCSI Read10 vs Read16

Which case would be considered correct? Doing reads with a Read 16 command no matter if the LBA's are 32 or 64 bit. If the max LBA is 32 bit then do a Read 10 command and if the max LBA is 64 bit then do a Read 16 command. What are the pros and…
diggers3
  • 229
  • 3
  • 17