Questions tagged [disk]

Anything related to disk-like storage media, like hard-disks, CDs, DVDs, etc. By extension it could be applied to other mass storage media that are commonly referred as "disks", like SSD, flash cards, etc.

1293 questions
30
votes
7 answers

How can I simulate a failed disk during testing?

In a Linux VM (Vmware workstation or similar), how can I simulate a failure on a previously working disc? I have a situation happening in production where a disc fails (probably a controller, cable or firmware problem). Obviously this is not…
MarkR
  • 62,604
  • 14
  • 116
  • 151
28
votes
2 answers

Are tables created with "CREATE TEMPORARY TABLE" in memory or on disk?

In MySQL, when you create a temporary table, for example, CREATE TEMPORARY TABLE ..., is that table created and held in memory or on the disk? I have read through the docs and Google'd it and have not come up with an answer.
Nate Weiner
  • 805
  • 2
  • 9
  • 15
28
votes
5 answers

Per Process disk read/write statistics in Mac OS X

How do I get programatically per process disk i/o statistics in Mac OS X. In 'Activity Monitor' application or in 'top' command we can only get whole system disk i/o statistics. For reference Similar question asked for PC.
Raviprakash
  • 2,410
  • 6
  • 34
  • 56
24
votes
1 answer

How can I make the "du" command run without outputting all the directories, like quiet mode?

I am trying to get the size of a directory in Linux but it has a lot of subdirectories and seems to take forever to go through all of these files and directories before giving me an answer to what size it is. I've searched the help and manual entry…
phocks
  • 2,933
  • 5
  • 27
  • 28
22
votes
8 answers

How to correctly convert filesize in bytes into mega or gigabytes?

I'm using the DriveInfo class in my C# project to retrieve the available bytes on given drives. How to I correctly convert this number into Mega- or Gigabytes? Dividing by 1024 will not do the job I guess. The results always differ from those shown…
Mats
  • 14,902
  • 33
  • 78
  • 110
21
votes
5 answers

How to load LUKS passphrase from USB, falling back to keyboard?

I want to set up a headless Linux (Debian Wheezy) PC with whole disk encryption, with the ability to unlock the disk either with a USB drive, or by entering a passphrase by keyboard. My starting point is a fresh install using the basic whole disk…
Andrew
  • 5,611
  • 3
  • 27
  • 29
18
votes
1 answer

File.WriteAllText not flushing data to disk

I've had 3 reports now of user's machines crashing while using my software.. the crashes are not related to my program but when they restart the config files my program writes are all corrupt. There is nothing special to how the files are being…
antfx
  • 3,205
  • 3
  • 35
  • 45
17
votes
2 answers

Storing entire process state on disk and restoring it later? (On Linux/Unix)

I would like to know: Is there a system call, library, kernel module or command line tool I can use to store the complete state of a running program on the disk? That is: I would like to completely dump the memory, page layout, stack, registers,…
Marco Aurélio
  • 2,463
  • 1
  • 21
  • 21
17
votes
3 answers

How do we access MFT through C#

I need to access Windows MFT(Master File Table) using C# in my .net application. I have googled about this and couldn't find any good results. I have been searching for the information from the past 2 days but have been unable to find any…
Pratik Singhal
  • 6,283
  • 10
  • 55
  • 97
16
votes
13 answers

Why overwrite a file more than once to securely delete all traces of a file?

Erasing programs such as Eraser recommend overwriting data maybe 36 times. As I understand it all data is stored on a hard drive as 1s or 0s. If an overwrite of random 1s and 0s is carried out once over the whole file then why isn't that enough to…
kjack
  • 2,004
  • 3
  • 26
  • 41
16
votes
8 answers

How can I record what process or kernel activity is using the disk in GNU/Linux?

On a particular Debian server, iostat (and similar) report an unexpectedly high volume (in bytes) of disk writes going on. I am having trouble working out which process is doing these writes. Two interesting points: Tried turning off system…
Mike
15
votes
5 answers

Xcode 4 became extremely slow and kills my hard drive

My machine has 8 GB or RAM, Core 2 Duo 3,06 GHZ and it seems it is not enough for Xcode 4 (4.0.1). From some time now it started to behave more and more slow. Auto completion, editing code as well as Xib files became almost impossible to use. Other…
Lukasz
  • 19,816
  • 17
  • 83
  • 139
15
votes
4 answers

How to make Linux GUI "usable" when lots of disk activity is happening

If I start copying a huge file tree from one position to another or if some other process starts doing lots of disk activity, the foreground app (GUI) slows way down. For example, take a 2gb file tree with 100k files in it. Open a console and do cp…
user126593
  • 2,707
  • 4
  • 21
  • 16
15
votes
4 answers

How do I read a disk directly with .NET?

Is it possible to read a disk directly with .NET? By directly, I mean via the device bypassing the file system. I think I would go about this by opening the device some way "\Device\Ide\IdeDeviceP2T0L0-1" for example. If I can't open the device…
Darryl Braaten
  • 5,229
  • 4
  • 36
  • 50
15
votes
6 answers

Is there a way to mount Android .img to access the AVD (Android Virtual Device) contents?

I feel a bit blind developing on an emulator for Android and not being able to see the file system on the AVD (.img). Is there a way to mount it in Windows or Linux, so that I could at least see the file listing and maybe contents? Bonus if it's…
Artem Russakovskii
  • 21,516
  • 18
  • 92
  • 115
1
2
3
86 87