我有两个 SAN 设备/dev/sda
和/dev/sdb
;
Disk /dev/sda: 100 GiB, 107374182400 bytes, 209715200 sectors
Disk model: Virtual disk
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 4D63EAE4-196D-4EF2-BACA-2141E63DB0F6
Disk /dev/sdb: 1000 GiB, 1073741824000 bytes, 2097152000 sectors
Disk model: Virtual disk
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
但有时重启后/dev/sda
会挂载/dev/sdb
。我该如何防止它被更改?
普通的
/dev/sda2 ext4 976M 203M 707M 23% /boot
/dev/sdb ext4 984G 9.9G 924G 2% /workspace
异常
/dev/sdb2 ext4 976M 203M 707M 23% /boot
这是/etc/fstab
/dev/disk/by-id/dm-uuid-LVM-K680yYzEVuI9918TZkE1xLA9ArCLzJlDiU7cnVQoJxhLQcn5D4e8Xu05Vs4CWt4P / ext4 defaults 0 0
/dev/disk/by-uuid/a1b97ff4-3862-4c49-8b65-8618dd32f1ff /boot ext4 defaults 0 0
/swap.img none swap sw 0 0
/dev/sdb /workspace ext4 defaults 0 0