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?
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?