Menu

Command line options to create disk with fixed info of disk everytime.

Evgeniy
2019-06-12
2019-06-29
  • Evgeniy

    Evgeniy - 2019-06-12

    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
    • johny why

      johny why - 2019-06-12

      Isn't that the default behavior?

      On Wed, Jun 12, 2019, 12:01 AM Evgeniy roundik@users.sourceforge.net
      wrote:

      How can I create an identical disk every time through the command line so
      that I do not need to re-activate the program?

       
  • v77

    v77 - 2019-06-12

    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.

     
  • v77

    v77 - 2019-06-29

    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.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.