MSFN Forum: Disable file locking - MSFN Forum

Jump to content


Unattended CD/DVD Guide Homepage · MSFN Forum Rules

If you have questions about customizing Windows XP that are nLite-specific, please post them in the nLite forum, not here. If you have questions regarding the unattended installation of Windows XP, please post them in the Unattended Windows 2000/XP/2003 section.
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Disable file locking Rate Topic: -----

#1 User is offline   mraeryceos 

  • Member
  • PipPip
  • Group: Members
  • Posts: 181
  • Joined: 11-April 04

Posted 16 November 2012 - 12:36 PM

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"

This post has been edited by mraeryceos: 16 November 2012 - 01:45 PM



#2 User is offline   Ponch 

  • MSFN Master
  • Group: Patrons
  • Posts: 2,965
  • Joined: 23-November 05
  • OS:none specified
  • Country: Country Flag

Posted 16 November 2012 - 01:44 PM

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

#3 User is offline   mraeryceos 

  • Member
  • PipPip
  • Group: Members
  • Posts: 181
  • Joined: 11-April 04

Posted 16 November 2012 - 01:46 PM

View PostPonch, on 16 November 2012 - 01:44 PM, said:

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 User is offline   uid0 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 348
  • Joined: 12-June 06

Posted 19 November 2012 - 07:43 AM

That's not a goal. Are you trying to back up locked files, or just experimenting with corruption?

#5 User is offline   mraeryceos 

  • Member
  • PipPip
  • Group: Members
  • Posts: 181
  • Joined: 11-April 04

Posted 19 November 2012 - 07:49 AM

My goal is to experiment in corruption. Exactly. I will backup system files, and watch for changes.

#6 User is offline   allen2 

  • Not really Newbie
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,751
  • Joined: 13-January 06

Posted 19 November 2012 - 02:11 PM

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 User is offline   mraeryceos 

  • Member
  • PipPip
  • Group: Members
  • Posts: 181
  • Joined: 11-April 04

Posted 19 November 2012 - 02:17 PM

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.

This post has been edited by mraeryceos: 25 April 2013 - 02:21 AM


#8 User is offline   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 11,576
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 19 November 2012 - 02:19 PM

View Postallen2, on 19 November 2012 - 02:11 PM, said:

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

Quote

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 User is offline   allen2 

  • Not really Newbie
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,751
  • Joined: 13-January 06

Posted 19 November 2012 - 11:41 PM

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

#10 User is offline   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 11,576
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 20 November 2012 - 06:48 AM

View Postallen2, on 19 November 2012 - 11:41 PM, said:

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 User is offline   mraeryceos 

  • Member
  • PipPip
  • Group: Members
  • Posts: 181
  • Joined: 11-April 04

Posted 20 November 2012 - 12:59 PM

View Postjaclaz, on 20 November 2012 - 06:48 AM, said:



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

#12 User is offline   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 11,576
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 20 November 2012 - 02:21 PM

View Postmraeryceos, on 20 November 2012 - 12:59 PM, said:

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 User is offline   mraeryceos 

  • Member
  • PipPip
  • Group: Members
  • Posts: 181
  • Joined: 11-April 04

Posted 25 April 2013 - 02:09 AM

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 File(s)


This post has been edited by mraeryceos: 25 April 2013 - 02:46 AM


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy