我的 Linux 服务器运行的是 Ubuntu 18.04.5 内核版本Linux myserver 5.4.0-66-generic #74~18.04.2-Ubuntu SMP Fri Feb 5 11:17:31 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux'
。
我在系统上安装了 SSD 设备。但命令输出显示它是 HDD。我应该怎么做才能正确更改它?
从运行模式来看,我可以看到这是 SSD。
Name Solid State Disk 0:1:2
Bus Protocol SATA
Media Type SSD
State Online
Size 1787.88 GB
Used RAID Disk Space 1787.88 GB
从 Ubuntu 操作系统中,它被识别为 HDD,例如1
通过旋转;
# lsblk -d -o name,rota
NAME ROTA
loop0 1
sda 1
sdb 1
sdc 1
sr0 1
# cat /sys/block/sda/queue/rotational
1
# cat /sys/block/sdb/queue/rotational
1
# cat /sys/block/sdc/queue/rotational
1
附加信息。
Disk /dev/sdc: 1.8 TiB, 1919716163584 bytes, 3749445632 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x98bff556
Device Boot Start End Sectors Size Id Type
/dev/sdc1 2048 3749445631 3749443584 1.8T 83 Linux
# /etc/fstab
/dev/disk/by-uuid/da4c4f67-67ad-4775-8bc9-22401cbca7e9 / ext4 defaults 0 0
/swap.img none swap sw 0 0
# /srv was on /dev/sdb1
UUID=2a812ea1-4cd3-4c20-9b58-60b9efd4543a /srv ext4 defaults 0 0
# /data was on /dev/sdc1
UUID=f8457ea1-09f8-416e-9bd3-361cf3a5229a /data ext4 defaults 0 0