This document is a WORK IN PROGRESS.
This is just a quick personal cheat sheet: treat its contents with caution!
Disks¶
TODO: split this cheat sheets in multiple dedicated ones (one per command).
Reference(s)
Table of contents¶
udisksctl
¶
Turn off a disk after unmounting it:
$ sudo udisksctl unmount -b /dev/disk/by-label/disklabal && sudo udisksctl power-off -b /dev/disk/by-label/disklabal
df
¶
- Check disks space:
TODO
du
¶
TODO
lsblk
¶
- Check disks partitions:
ncdu
¶
- Browse disks space:
mount
/umount
¶
-
Mount an NTFS disk with
755
permissions for directories and644
for files: -
Mount a CIFS disk (e.g. samba server?) (⚠️ Prerequisite package for Ubuntu:
cifs-utils
): -
Unmount a disk:
-
Eject a disk:
-
Very safe way to unplug HDD by putting it in sleep mode first:
If this cheat sheet has been useful to you, then please consider leaving a star here.