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
5
votes
2 answers

transfer postgres database from an old hard drive

I am pretty new with postgresql and pgAdmin and I made a beginner error. I changed the hard drive of my computer and unfortunately (and stupidly I really admit) I have not make a backup of my database in pgAdmin3 before. Is there anyway I can manage…
user3016665
  • 139
  • 2
  • 8
5
votes
2 answers

SSD raw I/O benchmarks with random read/write

My laptop has a SSD disk that has 512 byte physical disk sector size and 4,096 byte logical disk sector size. I'm working on an ACID database system that has to bypass all OS caches, so I write directly from allocated internal memory (RAM) to the…
user152949
5
votes
4 answers

using c# how can I extract information about the hard drives present on the local machine

I'm looking to get data such as Size/Capacity, Serial No, Model No, Heads Sectors, Manufacturer and possibly SMART data.
AndyM
  • 3,574
  • 6
  • 39
  • 45
5
votes
3 answers

Use DD to write specific file recursively

I have a hard drive that I want to overwrite, not with null bytes, but with a message. 48 69 64 64 65 6e 20 = "Hidden " Here's my command thus far: echo "Hidden " > /myfile dd if=/myfile of=/dev/sdb bs=1M Note: I have also tried an assorment of…
Goodies
  • 4,439
  • 3
  • 31
  • 57
5
votes
1 answer

R list.files(my_working_directory) shows no files but I know they are there. How to fix?

I'm trying to work with R using a directory in my external hard drive as working directory. I can set the working directory to where I want, but when I use list.files R can't see anything. I also can't use read.delim to load a file. For example: >…
A.Mstt
  • 301
  • 1
  • 3
  • 15
5
votes
4 answers

C# getdrives with type fixed but without usb harddisks?

I want to retrieve the list of fixed disks in a system. But C#s GetDrives Fixed Drives are including plug USB Harddisks. Any idea how I may detect that a fixed Drive is not an USB harddisk or vica versa?
Ephraim
  • 767
  • 1
  • 8
  • 15
5
votes
3 answers

How to erase a Hard Disk Drive

This is an odd question, but here it goes. I would like to write a program to flash my external hard drive with 1s and then 0s to clean it completely so I can sell it. Now, why do I want to write my own software instead of just using DBAN? From…
John Morgan
  • 121
  • 1
  • 3
5
votes
1 answer

C - Running a program in RAM

I have a program that XORs two files together using one time pad encryption. As the keyfile is of such sensitive nature I don't want any traces of the keyfile to appear on the computers hard drive as that could compromise security. The question is,…
youjustreadthis
  • 622
  • 3
  • 9
  • 24
5
votes
1 answer

Seek time vs Sequential read

Let's assume that on a hard drive I have some very large data file of a sequence of characters: ABRDZ.... My question is as follows, if the head is positioned at the beginning of the file, and I need 5 characters every 1000 positions interval,…
DED
  • 143
  • 11
4
votes
2 answers

How to obtain direct access to raw HD data in C?

I need to do a complete format on a USB stick (FAT16 or FAT32), put a file on the drive, then delete it and recover the file using a C program. Could anyone give me a hint on what should I use to accomplish this? I understand the layouts of the…
Álvaro
  • 269
  • 1
  • 9
4
votes
1 answer

How to get a trace file for hard disk access?

I have implemented a simulation which takes trace file as input which basically tracks each request for read, write access to hard disk and process it. Can someone tell me how/where I can get this trace (track) file or if is there any kinda option…
Junaid
  • 1,668
  • 7
  • 30
  • 51
4
votes
2 answers

VMWare Server: Virtual Hard Drive Type

For best performance, is it better to use a virtual IDE HDD or virtual SCSI HDD? If, SCSI, does it matter whether you use an BusLogic or LSILogic?
AndyM
  • 3,574
  • 6
  • 39
  • 45
4
votes
1 answer

LogicalBytesPerSector vs PhysicalBytesPerSector

When I do the command fsutil fsinfo sectorInfo c:, I receive this output: LogicalBytesPerSector : 512 PhysicalBytesPerSectorForAtomicity : 4096 PhysicalBytesPerSectorForPerformance : …
zeus
  • 12,173
  • 9
  • 63
  • 184
4
votes
2 answers

INT 13h effective sector size

I'm working on writing my own bootloader. I'm looking to leverage int 13h,02h to read sectors from the boot drive. I'm referencing https://en.wikipedia.org/wiki/INT_13H for documentation on this bios interrupt. Most reference code I've found assumes…
quixotrykd
  • 41
  • 3
4
votes
4 answers

How do I allocate contiguous disk space?

I am developing a system which works with lots of files and doing some google searches I read about improving the speed of information retrieval by the hard disk. But since I work with Java, I can't find any library to work with this issue. I have a…
mrcaramori
  • 2,503
  • 4
  • 29
  • 47