Skip to content

Instantly share code, notes, and snippets.

@yufengwng
Created November 24, 2016 15:25
Show Gist options
  • Save yufengwng/dee2d086ff27e3c405cf12cfd36ca78e to your computer and use it in GitHub Desktop.
Save yufengwng/dee2d086ff27e3c405cf12cfd36ca78e to your computer and use it in GitHub Desktop.
Commands for managing usb devices
view device filesystems
$ lsblk -f
view devices
$ udiskctl status
view device info
$ udiskctl info -b /dev/<id>
mount partition
$ udiskctl mount -b /dev/<fs_id>
unmount partition
$ udiskctl unmount -b /dev/<fs_id>
safely remove device
$ udiskctl power-off -b /dev/<dev_id>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment