gekoch Posted July 18, 2021 Share Posted July 18, 2021 (edited) Hy After each boot the mount points for each disks are different. For the array this is not a problem but for one script that adjusts the Fans inside the server according to the temperature of each hdd. I read the temp etc by accessing the add via the mount point (sdi, deg etc.) But every reboot of the server I need to adjust the script to fit the new mounting points. Why are they always different and don't stay the same? How can I fix this? Edited July 19, 2021 by gekoch Quote Link to comment
itimpi Posted July 18, 2021 Share Posted July 18, 2021 You can never assume that the /dev/sdX type device names will not changed as they are assigned dynamically by Linux during the boot process. If you want invariant names use something from the ‘dev/by-* family. Quote Link to comment
gekoch Posted July 18, 2021 Author Share Posted July 18, 2021 (edited) thx yes /dev/by- would be a solution however I can't se any "by-" devices... EDIT: ah sorry it was under "/dev/disk/by-" Edited July 18, 2021 by gekoch Quote Link to comment
itimpi Posted July 18, 2021 Share Posted July 18, 2021 23 minutes ago, gekoch said: thx yes /dev/by- would be a solution however I can't se any "by-" devices... EDIT: ah sorry it was under "/dev/disk/by-" Glad you found it despite my slightly incorrect path 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.