UNIX Filesystems and Disk Management

Disk Mounting

Mounting a disk, readonly, format auto-detected

mount -oro /dev/$DEVPART /mnt/$PATH

Ejecting a disk, spin-down platter after unmount

udisksctl power-off -b /dev/$DEVICE

File Management

Generate large files

This command writes random data to every byte of the file (densely allocated), and may be slow.

dd if=/dev/random of=$FILE bs=1024 count=$[1024*$MB]

RAID

Status

cat /proc/mdstat

Recovery

References