Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

Disable file locking

- - - - -

  • Please log in to reply
12 replies to this topic

#1
mraeryceos

mraeryceos

    Member

  • Member
  • PipPip
  • 190 posts
  • Joined 11-April 04
Is there a way to disable file locking, system-wide, for windows xp or 7?
http://en.wikipedia....ki/File_locking
I am willing to risk the "interceding update problem"

Edited by mraeryceos, 16 November 2012 - 01:45 PM.



How to remove advertisement from MSFN

#2
Ponch

Ponch

    MSFN Junkie

  • Patrons
  • 3,314 posts
  • Joined 23-November 05
  • OS:none specified
  • Country: Country Flag
Can you be more precise about your goal ? Unlocker does a pretty good job and there is a portable version.

#3
mraeryceos

mraeryceos

    Member

  • Member
  • PipPip
  • 190 posts
  • Joined 11-April 04

Can you be more precise about your goal ? Unlocker does a pretty good job and there is a portable version.

I changed the question: added "system-wide"

#4
uid0

uid0

    Advanced Member

  • Member
  • PipPipPip
  • 357 posts
  • Joined 12-June 06
That's not a goal. Are you trying to back up locked files, or just experimenting with corruption?

#5
mraeryceos

mraeryceos

    Member

  • Member
  • PipPip
  • 190 posts
  • Joined 11-April 04
My goal is to experiment in corruption. Exactly. I will backup system files, and watch for changes.

#6
allen2

allen2

    Not really Newbie

  • Member
  • PipPipPipPipPipPipPip
  • 1,814 posts
  • Joined 13-January 06
Then the "easiest" way is to use something that will backup all files opened and the possible ways of doing this are:
- using a SAN and taking a snapshot of the drives. But for most people it isn't easy to put it and might need a lot of money to create/buy a SAN.
- using a virtual machine and snapshot the virtual drive but you'll need to disable the tools (like some part of vmware tools for Vmware VM) that synchronize the snapshots with the guest OS using vss (not for XP as vss doesn't exist for xp).

#7
mraeryceos

mraeryceos

    Member

  • Member
  • PipPip
  • 190 posts
  • Joined 11-April 04
Since there doesn't appear to be a registry setting, like in Win9x (see http://www.pctools.c...try/detail/218/), I was hoping for a cracked version of windows files that have the file locking disabled. I believe this would be kernel32.dll, that contains routines FileLock and FileLockEx. If these routines do nothing when called, then there would be no file locking.

Edited by mraeryceos, 25 April 2013 - 02:21 AM.


#8
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,803 posts
  • Joined 23-July 04
  • OS:none specified
  • Country: Country Flag

OS using vss (not for XP as vss doesn't exist for xp).

Are you sure XP does not have vss? :w00t: :unsure:
http://msdn.microsof...2(v=vs.85).aspx

Run-time requirements

VSS is supported on Microsoft Windows XP and later.

(learning that all these years I've been using something that doesn' t exist may be too much a shock for my poor, old heart :ph34r: )

jaclaz

#9
allen2

allen2

    Not really Newbie

  • Member
  • PipPipPipPipPipPipPip
  • 1,814 posts
  • Joined 13-January 06
Thanks for correcting Jaclaz (i suppose i was thinking about windows 2000 when i wrote this).

#10
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,803 posts
  • Joined 23-July 04
  • OS:none specified
  • Country: Country Flag

Thanks for correcting Jaclaz (i suppose i was thinking about windows 2000 when i wrote this).

Yep ,the "biggest chunk" of changes was introduced with XP, and this is IMHO the reason why Ken Kato's VDK worked perfectly with 2K and sometimes could not be stopped/uninstalled/reinstalled/restarted in XP (and this could suggest that the VSS subsystem actually introduces some added "locking" at least with disk objects).

Back to topic, never heard of a "disabled file locking" kernel :ph34r:, maybe for the sake of the tests getting higher privileges (System) might be enough? :unsure:

Just in case:
http://www.grubletra...ftwareList.aspx
http://www.grubletra...app=PowerPrompt

jaclaz

#11
mraeryceos

mraeryceos

    Member

  • Member
  • PipPip
  • 190 posts
  • Joined 11-April 04

http://www.grubletrang.com/SoftwareList.aspx
http://www.grubletra...app=PowerPrompt


Nice. Not what I was looking for, but nice.

#12
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,803 posts
  • Joined 23-July 04
  • OS:none specified
  • Country: Country Flag

Nice. Not what I was looking for, but nice.

JFYI, same or similar for Vista :ph34r: or later:
http://www.msfn.org/...ustedinstaller/
http://reboot.pro/in...showtopic=17501

jaclaz

#13
mraeryceos

mraeryceos

    Member

  • Member
  • PipPip
  • 190 posts
  • Joined 11-April 04
I am using Carbonite as a real-time backup program, and was hoping to keep VSS disabled on WinXP.

This is a file patcher for Windows XP SP2 (and likely SP3) and Windows 7 SP1, that will partially disable file locks. Unfortunately, even with the hack to disable file locks, Carbonite was still locking files while I was trying to work with them. If it had worked, I wouldn't have minded the occasional corrupted file in the versioning backup (in the rare case where Carbonite was reading as a file was being written to).

Attached Files


Edited by mraeryceos, 25 April 2013 - 02:46 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users