-
Notifications
You must be signed in to change notification settings - Fork 5
Linux Disk
Shuai YUAN edited this page Mar 28, 2022
·
3 revisions
- https://unix.stackexchange.com/questions/65595/how-to-know-if-a-disk-is-an-ssd-or-an-hdd
- Linux下判断磁盘是SSD还是HDD的几种方法
# 1=HDD, 0=SSD
grep ^ /sys/block/*/queue/rotational
dd if=/dev/urandom of=sample.txt bs=64M count=16
mount -o remount rw /mountpoint
1. sudo fdisk -l <--- this tells you the device name i.e. /dev/sdc1 or whatever.
2. umount /dev/sdc1 <--- You MUST unmount the device.
3. sudo fsck -y /dev/sdc1 <--- Automatically fix any issues.