find /sys/block/ -mindepth 2 -maxdepth 2 -type d -name sda5 |cut -d/ -f4
Антон, наверное это уже не актуально?
Кажется, да