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
7
votes
3 answers

How to save ALAsset image to disk fast on iOS?

I am using ALAsset to retrieve images like that: [[asset defaultRepresentation] fullResolutionImage]] This return CGImageRef which I want to save to disk as fast as possible... Solution 1: UIImage *currentImage = [UIImage imageWithCGImage:[[asset…
Borut Tomazin
  • 8,041
  • 11
  • 78
  • 91
7
votes
2 answers

Write to and read from free disk space using Windows API

Is it possible to write to free clusters on disk or read data from them using Windows APIs? I found Defrag API: https://learn.microsoft.com/en-gb/windows/desktop/FileIO/defragmenting-files FSCTL_GET_VOLUME_BITMAP can be used to obtain allocation…
Zmey
  • 2,304
  • 1
  • 24
  • 40
7
votes
2 answers

What is MySQL doing?? 100% disk utilization from boot

I have a large database on a Win10 machine, mysqld.exe does a lot of disk I/O, 100%, for hours and hours 100MB/s consistently - mostly writes - persists after numerous reboots. How can I find out what the hell it is actually doing, and stop it? I…
Daniel
  • 763
  • 1
  • 8
  • 25
7
votes
1 answer

Ruby Get Available Disk Drives

Can anyone tell me how I can get a list of the available disk drives in ruby? I am creating an open file dialogue and need to know! Thanks in advance, ell.
Ell
  • 4,238
  • 6
  • 34
  • 60
7
votes
1 answer

Calculate Total disk i/o by a single process

I am looking for some tool that will dump total disk I/O by a single process after it ends. So far my finding is :- iotop= It shows i/o per process in real time but does not give total after process end. iostat= It shows real time I/O but does not…
Wajih
  • 619
  • 8
  • 10
7
votes
3 answers

Vagrant VirtualBox second disk path

I have Vagrant + VirtualBox. In my Vagrantfile I have config.vm.provider "virtualbox" do |v| v.customize [ "createhd", "--filename", "disk", "--size", 100000 ] v.customize [ 'storageattach', :id, '--storagectl', 'SATA Controller', '--port',…
Jepper
  • 1,092
  • 3
  • 11
  • 24
7
votes
2 answers

Low-level disk I/O in Golang

Wondering if there has been anyone experimenting with low-level disk I/O, such as reading raw sectors, MBR, etc. I've done some digging around myself, but haven't been able to find anything mentioned about it. Most of it is dead ends where someone…
Sly
  • 1,145
  • 7
  • 19
7
votes
9 answers

Read data from damaged media

Is it possible to read damaged media (cd, hdd, dvd,...) even if windows explorer bombs out? What I mean to ask is, whether there is a set of APIs or something that can access the disk at a very low level (below explorer?) and read whatever can be…
recovery
7
votes
3 answers

PostgreSQL 9.0.13 doing a pg_restore but no evidence that disk space is being used

I'm trying to restore a pg_dump taken with this command from another server. sudo -u postgres pg_dump --verbose --format=custom --file=pg-backup.sql -U postgres salesDB After I copied over the pg-backup.sql file I'm trying to restore with this…
Wade Jernigan
  • 121
  • 1
  • 4
7
votes
4 answers

Directory Stats command line interface?

Windirstat/ Kdirstat/ Disk Inventory X has been nothing short of revolutionary in file managment. Why is there no text-only command line equivalent? I'd need it for SSH administration of my file servers. We have all the building blocks: du, tree…
Sridhar Sarnobat
  • 25,183
  • 12
  • 93
  • 106
7
votes
2 answers

Physical disk size not correct (IoCtlDiskGetDriveGeometry)

I use the code below to get the physical disk size, but the size returned is not correct. I've checked the size with other tools. The code below reports Total disk space: 8.249.955.840 bytes and it should be Total disk space: 8.254.390.272…
John Doe
  • 9,843
  • 13
  • 42
  • 73
7
votes
3 answers

How can I determine the SATA channel for a given disk?

Using DISKPART command line utility, I can get something called a "Location path" which appears to give me what I need, you can view this by using the command detail disk after selecting one of your disks in diskpart. It appears I can get this…
Jon
  • 1,379
  • 1
  • 12
  • 32
7
votes
4 answers

what is the algorithm to optimally fill a dvd for burning

What is the optimal algorithm for filling a set of Blu-ray disc given many hundred gigabytes of assets of varying sizes? I am trying to consolidate a large number of old CDROMS, DVDs and small hard drives and put everything in a database indexed by…
user1556337
  • 151
  • 1
  • 4
6
votes
1 answer

How can I show an image in webBrowser control directly from memory?

How can I show an image in webBrowser control directly from memory instead of hard disk? When I use RAM Disk software to create a virtual drive, it is possible to address an image source to load it like this: img src = "Z:/image.jpg" that Z is a RAM…
6
votes
3 answers

Is FileInputStream using buffers already?

When I am using FileInputStream to read an object (say a few bytes), does the underlying operation involve: 1) Reading a whole block of disk so that if I subsequently do another read operation, it wouldnt require a real disk read as that portion of…
AnkurVj
  • 7,958
  • 10
  • 43
  • 55