我在网上搜索了一下,发现
lsblk -d -o name,rota,size,type
显示了磁盘的状态。
文中ROTA值为0则为SSD,1为硬盘。
但是我发现即使我安装了SSD,所有ROTA值都是0。
NAME ROTA SIZE TYPE
loop0 1 349.7M loop
loop1 1 2.2M loop
loop2 1 218.4M loop
loop3 1 2.2M loop
loop4 1 496.9M loop
loop5 1 55.7M loop
loop6 1 349.7M loop
loop7 1 508K loop
loop8 1 1.6M loop
loop9 1 9.9M loop
loop11 1 812K loop
loop12 1 804K loop
loop13 1 218.4M loop
loop14 1 9.6M loop
loop15 1 40.9M loop
loop16 1 1.5M loop
loop17 1 105.8M loop
loop18 1 73.9M loop
loop19 1 4K loop
loop20 1 55.7M loop
loop21 1 497M loop
loop22 1 512K loop
loop23 1 63.9M loop
loop24 1 81.3M loop
loop25 1 40.9M loop
loop26 1 63.5M loop
loop27 1 91.7M loop
loop28 1 74.1M loop
sda 1 893.8G disk
sdb 1 893.8G disk
sdc 1 893.8G disk
sdd 1 893.8G disk
sde 1 893.8G disk
sdf 1 893.8G disk
sdg 1 893.8G disk
sdh 1 893.8G disk
但是当我输入
lsblk
时,输出如下,显示RO值全为0。(我安装了8个SSD)
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 349.7M 1 loop /snap/gnome-3-38-2004/140
loop1 7:1 0 2.2M 1 loop /snap/gnome-calculator/953
loop2 7:2 0 218.4M 1 loop /snap/gnome-3-34-1804/93
loop3 7:3 0 2.2M 1 loop /snap/gnome-calculator/955
loop4 7:4 0 496.9M 1 loop /snap/gnome-42-2204/132
loop5 7:5 0 55.7M 1 loop /snap/core18/2796
loop6 7:6 0 349.7M 1 loop /snap/gnome-3-38-2004/143
loop7 7:7 0 508K 1 loop /snap/gnome-characters/791
loop8 7:8 0 1.6M 1 loop /snap/gnome-system-monitor/186
loop9 7:9 0 9.9M 1 loop /snap/canonical-livepatch/248
loop11 7:11 0 812K 1 loop /snap/gnome-logs/121
loop12 7:12 0 804K 1 loop /snap/gnome-logs/119
loop13 7:13 0 218.4M 1 loop /snap/gnome-3-34-1804/90
loop14 7:14 0 9.6M 1 loop /snap/canonical-livepatch/246
loop15 7:15 0 40.9M 1 loop /snap/snapd/20290
loop16 7:16 0 1.5M 1 loop /snap/gnome-system-monitor/184
loop17 7:17 0 105.8M 1 loop /snap/core/16202
loop18 7:18 0 73.9M 1 loop /snap/core22/864
loop19 7:19 0 4K 1 loop /snap/bare/5
loop20 7:20 0 55.7M 1 loop /snap/core18/2812
loop21 7:21 0 497M 1 loop /snap/gnome-42-2204/141
loop22 7:22 0 512K 1 loop /snap/gnome-characters/795
loop23 7:23 0 63.9M 1 loop /snap/core20/2105
loop24 7:24 0 81.3M 1 loop /snap/gtk-common-themes/1534
loop25 7:25 0 40.9M 1 loop /snap/snapd/20092
loop26 7:26 0 63.5M 1 loop /snap/core20/2015
loop27 7:27 0 91.7M 1 loop /snap/gtk-common-themes/1535
loop28 7:28 0 74.1M 1 loop /snap/core22/1033
sda 8:0 0 893.8G 0 disk
├─sda1 8:1 0 30.5G 0 part [SWAP]
├─sda2 8:2 0 1K 0 part
└─sda5 8:5 0 863.2G 0 part /
sdb 8:16 0 893.8G 0 disk
└─sdb1 8:17 0 893.8G 0 part /work1
sdc 8:32 0 893.8G 0 disk
└─sdc1 8:33 0 893.8G 0 part /work2
sdd 8:48 0 893.8G 0 disk
└─sdd1 8:49 0 893.8G 0 part /work3
sde 8:64 0 893.8G 0 disk
└─sde1 8:65 0 893.8G 0 part /work4
sdf 8:80 0 893.8G 0 disk
└─sdf1 8:81 0 893.8G 0 part /work5
sdg 8:96 0 893.8G 0 disk
└─sdg1 8:97 0 893.8G 0 part /work6
sdh 8:112 0 893.8G 0 disk
└─sdh1 8:113 0 893.8G 0 part /work7
为什么RO和ROTA显示不同的值,哪个是正确的?
第二个屏幕中 RM 表示“可移动”,RO 表示“只读”