From 32e6340cddfcc79d11f493111b807f3e9febdefc Mon Sep 17 00:00:00 2001 From: Marc Date: Tue, 2 Nov 2021 06:59:33 +0100 Subject: [PATCH] added script to translate ataX to sdX --- .config/scripts/translate_ata_to_dev.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 .config/scripts/translate_ata_to_dev.sh diff --git a/.config/scripts/translate_ata_to_dev.sh b/.config/scripts/translate_ata_to_dev.sh new file mode 100755 index 0000000..78deb77 --- /dev/null +++ b/.config/scripts/translate_ata_to_dev.sh @@ -0,0 +1,3 @@ +!#/bin/sh + +find -L /sys/bus/pci/devices/*/ata*/host*/target* -maxdepth 3 -name "sd*" 2>/dev/null | egrep block |egrep --colour '(ata[0-9]*)|(sd.*)'