We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
# ./debi.sh lsblk: /dev/mapper: not a block device
# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS sda 8:0 0 25.1T 0 disk ├─sda1 8:1 0 1007K 0 part ├─sda2 8:2 0 1G 0 part /boot/efi └─sda3 8:3 0 25.1T 0 part ├─pve-swap 252:0 0 8G 0 lvm [SWAP] ├─pve-root 252:1 0 96G 0 lvm / ├─pve-data_tmeta 252:2 0 15.9G 0 lvm │ └─pve-data-tpool 252:4 0 24.9T 0 lvm │ ├─pve-data 252:5 0 24.9T 1 lvm │ └─pve-vm--100--disk--0 252:6 0 10G 0 lvm └─pve-data_tdata 252:3 0 24.9T 0 lvm └─pve-data-tpool 252:4 0 24.9T 0 lvm ├─pve-data 252:5 0 24.9T 1 lvm └─pve-vm--100--disk--0 252:6 0 10G 0 lvm
# ls -la /dev/mapper/ total 0 drwxr-xr-x 2 root root 200 Feb 9 16:11 . drwxr-xr-x 20 root root 4420 Feb 19 21:47 .. crw------- 1 root root 10, 236 Feb 9 09:03 control lrwxrwxrwx 1 root root 7 Feb 9 16:11 pve-data -> ../dm-5 lrwxrwxrwx 1 root root 7 Feb 9 16:11 pve-data_tdata -> ../dm-3 lrwxrwxrwx 1 root root 7 Feb 9 16:11 pve-data_tmeta -> ../dm-2 lrwxrwxrwx 1 root root 7 Feb 9 16:11 pve-data-tpool -> ../dm-4 lrwxrwxrwx 1 root root 7 Feb 9 09:03 pve-root -> ../dm-1 lrwxrwxrwx 1 root root 7 Feb 9 09:03 pve-swap -> ../dm-0 lrwxrwxrwx 1 root root 7 Feb 9 16:11 pve-vm--100--disk--0 -> ../dm-6
其实可以用lsblk -J 然后解析json判断出准确的根分区block。。。
The text was updated successfully, but these errors were encountered:
理想应该是输出 /dev/sda...
Sorry, something went wrong.
你能试试什么命令在你这个条件下能直接输出 sda 吗
No branches or pull requests
其实可以用lsblk -J 然后解析json判断出准确的根分区block。。。
The text was updated successfully, but these errors were encountered: