1.

Solve : Win 7 command prompt Format 2nd Drive Access Denied?

Answer»

Placed this here vs Win 7 since its command prompt.

Trying to format Drive S: in Windows 7 Command Prompt and running into issues. Tried using RUNAS and running into more issues. I am the admin of this system, yet my profile frankenstein doesnt allow for formatting my S: drive without elevated privileges. What am I missing?
Quote

C:\Users\frankenstein>format s: /fs:FAT32
Access Denied as you do not have sufficient privileges.
You have to invoke this utility running in elevated mode.

C:\Users\frankenstein>
Did you try rite clicking command and select "run as admin ? ?

How many Drives/partitions in this PC...
Give us the lay of the land.This is part of my RAMdisk project. The RAMdisk has to be formatted upon every reboot since the formatting is wiped out when the system is shut down. So my plan is to write a batch file that performs a FAT32 Format so that the S: drive is ready to roll when the system is running. This batch file will be called by STARTUP and will perform this format when Windows 7 boots.

This system is my test system with 1 physical hard drive 160GB IDE at C: and a virtual hard drive which is an allocated section of system RAM that is 810MB in size mapped as S: to the OS. Only other drive is DVD-RW as D:

Digging in runas on windows 7 command prompt a google search suggested using an elevated trust level, but i only have 1 as shown below.

C:\Users\frankenstein>runas /showtrustlevels
The following trust levels are available on your system:
0x20000 (Basic User)
C:\Users\frankenstein>http://social.technet.microsoft.com/Forums/en-US/w7itprosecurity/thread/cd82780b-6afa-4404-8515-5d646a5623de/

This link on google doesnt look too good with what i want to do, but there has to be a way to make this work.

Attached are pics of before and after formatting it FAT32. Really hoping to be able to do this at start up vs having to manually format each time I want to use RAMdisk.

[year+ old attachment DELETED by admin]What ramdisk driver are you using, and is it able to do a format on create? The ramdisk driver most likely requires administrative privilege to mount a device object and should be able to format it.AR RAM Disk V1.20 is no longer supported but if it works then the drive is automatically created on each boot.Yes its AR Ramdisk that I'm using. Played with it some and strangely that if the drive created is small in size it keeps its formatting such as a 24MB held the formatting as FAT32 after a reboot, yet 810MB loses its info on SHUTDOWN or reboot. I was impressed that it was written for XP and worked ok on Windows 7 32 bit. Was thinking that if I can Format S: /fs:FAT32 on each boot as part of startup that it would be almost like initializing this space to be clean and ready to roll. If formatting is lost it will ensure that its formatted and ready to be accessed at S:Try the different disk options. Is there an option for NTFS (I don't use a ram disk these days).NTFS not supported as this pic shows it doesnt like NTFS formatting. FAT32 works, but thats probably why i am getting security issue requiring elevated privilages, NTFS would probably allow it more than FAT32 through inherritance if NTFS would work.

[year+ old attachment deleted by admin]AR RAM disk doesn't need formatting - if it's working ok. Maybe it's just not win 7 compatible. Try a different Ram disk.Try sizing it at or below 768MG...Do you have these options selected? The Ram disk option never worked for me.

This is from the XP box...

[year+ old attachment deleted by admin]Found a better solution. Went with different vendor for solution. Went with DataRAM Ramdisk VERSION 4.0.0 and this saves the formatting so no having to reformat each time etc and it has options to save to Hard Drive from Ram before shutdown as well as LOAD from HD to RAM on startup. So no batching required now I guess.

Thanks Everyone for your input on this! Cool Beans...


Discussion

No Comment Found