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
3
votes
1 answer

Resizing cloud VM disk without taking instance down (Google cloud)

So I saw there is an option in google compute (I assume the same option exists in other cloud VM suppliers so the question isnt specifically on Google compute, but on the underlying technology) to resize the disk without having to restart the…
tomer.z
  • 1,033
  • 1
  • 10
  • 25
3
votes
1 answer

Apache Kafka: reduce kafka disk usage

I have a question about Kafka's disk. Kafka will fail when its disk become full. So I want to reduce the disk usage to less than x% by discarding the old data stored on the Kafka disk (or discarding a copy of the data) when the Kafka disk usage…
moscot
  • 39
  • 1
  • 2
3
votes
1 answer

Lost aws ec2 disk data after reboot

I have AWS EC2 instance with xvdb disk. After reboting my instance, I mount my disk but it seems to be empty. I think I lost all my data. Does some one know how I can recover my data? Many thanks
Raouf
  • 989
  • 2
  • 11
  • 15
3
votes
1 answer

Why would file checksums inconsistently fail?

I created a ~2MiB file. dd if=/dev/urandom of=file.bin bs=2M count=1 Then I copied that file a large number of times and generated a checksum for each (identical) copy. for i in `seq 50000`; do name="file.${i}.bin" cp file.bin "${name}" …
Will Haley
  • 703
  • 1
  • 9
  • 25
3
votes
4 answers

How to get total disk size on Windows?

I can get RAM size okay with ctypes and MEMORYSTATUSEX(), but I'm having trouble finding anything for total disk size (not space available, but total capacity in general).
AlwaysQuestioning
  • 1,464
  • 4
  • 24
  • 48
3
votes
1 answer

How to remove a device /disk from zpool where there is no redundancy

I accidentally added a disk to a zpool the wrong way in the process of replacing a bad disk. Now I can't remove the disk because it is listed as a device with no redundancy. How do I remove da2? Using zpool remove pdx-zfs-02 da2 doesn't work. It…
pjensen
  • 41
  • 2
3
votes
1 answer

Create a cache file which is automatically deleted when partition is nearly full in libc (all file systems) or ext4?

When writing software which needs to cache data on disk, is there a way in libc, or a way which is specific to a certain file system (such as ext4), to create a file and flag it as suitable to be deleted automatically (by the kernel) if the…
Philip Withnall
  • 5,293
  • 14
  • 28
3
votes
2 answers

Powershell Get all Optical Drive Letters

I am trying to get all drive letters of a Windows system with Powershell, but I cannot figure it out. Any Ideas? I have tried to use Get-Volume, but it has no parameter for -ByDriveType or -ByType or -Type or anything.
Saggex
  • 3,390
  • 3
  • 22
  • 37
3
votes
2 answers

Find System Hard Disk Drive from Python?

I am working on a software installer for my current application. It needs to be installed to the System HDD. How owuld I detect the system drive and return the letter from Python? Would the win32 extensions be useful? How about the os module pre…
Zac Brown
  • 5,905
  • 19
  • 59
  • 107
3
votes
0 answers

FFmpeg iOS RTSP stream save to disk - Need Example on Swift

I am looking for an example on how to use FFmpeg once integrated to an iOS project in Swift to save an RTSP stream to disk. In terminal macOS I can do: ffmpeg -i rtsp://cool:url@media/media.amp -b 900k -vcodec copy -r 60 -y…
moyoteg
  • 351
  • 3
  • 11
3
votes
1 answer

Unexpected behavior of sstableLoader

I'm working on two different machines and both have different hard disk storage and different cassandra version. machine 1 SSD hard disk, Cassandra 2.1.13 machine 2 HDD hard disk, Cassandra 2.1.3 Now I transferred data of one CF from machine 2 to…
Anonymous
  • 181
  • 11
3
votes
2 answers

Priority queue which can be stored on disk?

I need to implement a application which has a priority queue which has more than 100M records. My problem is I am not able to keep all this data in memory, so I need to store it on disk. Is there any cache solution where I can store all this…
user437066
  • 31
  • 7
3
votes
3 answers

Re-Enumerate and use PCIe SSD in Linux without shutdown

Good day, I am currently working on a project where PCIe SSDs are constantly being swapped out and tested through benchmark programs such as VDBench and Iometer. The problem I face right now, which is only on the Linux side (got it working fine on…
Trever Wagenhals
  • 381
  • 5
  • 14
3
votes
1 answer

Picasso doesn't cache image on disk

I have to use custom OkHttpClient so I can add headers to the image requests. The problem is Picasso won't cache any images on disk because of this. I've used setIndicatorsEnabled(true) to check caching and I see only red indicators. When I use…
HellCat2405
  • 752
  • 7
  • 16
3
votes
2 answers

Logback sometimes does not write to the log file, and sometimes does not roll the log file

Sometimes when I launch my java application, logback refuses to write anything to my logfile. Sometimes it also refuses to roll the logfile at midnight (or at the first logging event after midnight), which results in logging events being lost to the…
Markus Jevring
  • 832
  • 1
  • 11
  • 17