harddrive

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, the 10.000 byte is used or not. ...

Direct control of ATA commands

I am working on hard drive analysis, and wanted to know if there is a way to directly control an ATA hard drive under windows. In short I want to do something like a packet sniffer, but for the ATA commands sent to/from the hard drive. After that, I'd like to be able to write ATA commands directly the drive. If this is not possible unde...

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 back and swapping out that part of the code with a mechanism that does all the IPC(interpr...

Restricting users to access C drive in C#?

Hi , i have a winform to merge few file and save the merge files in a Directory. The directory in which it is saved ,it deletes the whole files and subdirectory in it . Now i want that the user should not be able to save the file in My Computer,C,D Drives. User can choose the directory through FolderBrowserDialog. How can i restrict...

How to enumerate hard drives and ...

I am writing a .net winforms application. I want to be able to do the following... Enumerate all of the hard drives on a system. Furthermore I would love to be able to determine which of the drives is Fixed and Which is removable. Finally, of the removable drives, I would love to be able to determine which of them is a flash (SS...

SCSI Windows Setup on Dell Precision 670 Workstation...please help.

Error Windows Setup: "setup did not find any hard disk drives installed in your computer" This is not exactly a programming question but I thought you guys might be able to help. I just received a Dell Precision 670 workstation. Windows is not recognizing the hard drive and I have experienced this before with other computers. I usually ...

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 ...

How does one map physical sectors of a disk to the files that contain them on an HFS+ volume on Mac OS X

I've been recovering a hard disk using dd_rescue, which provides me a list of all of the device sectors it could not copy due to hardware errors. I'd like to take that list, and write a tool to give me all of the files that contain these bad sectors so I can delete them. I'm not sure what APIs I can use to do this--essentially i want to...

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 the last partition, separate from the system partition, but on the same physical disk.). Resul...

How to read an intermittent hard drive consistently?

I have a faulty hard drive that works intermittently. After cold booting, I can access it for about 30-60 seconds, then the hard drive fails. I'm willing to write a software to backup this drive to a new and bigger disk. I can develop it under GNU/Linux or Windows, I don't care. The problem is: I can only access the disk for some time, ...

Powershell: how to map a network drive with a different username/password

Background: Assume I use the following powershell script from my local machine to automatically map some network drives. $net = $(New-Object -ComObject WScript.Network); $net.MapNetworkDrive("p:", "\\papabox\files"); $net = $(New-Object -ComObject WScript.Network); $net.MapNetworkDrive("q:", "\\quebecbox\files"); ## problem -- this on...

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 user has on their HD so we can warn them they don't have enough room? ...

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. ...

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 code consists of FileStream constructor (to open a file) and a SHA1 hash (the .Net framewo...

Visual Studio 2008 on an External Hard Drive?

My laptop had an install error with Vista Ultimate and now it does not let me run Visual Studio. I was able to install Visual Studio 2008 on my HP TouchSmart without a problem and now I use it on there. I want to be able to travel though. So I was wondering if I take the folder in which Visual Studio was installed and put it on my extern...

MySQL - best storage engine for constantly changing data

I currently have an application that is using 130 MySQL table all with MyISAM storage engine. Every table has multiple queries every second including select/insert/update/delete queries so the data and the indexes are constantly changing. The problem I am facing is that the hard drive is unable to cope, with waiting times up to 6+ secon...

How can I easily add storage to a VirtualBox machine with XP installed?

When I installed Windows XP on a VirtualBox machine, I made the hard drive only 10 GB since and assumed it would expand in size (as do hard drives in VMWare as far as I can remember, isn't this true?). In any case, I'm trying to install Visual Studio 2010 beta on this Virtual Box XP image and it has run out of disk space. Googling for ...

To restrict the access of hard drive

Hi everybody! I'm a newbie for C# programming. I have a system that access a hard drive call -'H'. this system allows the authorised users to delete and modify the files in H drive. Now my qusestion is I want to restrict deletion of files, if the same authorized users try to access the drive H directly without using the above mentioned p...

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 will do this 2) no, we don't need to conform to any specific government standard Where d...

Reading in parallel from multiple hard drives

I am writing an application that deals with lots of data (gigabytes). I am considering splitting the data onto multiple hard drives and reading it in parallel. I am wondering what kind of limitations I will run into--for example, is it possible to read from 4 or 8 hard drives in parallel, and will I get approximately 4 or 8 times the per...