The latest documentation can be found: here
I hereby claim:
- I am brahman81 on github.
- I am kranon (https://keybase.io/kranon) on keybase.
- I have a public key ASDHZl7T6Xa0pNLlSB1kWTzBcF4uZqbNy86nhQZO5lhgHgo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Inspired by https://github.com/oogali/ebs-automatic-nvme-mapping | |
# Thanks Oogali! | |
# Tested on Ubuntu 16.04 | |
# To be used with the below udev rule (/etc/udev/rules.d/99-ebs-nvme.rules) | |
# SUBSYSTEM=="block", KERNEL=="nvme[0-9]*n[0-9]*", ATTRS{model}=="Amazon Elastic Block Store", PROGRAM+="/usr/local/sbin/nvme-mapping.sh /dev/%k" SYMLINK+="%c" | |
if [[ -x /usr/sbin/nvme ]] && [[ -b ${1} ]]; then | |
# capture 32 bytes at an offset of 3072 bytes from the raw-binary data | |
# not all block devices are extracted with /dev/ prefix |