Skip to content

Instantly share code, notes, and snippets.

@jshen28
Created September 12, 2018 07:04
Show Gist options
  • Save jshen28/446736b36a31667eb7e29ff980a70b94 to your computer and use it in GitHub Desktop.
Save jshen28/446736b36a31667eb7e29ff980a70b94 to your computer and use it in GitHub Desktop.
udevadm info -q property -n ${DIKS_OR_PARTION_NAME}
blkid /dev/${DISK_OR_PARTITION_NAME}
@jshen28
Copy link
Author

jshen28 commented Sep 12, 2018

to persistent block device name try this

cat > /etc/udev/rules.d/my-new-rule.rule.rules <<EOF
SUBSYSTEM=="block", ACTION=="add|change", ENV{DEVTYPE}=="disk", ENV{ID_PART_TABLE_UUID}=="c6eaa720-4424-4210-9931-11601cea861e", SYMLINK+="disk/by-dname/sdq"
EOF

refer to this, this and this for more info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment