VOGONS


First post, by superfury

User metadata
Rank l33t++
Rank
l33t++

I know that Windows 3.1 and up as well as Windows 95 try to use it. But does turning off the computer/emulator corrupt the hard drive(disk image or real drive) when it's loaded? Or does it just buffer disk reads, while writes are written immediately to disk?

Edit: Found the answer already: http://info.wsisiz.edu.pl/~bse26236/batutil/help/SMTDRVS.HTM

Apparently running it with the /C switch is required before turning the machine off(to prevent disk corruption)?

Author of the UniPCemu emulator.
UniPCemu Git repository
UniPCemu for Android, Windows, PSP, Vita and Switch on itch.io

Reply 1 of 10, by BloodyCactus

User metadata
Rank Oldbie
Rank
Oldbie

better yet, load with /X to disable write cache and never worry about it!

there is also 'shutdown' utility from blacklight, 'shutdown s' will fush cache (smarterdrive+ncache2) and do a shutdown with atx.

http://dosprograms.info.tt/download/shut12.zip

--/\-[ Stu : Bloody Cactus :: [ https://bloodycactus.com :: http://kråketær.com ]-/\--

Reply 3 of 10, by kixs

User metadata
Rank l33t
Rank
l33t

I've never did anything special when powering off the computer and I always used some disk caching program (smartdrv, pc-cache...). Just turn the switch OFF

Requests are also possible... /msg kixs

Reply 7 of 10, by superfury

User metadata
Rank l33t++
Rank
l33t++

I might have made a mistake on smartdrive in terminating the emulator for a disk reboot backup when the rebooting started(screengot jumbled up) before smartdrive got the chance to flush it's caches to disk:S

Author of the UniPCemu emulator.
UniPCemu Git repository
UniPCemu for Android, Windows, PSP, Vita and Switch on itch.io

Reply 8 of 10, by peterferrie

User metadata
Rank Oldbie
Rank
Oldbie

Yes, if write-caching is enabled, then without the /C switch, you'll have original content instead of updated content; or in some cases, directory entries created but no backing file or incomplete FAT links, etc.

Reply 9 of 10, by NJRoadfan

User metadata
Rank Oldbie
Rank
Oldbie

Windows 3.11 doesn't use smartdrv at all if "32-bit File Access" is enabled, it uses its own 32-bit protected mode caching driver. Same goes for Windows 9x by default.

Smartdrv should automatically flush the write cache when a command is complete (when the DOS prompt reappears), unless the "/N" switch is used. So technically if the system is sitting at a DOS prompt, it should be safe to turn off. Honestly the write cache under an emulated environment is more hassle then its worth, particularly if the host OS is handling it anyway. FWIW, I always turn it off in modern versions of Windows for computers that don't have a battery backup, you WILL lose data otherwise.

Reply 10 of 10, by tpowell.ca

User metadata
Rank Member
Rank
Member
NJRoadfan wrote:

Smartdrv should automatically flush the write cache when a command is complete (when the DOS prompt reappears), unless the "/N" switch is used.

This.

SMARTDRV will only use delayed writes with the /N switch.
Thus its safe to turn off your machine anytime* with SMARTDRV loaded unless you load the /N switch, in which case you should wait a few seconds or flush the write cache manually with the /C switch.

*anytime assumes that the machine isn't actively writing to the disk.

  • Merlin: MS-4144, AMD5x86-160 32MB, 16GB CF, ZIP100, Orpheus, GUS, S3 VirgeGX 2MB
    Tesla: GA-6BXC, VIA C3 Ezra-T, 256MB, 120GB SATA, YMF744, GUSpnp, Quadro2
    Newton: K6XV3+/66, AMD K6-III+500, 256MB, 32GB SSD, AWE32, Voodoo3