Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Alpha][Bug] 无法显示硬盘信息 can‘t display the storage space and disk info #2110

Open
timzheng opened this issue Dec 25, 2024 · 0 comments
Labels
alpha Issues in Alpha Testing bug Something isn't working

Comments

@timzheng
Copy link

What happened?

1、the problem:
image

2、exec comand:lsblk -O -J
output:
{
"blockdevices": [
{"name": "mmcblk1", "kname": "mmcblk1", "maj:min": "179:0", "fstype": null, "mountpoint": null, "label": null, "uuid": null, "parttype": null, "partlabel": null, "partuuid": null, "partflags": null, "ra": "128", "ro": "0", "rm": "0", "hotplug": "1", "model": null, "serial": "0x5ca3e900", "size": "14.6G", "state": null, "owner": "root", "group": "disk", "mode": "brw-rw----", "alignment": "0", "min-io": "512", "opt-io": "0", "phy-sec": "512", "log-sec": "512", "rota": "0", "sched": "cfq", "rq-size": "128", "type": "disk", "disc-aln": "0", "disc-gran": "512K", "disc-max": "512K", "disc-zero": "0", "wsame": "0B", "wwn": null, "rand": "0", "pkname": null, "hctl": null, "tran": null, "subsystems": "block:mmc:mmc_host:platform", "rev": "0x8", "vendor": null, "zoned": null,
"children": [
{"name": "mmcblk1p1", "kname": "mmcblk1p1", "maj:min": "179:1", "fstype": null, "mountpoint": null, "label": null, "uuid": null, "parttype": null, "partlabel": null, "partuuid": null, "partflags": null, "ra": "128", "ro": "0", "rm": "0", "hotplug": "1", "model": null, "serial": null, "size": "4M", "state": null, "owner": "root", "group": "disk", "mode": "brw-rw----", "alignment": "0", "min-io": "512", "opt-io": "0", "phy-sec": "512", "log-sec": "512", "rota": "0", "sched": "cfq", "rq-size": "128", "type": "part", "disc-aln": "0", "disc-gran": "512K", "disc-max": "512K", "disc-zero": "0", "wsame": "0B", "wwn": null, "rand": "0", "pkname": "mmcblk1", "hctl": null, "tran": null, "subsystems": "block:mmc:mmc_host:platform", "rev": null, "vendor": null, "zoned": null},
{"name": "mmcblk1p2", "kname": "mmcblk1p2", "maj:min": "179:2", "fstype": null, "mountpoint": null, "label": null, "uuid": null, "parttype": null, "partlabel": null, "partuuid": null, "partflags": null, "ra": "128", "ro": "0", "rm": "0", "hotplug": "1", "model": null, "serial": null, "size": "4M", "state": null, "owner": "root", "group": "disk", "mode": "brw-rw----", "alignment": "0", "min-io": "512", "opt-io": "0", "phy-sec": "512", "log-sec": "512", "rota": "0", "sched": "cfq", "rq-size": "128", "type": "part", "disc-aln": "0", "disc-gran": "512K", "disc-max": "512K", "disc-zero": "0", "wsame": "0B", "wwn": null, "rand": "0", "pkname": "mmcblk1", "hctl": null, "tran": null, "subsystems": "block:mmc:mmc_host:platform", "rev": null, "vendor": null, "zoned": null},
{"name": "mmcblk1p3", "kname": "mmcblk1p3", "maj:min": "179:3", "fstype": null, "mountpoint": null, "label": null, "uuid": null, "parttype": null, "partlabel": null, "partuuid": null, "partflags": null, "ra": "128", "ro": "0", "rm": "0", "hotplug": "1", "model": null, "serial": null, "size": "4M", "state": null, "owner": "root", "group": "disk", "mode": "brw-rw----", "alignment": "0", "min-io": "512", "opt-io": "0", "phy-sec": "512", "log-sec": "512", "rota": "0", "sched": "cfq", "rq-size": "128", "type": "part", "disc-aln": "0", "disc-gran": "512K", "disc-max": "512K", "disc-zero": "0", "wsame": "0B", "wwn": null, "rand": "0", "pkname": "mmcblk1", "hctl": null, "tran": null, "subsystems": "block:mmc:mmc_host:platform", "rev": null, "vendor": null, "zoned": null},
{"name": "mmcblk1p4", "kname": "mmcblk1p4", "maj:min": "179:4", "fstype": null, "mountpoint": null, "label": null, "uuid": null, "parttype": null, "partlabel": null, "partuuid": null, "partflags": null, "ra": "128", "ro": "0", "rm": "0", "hotplug": "1", "model": null, "serial": null, "size": "12M", "state": null, "owner": "root", "group": "disk", "mode": "brw-rw----", "alignment": "0", "min-io": "512", "opt-io": "0", "phy-sec": "512", "log-sec": "512", "rota": "0", "sched": "cfq", "rq-size": "128", "type": "part", "disc-aln": "0", "disc-gran": "512K", "disc-max": "512K", "disc-zero": "0", "wsame": "0B", "wwn": null, "rand": "0", "pkname": "mmcblk1", "hctl": null, "tran": null, "subsystems": "block:mmc:mmc_host:platform", "rev": null, "vendor": null, "zoned": null},
{"name": "mmcblk1p5", "kname": "mmcblk1p5", "maj:min": "179:5", "fstype": null, "mountpoint": null, "label": null, "uuid": null, "parttype": null, "partlabel": null, "partuuid": null, "partflags": null, "ra": "128", "ro": "0", "rm": "0", "hotplug": "1", "model": null, "serial": null, "size": "32M", "state": null, "owner": "root", "group": "disk", "mode": "brw-rw----", "alignment": "0", "min-io": "512", "opt-io": "0", "phy-sec": "512", "log-sec": "512", "rota": "0", "sched": "cfq", "rq-size": "128", "type": "part", "disc-aln": "0", "disc-gran": "512K", "disc-max": "512K", "disc-zero": "0", "wsame": "0B", "wwn": null, "rand": "0", "pkname": "mmcblk1", "hctl": null, "tran": null, "subsystems": "block:mmc:mmc_host:platform", "rev": null, "vendor": null, "zoned": null},
{"name": "mmcblk1p6", "kname": "mmcblk1p6", "maj:min": "179:6", "fstype": null, "mountpoint": null, "label": null, "uuid": null, "parttype": null, "partlabel": null, "partuuid": null, "partflags": null, "ra": "128", "ro": "0", "rm": "0", "hotplug": "1", "model": null, "serial": null, "size": "32M", "state": null, "owner": "root", "group": "disk", "mode": "brw-rw----", "alignment": "0", "min-io": "512", "opt-io": "0", "phy-sec": "512", "log-sec": "512", "rota": "0", "sched": "cfq", "rq-size": "128", "type": "part", "disc-aln": "0", "disc-gran": "512K", "disc-max": "512K", "disc-zero": "0", "wsame": "0B", "wwn": null, "rand": "0", "pkname": "mmcblk1", "hctl": null, "tran": null, "subsystems": "block:mmc:mmc_host:platform", "rev": null, "vendor": null, "zoned": null},
{"name": "mmcblk1p7", "kname": "mmcblk1p7", "maj:min": "179:7", "fstype": "ext4", "mountpoint": null, "label": "rootfs", "uuid": "ca7e945a-1f45-4b1e-9bf4-6a233a29cea4", "parttype": null, "partlabel": null, "partuuid": null, "partflags": null, "ra": "128", "ro": "0", "rm": "0", "hotplug": "1", "model": null, "serial": null, "size": "6G", "state": null, "owner": "root", "group": "disk", "mode": "brw-rw----", "alignment": "0", "min-io": "512", "opt-io": "0", "phy-sec": "512", "log-sec": "512", "rota": "0", "sched": "cfq", "rq-size": "128", "type": "part", "disc-aln": "0", "disc-gran": "512K", "disc-max": "512K", "disc-zero": "0", "wsame": "0B", "wwn": null, "rand": "0", "pkname": "mmcblk1", "hctl": null, "tran": null, "subsystems": "block:mmc:mmc_host:platform", "rev": null, "vendor": null, "zoned": null},
{"name": "mmcblk1p8", "kname": "mmcblk1p8", "maj:min": "179:8", "fstype": "ext4", "mountpoint": "/media/pi/userdata", "label": "userdata", "uuid": "b22fc2ca-565c-4e2c-9d2d-cef594517815", "parttype": null, "partlabel": null, "partuuid": null, "partflags": null, "ra": "128", "ro": "0", "rm": "0", "hotplug": "1", "model": null, "serial": null, "size": "8.5G", "state": null, "owner": "root", "group": "disk", "mode": "brw-rw----", "alignment": "0", "min-io": "512", "opt-io": "0", "phy-sec": "512", "log-sec": "512", "rota": "0", "sched": "cfq", "rq-size": "128", "type": "part", "disc-aln": "0", "disc-gran": "512K", "disc-max": "512K", "disc-zero": "0", "wsame": "0B", "wwn": null, "rand": "0", "pkname": "mmcblk1", "hctl": null, "tran": null, "subsystems": "block:mmc:mmc_host:platform", "rev": null, "vendor": null, "zoned": null}
]
},
{"name": "mmcblk1boot0", "kname": "mmcblk1boot0", "maj:min": "179:32", "fstype": null, "mountpoint": null, "label": null, "uuid": null, "parttype": null, "partlabel": null, "partuuid": null, "partflags": null, "ra": "128", "ro": "1", "rm": "0", "hotplug": "1", "model": null, "serial": null, "size": "4M", "state": null, "owner": "root", "group": "disk", "mode": "brw-rw----", "alignment": "0", "min-io": "512", "opt-io": "0", "phy-sec": "512", "log-sec": "512", "rota": "0", "sched": "cfq", "rq-size": "128", "type": "disk", "disc-aln": "0", "disc-gran": "512K", "disc-max": "512K", "disc-zero": "0", "wsame": "0B", "wwn": null, "rand": "0", "pkname": null, "hctl": null, "tran": null, "subsystems": "block:mmc:mmc_host:platform", "rev": null, "vendor": null, "zoned": null},
{"name": "mmcblk1boot1", "kname": "mmcblk1boot1", "maj:min": "179:64", "fstype": null, "mountpoint": null, "label": null, "uuid": null, "parttype": null, "partlabel": null, "partuuid": null, "partflags": null, "ra": "128", "ro": "1", "rm": "0", "hotplug": "1", "model": null, "serial": null, "size": "4M", "state": null, "owner": "root", "group": "disk", "mode": "brw-rw----", "alignment": "0", "min-io": "512", "opt-io": "0", "phy-sec": "512", "log-sec": "512", "rota": "0", "sched": "cfq", "rq-size": "128", "type": "disk", "disc-aln": "0", "disc-gran": "512K", "disc-max": "512K", "disc-zero": "0", "wsame": "0B", "wwn": null, "rand": "0", "pkname": null, "hctl": null, "tran": null, "subsystems": "block:mmc:mmc_host:platform", "rev": null, "vendor": null, "zoned": null},
{"name": "mmcblk1rpmb", "kname": "mmcblk1rpmb", "maj:min": "179:96", "fstype": null, "mountpoint": null, "label": null, "uuid": null, "parttype": null, "partlabel": null, "partuuid": null, "partflags": null, "ra": "128", "ro": "0", "rm": "0", "hotplug": "1", "model": null, "serial": null, "size": "4M", "state": null, "owner": "root", "group": "disk", "mode": "brw-rw----", "alignment": "0", "min-io": "512", "opt-io": "0", "phy-sec": "512", "log-sec": "512", "rota": "0", "sched": "cfq", "rq-size": "128", "type": "disk", "disc-aln": "0", "disc-gran": "512K", "disc-max": "512K", "disc-zero": "0", "wsame": "0B", "wwn": null, "rand": "0", "pkname": null, "hctl": null, "tran": null, "subsystems": "block:mmc:mmc_host:platform", "rev": null, "vendor": null, "zoned": null},
{"name": "nvme0n1", "kname": "nvme0n1", "maj:min": "259:0", "fstype": null, "mountpoint": null, "label": null, "uuid": null, "parttype": null, "partlabel": null, "partuuid": null, "partflags": null, "ra": "128", "ro": "0", "rm": "0", "hotplug": "0", "model": null, "serial": null, "size": "1.9T", "state": null, "owner": "root", "group": "disk", "mode": "brw-rw----", "alignment": "0", "min-io": "512", "opt-io": "0", "phy-sec": "512", "log-sec": "512", "rota": "0", "sched": null, "rq-size": "1023", "type": "disk", "disc-aln": "512", "disc-gran": "512B", "disc-max": "2T", "disc-zero": "0", "wsame": "0B", "wwn": null, "rand": "0", "pkname": null, "hctl": null, "tran": "nvme", "subsystems": "block:nvme:pci:platform", "rev": null, "vendor": null, "zoned": null,
"children": [
{"name": "nvme0n1p1", "kname": "nvme0n1p1", "maj:min": "259:1", "fstype": "ext4", "mountpoint": "/mnt/nvme", "label": null, "uuid": "a340a06f-36db-430f-9e39-24aaa925856f", "parttype": "0fc63daf-8483-4772-8e79-3d69d8477de4", "partlabel": null, "partuuid": "39a5d005-0650-4108-a79c-2d5b22338e4c", "partflags": null, "ra": "128", "ro": "0", "rm": "0", "hotplug": "0", "model": null, "serial": null, "size": "1.9T", "state": null, "owner": "root", "group": "disk", "mode": "brw-rw----", "alignment": "0", "min-io": "512", "opt-io": "0", "phy-sec": "512", "log-sec": "512", "rota": "0", "sched": null, "rq-size": "1023", "type": "part", "disc-aln": "0", "disc-gran": "512B", "disc-max": "2T", "disc-zero": "0", "wsame": "0B", "wwn": null, "rand": "0", "pkname": "nvme0n1", "hctl": null, "tran": "nvme", "subsystems": "block:nvme:pci:platform", "rev": null, "vendor": null, "zoned": null}
]
}
]
}

