osquery / osquery/osquery

Add ability to query physical disk metadata

Open
#7,980 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature Linux wishlist
Dominant language
C++
Stars
23.6k
Forks
2.6k
Avg merge
6d 7h
Merged PRs (30d)
14

Description

Feature request

Get Hard Disk info
Product Name, Manufacturer, Size, Serial Number, vendor etc.

What new feature do you want?

There is a feature for getting disk-related info which is available for windows systems but not for Linux.

How is this new feature useful?

That way we can monitor the disk-related info across the organization.

How can this be implemented?

Not sure but the same info can be achieved from the below command:

lshw -class disk

*-disk                    
       description: Disk
       product: product A
       vendor: vendorA
       physical id: 0.0.0
       bus info: scsi@0:0.0.0
       logical name: /dev/sda
       version: 0000
       serial: 12345678
       size: 238GiB (256GB)
       capabilities: gpt-1.00 partitioned partitioned:gpt

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Compare the existing Windows disk-information feature with the output of lshw -class disk on Linux. Determine which fields should be exposed for product name, manufacturer, size, serial number, and vendor, then verify that Linux disk queries return comparable metadata.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, linux
Domain
operating-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.