Jump to content











Photo
- - - - -

Auto format on reboot


  • Please log in to reply
2 replies to this topic

#1 tyommik

tyommik
  • Members
  • 3 posts
  •  
    Russian Federation

Posted 13 October 2017 - 02:32 PM

Hello!
Is there an opportunity for automatic format ram-disk to ntfs every windows boot when it is created by CLI-interface?
I used this command:

C:\Windows\system32\imdisk.exe -a -s 512M -m R: -p "/fs:ntfs /q /y" -P

But after every reboot I have to format disk manually :(
When I create disk from GUI it's persistance and formated automatically in ntfs.



#2 cbeerse

cbeerse
  • Members
  • 5 posts
  •  
    Netherlands

Posted 08 November 2017 - 09:32 PM

Hello!
Is there an opportunity for automatic format ram-disk to ntfs every windows boot when it is created by CLI-interface?
I used this command:

C:\Windows\system32\imdisk.exe -a -s 512M -m R: -p "/fs:ntfs /q /y" -P

But after every reboot I have to format disk manually :(
When I create disk from GUI it's persistance and formated automatically in ntfs.

The best shot I can give you on this is to create an image of your empty disk. This wil consume a couple of kilobytes on your system since it is empty (mostly zero). Then just use this disk image to create your ramdisk, then it is fully suited for your needs.

 

On the other hand, you can add the commands to initialize the disk after you create it. As far as I know, 'diskpart' is your commandline tool.



#3 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 09 November 2017 - 07:13 PM

The best shot I can give you on this is to create an image of your empty disk. This wil consume a couple of kilobytes on your system since it is empty (mostly zero). Then just use this disk image to create your ramdisk, then it is fully suited for your needs.

 

On the other hand, you can add the commands to initialize the disk after you create it. As far as I know, 'diskpart' is your commandline tool.

Diskpart won't see a IMDISK created "disk" (basically because IMDISK - notwithstanding the name - doesn't create any disk, but only a volume and it "hooks" at a higher level than what disk manager, diskpart are, i.e. partmgr.sys is not involved).

 

Olof has written the Arsenal Image Mounter that is actually a miniport driver and that can create actual (virtual) disks (accessible/viewable in disk manager and diskpart).

 

The member you replied too was given anyway an appropriate answer, the issue was not about creating (and formatting) a new disk, only to do that automatically at each boot, JFYI:

http://reboot.pro/to...matted-at-boot/

 

:duff:

Wonko






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users