Подключенные устройства меняют значение / dev / sd

223
Cybex

У меня есть скрипт, который автоматически монтирует мой раздел Windows на основе UUID,

причина : мои подключенные устройства меняют свою /dev/sdстоимость.

После загрузки, мой внешний жесткий диск может взять на себя /dev/sdaили /dev/sdb,

Что вызывает изменение этих значений?

0

1 ответ на вопрос

0
L. Levrel

/dev/sdX nodes are not supposed to be numbered always the same. They are added as and when the system "sees" them appear. If two devices take about the same time to start up, there may be a kind of race condition in the attribution of device nodes.

Your method is the good one. One may as well use label, id, or hardware path, see

ls /dev/disk/by-* 

Похожие вопросы