Disk brush uuid method
1. xfs file system
1. First umount disk
umount /data
2. uuidgen
Generate a random UUID
bdd9713c-2477-4d08-9d8c-08ddf63185f2
3. Modify
xfs_admin -U bdd9713c-2477-4d08-9d8c-08ddf63185f2 /dev/sdb
4. Remount
mount /dev/sdb /data
2. The ext4 file system
tune2fs
is only applicable to the ext2/3/4 file system
1. First umount the disk
umount /data
2. Generate a new UUID and modify it
uuidgen | xargs tune2fs /dev/sdb1 -U
3. Remount
mount /dev/sdb /data
3. View
ls -l /dev/disk/by-uuid
blkid
Original link: https://blog.csdn.net/niaooer/article/details/127736522