add NOTES.md

This commit is contained in:
Simon Gardling 2025-05-28 23:32:21 -07:00
parent 7c217d6ead
commit 7052818ffa
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D

7
NOTES.md Normal file
View File

@ -0,0 +1,7 @@
## List drives in external usb bay
fish shell script:
```fish
find /dev/disk/by-id -name "usb*" | grep -v "part[0-9]\$" | while read drive; lsblk -no model,serial $drive | head -n1 | tr -d '\n' | tr " " "_" && echo -e " $(echo $drive | cut -d':' -f2-)"; end | column -t --table-columns=DRIVE,BAY | sort -n -k 2
```