Citando o 16.04 hwinfo
manpage :
--dump-db N
Dump hardware data base. N is either 0 for the external data
base in /var/lib/hardware, or 1 for the internal data base.
...
FILES
/var/lib/hardware/hd.ids
External hardware data base (in readable text form). Try the
--dump-db option to see the format.
/var/lib/hardware/udi
Directory where persistent config data are stored (see --save-
config option).
Eu li que como hwinfo
dumping de o banco de dados em /var/lib/hardware
, não descartando para /var/lib/hardware
. Então, se não houver nada em /var/lib/hardware
, não há nada para despejar.
E a saída strace
reflete isso:
$ strace -e open hwinfo --dump-db 0
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libhd.so.21", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libx86emu.so.1", O_RDONLY|O_CLOEXEC) = 3
open("/proc/version", O_RDONLY) = 3
open("/proc/cmdline", O_RDONLY) = 3
open("/var/lib/hardware/cmdline", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/modules/4.13.0-37-generic/modules.alias", O_RDONLY) = 3
open("/var/lib/hardware/hd.ids", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/var/lib/hardware/ids", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
Ele tenta (e falha) para ler /var/lib/hardware/hd.ids
.