IPB

Welcome Guest ( Log In | Register )

Recommended
BootDisk.com

Active Users

2 Pages V   1 2 >  
Reply to this topicStart new topic
RamDisk (ImDisk) - calculate size, Calculate size RamDisk
nikzzzz
post Aug 21 2008, 08:23 AM
Post #1


Advanced Member
***

Group: .script developer
Posts: 152
Thank(s): 7
Joined: 10-October 06
Member No.: 711


Russia


The automatic choice of the size of a disk is not absolutely correct - the memory necessary for job of system is not considered.
For its small memory can not suffice, for big it is used irrationally (small RamDisk).
Bat-File Calculation of the size RamDisk.
CODE
@echo off
:: %1=MountPoint %2=FileSystem %3=MinSize %4=Reserv %5=Size %6=Unit %7=label %8=Pack
:: MinSize - The minimum size RamDisk
:: Reserv -  It is reserved under system
set FileSystem=%2
set Pack=%8
:: The rigid size
if "%6"=="M" (
  set "Size=%5"
  goto _1
)
:: Calculation of the size
for /f "usebackq skip=1 tokens=3 delims=: " %%i in (`RamStatus.exe`) do set size=%%i
set /a size=%size%/1024
set /a "size=(%size%-%4)*%5/100"
if %size% lss %3 set size=%3
:_1
::There is no sense to use NTFS for small disks
if %size% lss 16 set "FileSystem=fat"
:: Packing is incompatible with FAT  
if "%FileSystem%"=="fat" set "Pack= "
imdisk.exe -a -t vm -m %1 -s %size%M -p "/fs:%FileSystem% /q /y /v:%7 %Pack%"


[attachment=6160:ImDisk.7z]

Regards,
Nikzzzz.
Go to the top of the page
 
+Quote Post
The Following 1 Users Say Thank You to nikzzzz For This Useful Post:
Nuno Brito
Galapo
post Aug 22 2008, 04:34 AM
Post #2


Advanced Member
***

Group: .script developer
Posts: 1,783
Thank(s): 86
Joined: 16-July 06
From: Sydney
Member No.: 11


Australia


Hi Nikzzzz,

Nice idea!

The ImDisk script base you used was a little out-of-date, so I added your additions to the latest. Version 16 is now on the LiveXP server.

Regards,
Galapo.
Go to the top of the page
 
+Quote Post
The Following 2 Users Say Thank You to Galapo For This Useful Post:
Nuno Brito, Nuno Brito
nikzzzz
post Aug 22 2008, 08:38 AM
Post #3


Advanced Member
***

Group: .script developer
Posts: 152
Thank(s): 7
Joined: 10-October 06
Member No.: 711


Russia


QUOTE (Galapo @ Aug 22 2008, 05:34 AM) *


Not essentially - ufat.dll copied in two places ([Process] and [FastFat])
ImDisk updated to version 1.03 (in a script - 1.02), fixed considerable bugs.

Can be to combine scripts Imdisk and TempPe?

Regards,
Nikzzzz.
Go to the top of the page
 
+Quote Post
Galapo
post Aug 22 2008, 08:45 AM
Post #4


Advanced Member
***

Group: .script developer
Posts: 1,783
Thank(s): 86
Joined: 16-July 06
From: Sydney
Member No.: 11


Australia


I'll have to update the update!
Go to the top of the page
 
+Quote Post
Galapo
post Aug 23 2008, 11:33 AM
Post #5


Advanced Member
***

Group: .script developer
Posts: 1,783
Thank(s): 86
Joined: 16-July 06
From: Sydney
Member No.: 11


Australia


I've uploaded a new version which deletes one of the references to ufat.dll and updated to latest imdisk version.

QUOTE (nikzzzz @ Aug 22 2008, 06:38 PM) *
Can be to combine scripts Imdisk and TempPe?


Maybe, but I guess I like providing the option of including imdisk in the build (necessary, say, for WimPack with vmdk option) but wher %temp% is on %systemdrive%. In this case, TempPE would set %temp% to %systemdrive% and so would not install imdisk. So perhaps best to keep them separate.

Regards,
Galapo.
Go to the top of the page
 
+Quote Post
nikzzzz
post Sep 4 2008, 11:35 PM
Post #6


Advanced Member
***

Group: .script developer
Posts: 152
Thank(s): 7
Joined: 10-October 06
Member No.: 711


Russia


Small addition - Shortcut in the menu administration.
Attached File  ImDisk.7z ( 89.53K ) Number of downloads: 7

Regards,
Nikzzzz.
Go to the top of the page
 
+Quote Post
Galapo
post Sep 5 2008, 12:15 AM
Post #7


Advanced Member
***

Group: .script developer
Posts: 1,783
Thank(s): 86
Joined: 16-July 06
From: Sydney
Member No.: 11


Australia


Hi Nikzzzz,

Thanks for that. I've increased the version number and uploaded to the LiveXP server.

Regards,
Galapo.
Go to the top of the page
 
+Quote Post
Lancelot
post Sep 5 2008, 01:42 AM
Post #8


Bug Catcher
***

Group: Advanced user
Posts: 675
Thank(s): 48
Joined: 8-May 08
Member No.: 15,072


Turkey


Hi Nikzzzz,

Thanks for imdisk (IMG:../forums/style_emoticons/default/smile.gif)

I have a wish for imdisk,

I tried to create pagefile on ramdisk (6mb) to make pagefile required utility work easly, but creating on ramdisk or mounted bootsdi image failed, creating on existing disk success.

Galapo wrote before:
QUOTE
I think the reason why the pagefile cannot be created on ramdrive in LiveXP is that default ramdrive is created by ImDisk. ImDisk disks aren't listed under 'System\MountedDevices' and so the pagefile is not created.


is it possible to have imdisk mounted drives on 'System\MountedDevices' (IMG:../forums/style_emoticons/default/rolleyes.gif)
Go to the top of the page
 
+Quote Post
Galapo
post Sep 5 2008, 02:32 AM
Post #9


Advanced Member
***

Group: .script developer
Posts: 1,783
Thank(s): 86
Joined: 16-July 06
From: Sydney
Member No.: 11


Australia


QUOTE (Lancelot @ Sep 5 2008, 11:42 AM) *
is it possible to have imdisk mounted drives on 'System\MountedDevices' (IMG:../forums/style_emoticons/default/rolleyes.gif)

No, it would require a re-write and change of logic by the imdisk driver.

I'm not sure of any way, on the other hand, of being able to "trick" a pagefile into being created on an imdisk ramdrive given the way imdisk works (partition mounting vis-a-vis disk mounting).

Regards,
Galapo.
Go to the top of the page
 
+Quote Post
Lancelot
post Sep 5 2008, 03:03 AM
Post #10


Bug Catcher
***

Group: Advanced user
Posts: 675
Thank(s): 48
Joined: 8-May 08
Member No.: 15,072


Turkey


Thanks for clearing that out of my mind Galapo (IMG:../forums/style_emoticons/default/cheers.gif) (IMG:../forums/style_emoticons/default/thumbup.gif)
Go to the top of the page
 
+Quote Post
« Next Oldest · Development · Next Newest »
 

2 Pages V   1 2 >
Fast ReplyReply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 

Display Mode: Standard · Switch to: Linear+ · Switch to: Outline

Track this topic · Email this topic · Print this topic · Subscribe to this forum

RSS Lo-Fi Version Time is now: 12th October 2008 - 08:50 AM

W3C XHTML • © 2008 Boot Land • All rights reserved • W3C CSS