diff --git a/disk/disk_linux.go b/disk/disk_linux.go index 5a0cf469e..d013c930b 100644 --- a/disk/disk_linux.go +++ b/disk/disk_linux.go @@ -445,7 +445,7 @@ func IOCountersWithContext(ctx context.Context, names ...string) (map[string]IOC func SerialNumberWithContext(ctx context.Context, name string) (string, error) { var stat unix.Stat_t - err := unix.Stat(name, &stat) + err := unix.Stat(common.HostDev(strings.TrimPrefix(name, "/dev/")), &stat) if err != nil { return "", err }