Linux Disk - yszheda/wiki GitHub Wiki

SSD


# 1=HDD, 0=SSD
grep ^ /sys/block/*/queue/rotational

Backup

FSArchiver

dd

dd if=/dev/urandom of=sample.txt bs=64M count=16

Trouble-shooting

read-only file system

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.