Skip to content

GetDisks() returns empty array on my Debian 11 #2

Open
@arudyavsky

Description

GetDisks() returns an empty array on my Debian 11. This is probably because exec.Command() returns an "exit status 1" error. In the terminal, the "df -T -B1 --exclude-type=tmpfs --exclude-type=devtmpfs --exclude-type=udev" command itself executes and has the correct output. A possible fix is ​​to ignore the error. Maybe superuser rights are required?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions