Hello!
I have software that is activated-linked to disk information, such as disk name, ID, and maybe something else.
How can I create an identical disk every time through the command line so that I do not need to re-activate the program every time?
Thanks!
Last edit: Evgeniy 2019-06-12
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
As far as I know, for a simple volume (not a disk partition), except the time stamp of NTFS system files, the only thing that can change is the serial number returned by the "vol" command.
This value is generated by the system at formatting, and it changes depending on the date and time.
I did not find any API or official documentation to change it. Of course it is possible, by directly modifying the bytes at the proper offset in the volume, but this hack needs to be properly tested.
Moreover, I am not sure that it will work with NTFS.
I will take a closer look on this issue.
For now, there are 2 things you can do :
- Create an image file of you ramdisk (right click on the drive letter in Explorer) and then use it to load data at startup (3rd tab in the RamDisk Configuration Tool). Of course, this will noticeably slow down the ramdisk creation.
- Use an external tool such as VolumeID.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
VolumeID works well for FAT file systems, but not with NTFS. It seems that the NTFS driver keeps a cache of this value.
I don't see a clean workaround for this issue that would work in any case.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello!
I have software that is activated-linked to disk information, such as disk name, ID, and maybe something else.
How can I create an identical disk every time through the command line so that I do not need to re-activate the program every time?
Thanks!
Last edit: Evgeniy 2019-06-12
Isn't that the default behavior?
On Wed, Jun 12, 2019, 12:01 AM Evgeniy roundik@users.sourceforge.net
wrote:
As far as I know, for a simple volume (not a disk partition), except the time stamp of NTFS system files, the only thing that can change is the serial number returned by the "vol" command.
This value is generated by the system at formatting, and it changes depending on the date and time.
I did not find any API or official documentation to change it. Of course it is possible, by directly modifying the bytes at the proper offset in the volume, but this hack needs to be properly tested.
Moreover, I am not sure that it will work with NTFS.
I will take a closer look on this issue.
For now, there are 2 things you can do :
- Create an image file of you ramdisk (right click on the drive letter in Explorer) and then use it to load data at startup (3rd tab in the RamDisk Configuration Tool). Of course, this will noticeably slow down the ramdisk creation.
- Use an external tool such as VolumeID.
VolumeID works well for FAT file systems, but not with NTFS. It seems that the NTFS driver keeps a cache of this value.
I don't see a clean workaround for this issue that would work in any case.