Opawesome Posted January 21, 2023 Share Posted January 21, 2023 (edited) Hi all, How can I identify, via command line, which /dev/sdX1 partition corresponds to the /dev/mdYp1 managed partition? The info is on the WebGUI main page but I need to get that info in the context of a script. Many thanks. OP Edited February 20 by Opawesome Quote Link to comment
Opawesome Posted January 21, 2023 Author Share Posted January 21, 2023 (edited) I checked all commands of https://wiki.unraid.net/Console#Console_Commands_for_Hard_Drives as well as the lsblk command, but without any success. Edited January 21, 2023 by Opawesome Quote Link to comment
Opawesome Posted February 20 Author Share Posted February 20 I am bumping up this because I need an answer to complete my LUKS header restore command/script. That would be useful for the community (not only me). See here: Quote Link to comment
Solution JorgeB Posted February 20 Solution Share Posted February 20 If you run blkid with the array started it show show the partition/filesystem IDs for all devices, same ID for an md and sd device is the same disk. 1 Quote Link to comment
Opawesome Posted February 20 Author Share Posted February 20 Oh man, I spent so much time searching for that in vain. Thank you very much ! 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.