3、check the log file: tail -f local-storage.log
output:
2024-12-25T14:32:57.093Z error Failed to parse block devices from output of lsblk {"error": "[]model.LSBLKModel: model.LSBLKModel.RO: ReadBool: expect t or f, but found ", error found in #10 byte of ...|", "ro": "0", "rm": |..., bigger context ...|id": null, "partflags": null, "ra": "128", "ro": "0", "rm": "0", "hotplug": "1", "model": null, "ser|...", "func": "service.(*diskService).LSBLK", "file": "/DATA/project/CasaOS-LocalStorage/service/disk.go", "line": 317}
2024-12-25T14:32:57.311Z error Failed to parse block devices from output of lsblk {"error": "[]model.LSBLKModel: model.LSBLKModel.RO: ReadBool: expect t or f, but found ", error found in #10 byte of ...|", "ro": "0", "rm": |..., bigger context ...|id": null, "partflags": null, "ra": "128", "ro": "0", "rm": "0", "hotplug": "1", "model": null, "ser|...", "func": "service.(*diskService).LSBLK", "file": "/DATA/project/CasaOS-LocalStorage/service/disk.go", "line": 317}

Screenshots

No response

@timzheng timzheng added alpha Issues in Alpha Testing bug Something isn't working labels Dec 25, 2024
@timzheng timzheng changed the title [Alpha][Bug] 无法显示硬盘信息 [Alpha][Bug] 无法显示硬盘信息 can‘t display the storage space and disk info Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
alpha Issues in Alpha Testing bug Something isn't working
Projects
Status: Reported
Development

No branches or pull requests

1 participant