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

Python reading of a file stops before it should in Windows 7

I am using Python to open the physical disk in the computer to read the first sector. disk = r"\\.\PhysicalDrive0" with open(disk, 'r') as f: f.seek(0) partdata = f.read(512) len(partdata) In windows XP len(partdata) will return 512…
Shawn
  • 75
  • 5
3
votes
1 answer

How to create a azure VM with smaller OS disk

So I am running a small VM for personal stuff on azure and want to minimize cost. The disk cost is significant part of my per day spending. I am running standard Ubuntu 18.04 image and already selected standard HDD instead of SSD for disk. but the…
3
votes
0 answers

print_req_error: critical target error, dev sdb, sector 0

I have samsung disk after a while the device is found on /dev/sdb but not the partitions. The smartools is not able to make a test of the unit and the dmesg traces show the follow information about is not able to access sector 0. For me the problem…
3
votes
1 answer

Develop a userspace read-only disk driver for macOS

I have a special disk image format (compressed and with extra information such as bad blocks) and would like to make that available as a block device (e.g. under /dev/rdisk) in macOS. I am looking for pointers on how to write a read-only block level…
Thomas Tempelmann
  • 11,045
  • 8
  • 74
  • 149
3
votes
3 answers

How much disk space does a GCP Function have?

I am looking into different FaaS providers and am interested how much disk space I have per function. A function in AWS Lambda has 512 MB of disk space available (see here) and Azure functions have up to 1000 GB of disk space, depending on the…
User12547645
  • 6,955
  • 3
  • 38
  • 69
3
votes
1 answer

Why do we need to increase disk size in Google Cloud to increase perfomance?

My question is about disks in Google Cloud. I can’t understand why do we need to increase the disk capacity in order to increase performance (transfer/read/write). If the disks are not local, then data is transferred over the network between the VM…
Veniamin
  • 459
  • 2
  • 9
3
votes
2 answers

CreateFile Windows error in a Delphi THandleStream

I have a simple class derivated from THandleStream which I use to edit a raw volume. I call Windows createfile() function to open a drive but the function never returns a valid handle, rather an exotic error code( 348 at the debugtime and 304 at the…
az01
  • 39
  • 1
  • 2
3
votes
2 answers

Access to raw disk device in Docker container on Mac

Is there a way to access to raw disk device in Docker container on Mac? I would like to mount ext4 filesystem in docker container and edit contents with linux(not mac) tools. I tried ex4fuse but it stalls on write operation, reads always fine.
kyb
  • 7,233
  • 5
  • 52
  • 105
3
votes
3 answers

Mount vfat image win linux using C

I'm trying to mount a vfat disk image from DOS, using .C if( mount( "/mypath/disk.img", "/mypath/img/", "vfat", MS_DIRSYNC | MS_SYNCHRONOUS, "utf8" ) ) { printf( "Error mount %s errno=%d %s\n", dst.c_str(), errno, strerror( errno ) ); } I get…
kikkus
  • 31
  • 2
3
votes
1 answer

MBR organization

The field in the MBR partition table with 8 bytes offset is intended to store the LBA-address of the partition beginning. LBA addressing was introduced to address larger disks when there were not already enough CHS-coordinates. But at the time of…
D .Stark
  • 145
  • 11
3
votes
2 answers

What are the PATA/IDE status codes, and what do they mean?

I'm writing an OS for fun and I'm trying to write a PATA/IDE driver to access the disk, however it is not working. I have this line unsigned char status = port_byte_in(ATAPort + COMMANDPORT); which returns the value of 88 (decimal). As this might be…
Jachdich
  • 782
  • 8
  • 23
3
votes
2 answers

Disk Usage in kubernetes pod

I am trying to debug the storage usage in my kubernetes pod. I have seen the pod is evicted because of Disk Pressure. When i login to running pod, the see the following Filesystem Size Used Avail Use% Mounted on overlay 30G 21G …
SunilS
  • 2,030
  • 5
  • 34
  • 62
3
votes
3 answers

Why is there a few % difference in disk size reported by shutils and df?

I am writing a simple monitoring script to which I would like to add disk space checks. I found however that the reported free space is different between the system df and shutils.disk_usage(). On a system which has three disks mounted: # df /…
WoJ
  • 27,165
  • 48
  • 180
  • 345
3
votes
2 answers

Is read/write small size of data performance problematic?

I'm using read/write to read/write from/to local disk regular files. I have to read/write small amount data. for example read(fd, buf, 15) write(fd, buf, 39); And I was told that I should avoid small amount of data read/write when someone reviews…
garen96
  • 175
  • 1
  • 9
3
votes
3 answers

How to find the disk usage total of specific files in a directory

So I have a directory /opt/splunk/var/run/ So I want to get the disk usage of all the files under run directory which contains either world bundle or delta Example : ls -lrth /opt/splunk/var/run 6726763764-7937483-7237438.bundle…
john doe
  • 53
  • 5