ocs-sr: replace DEVICENAME with UUID?
A partition and disk imaging/cloning program
Brought to you by:
steven_shiau
hi.
custom-ocs:
/usr/sbin/ocs-sr -q2 -c -j2 -z1p -i 4096 -fsck -senc -p reboot savedisk sda_$(date +"%y%m%d-%H%M").img sda
does not find the 'right' sda every time,
sometimes a different disk is displayed.
it is possible to replace sda with the UUID, example:
/usr/sbin/ocs-sr -q2 -c -j2 -z1p -i 4096 -fsck -senc -p reboot savedisk sda_$(date +"%y%m%d-%H%M").img UUID=abe00c18-bbb5-458a-907d-06cb249cc987
thank you!
That's true. So that why we need to have UUID for this purpose.
Ref:
https://wiki.archlinux.org/index.php/Udev#Setting_static_device_names
https://wiki.archlinux.org/index.php/Persistent_block_device_naming
"Because udev loads all modules asynchronously, they are initialized in a different order. "
Steven