Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Activate new disk automatically as early as possible

18 Nov 2012   #1

Windows 7 Professional x64
Activate new disk automatically as early as possible

I have a Gigabyte GC-Ramdisk (4GB) which regularly loses format when left overnight. (Despite new battery). I use it for temp and page files.
Is there any way I can activate the disk automatically on boot (running diskpart possibly) preferably before logon.
Ideally I'd like to run a script to format as well.
If not possible before logon then where is the best startup location to trigger a script to ensure it is done early.
Any help or suggestions are appreciated.

PS. My best guess so far is to use a powershell script on startup.
All I've got to do now is learn how. - I'm a Dos man.

My System SpecsSystem Spec
18 Nov 2012   #2
Microsoft MVP

Vista, Windows7, Mint Mate, Zorin, Windows 8

Why would you put a pagefile on a RAM-disk. That pagefile is probably never used because you apparently have a lot of RAM. You can easily reduce the pagefile to 1 or 2GB and leave it with the system.

PS: Sorry, I have no solution for your initialization problem.
My System SpecsSystem Spec
18 Nov 2012   #3

Windows 7 Professional x64

The GC-Ramdisk is not a virtual disk, its a hard disk connected to SATA port. It uses its own ram sticks over and above the 16GB conventional ram.

Makes a very fast electronic drive for scratch files
My System SpecsSystem Spec

18 Nov 2012   #4
Microsoft MVP

Vista, Windows7, Mint Mate, Zorin, Windows 8

I understand that. But the pagefile is the last file I would put there. It is never used.
My System SpecsSystem Spec
18 Nov 2012   #5

Windows 7 Professional x64

Quote   Quote: Originally Posted by whs View Post
I understand that. But the pagefile is the last file I would put there. It is never used.
I wouldn't say never, rarely perhaps :)

Either way I want to re-activate the drive as early as possible.

Looks like my best option is going to be a powershell script.
Better do some reading then.
My System SpecsSystem Spec
19 Nov 2012   #6
Microsoft MVP


Please post back a screenshot of your maximized Disk Management drive map and listings:

1. Type Disk Management in Start Search box.
2. Open Disk Mgmt. window and maximize it.
3. Type Snipping Tool in Start Search box.
4. Open Snipping Tool, choose Rectangular Snip, click New, draw a box around full drive map and all listings.
5, Save Snip, attach using paper clip in Reply Box.

Tell us what is on each partition.
My System SpecsSystem Spec
19 Nov 2012   #7

Windows 7 Professional x64

Hi Gregrocker
Thanks for your help.
Not sure what relevance information that would give, only that I have 5 basic disks,
System Disk: 1, 2 NTFS partitions. System Reserved and C: drive.
Drives 0, 2,3 & 4 are each a Single NTFS partition.

Doesn't even identify which is the GC-Ramdisk as it is indistinguishable from a normal hard drive by Windows .
FYI it is drive 3 mapped as T: and used exclusively for scratch files.

The issue is with the actual storage media being RAM I have to regularly activate and reformat it on boot as the its internal battery (brand new) only maintains it for about 4 hours after switch off. It gets is power from the PCI slot and is supposed to be maintained by the 5v standby voltage but I presume this is not man enough to support the 4x 1GB Ram sticks
So Windows then treats it as a new non-activated drive

I currently activate and format it manually after logon then reboot to allow windows to automatically create pagefile, temp/scratch file directories etc. which is a real nuisance.

(In Linux I do not have the problem as I can automate it very early on during startup.)
If you think there is any other relevant info in the Disk Management window please ask or if required I will post a screenshot.
My System SpecsSystem Spec
19 Nov 2012   #8

Windows 7 Professional x64

Have a look here.

GIGABYTE - PC Components - - Legacy - GC-RAMDISK

Picked this card up for less than 2 bucks on ebay, added 4 1GB of sticks which were lying around in a drawer.
Very fast drive, only limted by Sata 1, with a sustained read/write only matched by my SSD on SATA 3.
I use it for temp files
However being volatile memory it looses everything on power down, hence the onboard battery and supposed 5v standby use which doesn't work.
Not worried about the data, but would like to activate and format it automatically.
Not a problem with Linux, so why can't I do it in Windows.
My System SpecsSystem Spec
19 Nov 2012   #9

Win 7 Pro 64-bit 7601

Yeah, that was an old attempt at making better hard drives. Failed, and it's kind of sad.
The main reason it failed? you can now install a buttload of ram on the motherboard which is much faster, and run some of it as virtual ramdisk. Now even with dynamic ram usage (although you have to pay some $).

Windows 7 has an integrated task scheduler for these kinds of things, but I frankly never used, so it's up to you tinker and get it working and do what you need. If the scheduler cannot be ordered to format on its own you may have to write a script, which should be relatively easy, as "format" is still a recognized console command.
My System SpecsSystem Spec
19 Nov 2012   #10

Windows 7 Professional x64

at less than $2 to purchase, its of use - in addition to my "buttload of ram".
It should be possible to use a boot-loader such as grub4dos boot-loader to set it up before Windows loads but that seemed a bit extreme.
Ideally wanted initialise a script pre logon.
I think I'll try a powershell script anyway see what hapens
My System SpecsSystem Spec

 Activate new disk automatically as early as possible

Thread Tools

Similar help and support threads
Thread Forum
How do I activate an upgrade disk that was used for a fresh install?
Hi, I used an upgrade disk for windows 7 Home Premium 64 bit version. I can not use the activation code since it gives me the error that the code is upgrade only. I have been running off the grace period and I'm wondering if there is a way for me to make it genuine without having to reinstall...
Windows Updates & Activation
Unable to Activate Win 7 - Used OEM Key with non-OEM disk 0XC004E003
Hi, I have a Toshiba Satellite Pro C660-2CN laptop, running Windows 7 Home Premium 64 bit. I didn't have a recovery disk and have had to do a new installation as the laptop was running slow and it was a last resort. What I didn't realise is that I needed a recovery disk as I have since found...
Windows Updates & Activation
Re-Activate Windows Disk Diagnostic Pop-Up Message
Yesterday, I started getting the pop-up error message regarding a potential failure on Drive D: Windows Disk Diagnostic detected a S.M.A.R.T. fault on disk WDC WD30 00GLFS-01F8U SCSI Disk Device (volumes D:\). This disk might fail; back up your computer now. I selected the option to not...
Hardware & Devices
Can I install from EDU disk & activate with retail keys
I have 4 copies of Windows 7 Home Premium on pre-order that should be delivered within the next few days. I also purchased the $30 "Educational" download of Windows 7 Home Premium, downloaded it, and created a DVD. I was able to install the EDU version without incident on one PC, however I...
General Discussion
Full Disk to install activate via upgrade key
I have a question for everybody out there. I recently bought the full retail Windows 7 Home Premium, I installed it on my pc and everything is going great. I also have a copy of the upgrade offered to students and a valid key for that. My brother wants to install Windows 7 on his comp (He's...
Installation & Setup

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 23:18.
Twitter Facebook Google+