sys-API icon indicating copy to clipboard operation
sys-API copied to clipboard

Not pulling data on mounted hard drives.

Open ashkl opened this issue 3 years ago • 2 comments

ashkl avatar Apr 05 '22 21:04 ashkl

Thanks for opening an issue @ashkl. Could you tell me a bit more about your system?

Platform: linux/macOS/windows? Version:

And did you get the same result with drives returning 0 from the graphql API? There's info on how to access it in the README.md. And sample queries in the release you downloaded.

Krillsson avatar Apr 06 '22 05:04 Krillsson

The issue is documented here: https://github.com/oshi/oshi/issues/1578

Essentially, sys-API tries to map physical drives to logical volumes (since they contain the disk usage). And it fails since sometimes there isn't a one to one mapping. private fun findAssociatedFileStore(diskStore: HWDiskStore): Optional<OsPartition>

Krillsson avatar Apr 12 '22 08:04 Krillsson

The issue is documented here: oshi/oshi#1578

Essentially, sys-API tries to map physical drives to logical volumes (since they contain the disk usage). And it fails since sometimes there isn't a one to one mapping. private fun findAssociatedFileStore(diskStore: HWDiskStore): Optional

Hi! no solution to this problem?

mr-tuduf avatar Mar 14 '23 17:03 mr-tuduf

@mr-tuduf I'm working on a solution. Unfortunately I need to abandon the mapping between HWDiskStore and FileSystem. But on the plus-side there will be more information available, since the current code filters out devices and FileSystems it cannot find mapping for.

Krillsson avatar Mar 15 '23 13:03 Krillsson

after some investigation; it's not OSHI or sys-API. It's when running inside docker. On my system /dev/sda disappears when running inside docker.

Krillsson avatar Mar 16 '23 19:03 Krillsson

What I've tried so far without success:

    privileged: true
    device_cgroup_rules:
      - 'c 8:* rmw'
   volumes:
     - /run/udev:/run/udev:ro
     - /dev:/dev

I'm surprised not even privileged option work.

Krillsson avatar Mar 16 '23 20:03 Krillsson