A computer-implemented method for garbage collection in deduplicated data systems, at least a portion of the method being performed by a computing device comprising at least one processor, the method comprising: identifying a deduplicated data system that reduces storage space for files made of segment objects by referencing unique segment objects; characterised by: identifying at least one segment object added to the deduplicated data system during a garbage-collection process of the deduplicated data system, the garbage-collection process comprising a process for deleting unreferenced segment objects in the deduplicated data system; locking the segment object (432, 434, 436) to prevent removal of the segment object by the garbage-collection process, by intercepting, by a locking module that includes a portion of a filter driver designed to intercept attempts to remove the segment object, an attempt to remove the segment object, by altering permissions to the segment object so that the garbage-collection process cannot delete the segment object, or by instructing the garbage-collection process to ignore the segment object; unlocking the segment object after the garbage-collection process, by unloading the locking module, by altering permissions to the segment object so that the garbage-collection process can delete the segment object, or by at least one of clearing and reversing the instruction sent to the garbage-collection process. identifying a deduplicated data system that reduces storage space for files made of segment objects by referencing unique segment objects; characterised by: identifying at least one segment object added to the deduplicated data system during a garbage-collection process of the deduplicated data system, the garbage-collection process comprising a process for deleting unreferenced segment objects in the deduplicated data system; locking the segment object (432, 434, 436) to prevent removal of the segment object by the garbage-collection process, by intercepting, by a locking module that includes a portion of a filter driver designed to intercept attempts to remove the segment object, an attempt to remove the segment object, by altering permissions to the segment object so that the garbage-collection process cannot delete the segment object, or by instructing the garbage-collection process to ignore the segment object; unlocking the segment object after the garbage-collection process, by unloading the locking module, by altering permissions to the segment object so that the garbage-collection process can delete the segment object, or by at least one of clearing and reversing the instruction sent to the garbage-collection process. identifying at least one segment object added to the deduplicated data system during a garbage-collection process of the deduplicated data system, the garbage-collection process comprising a process for deleting unreferenced segment objects in the deduplicated data system; locking the segment object (432, 434, 436) to prevent removal of the segment object by the garbage-collection process, by intercepting, by a locking module that includes a portion of a filter driver designed to intercept attempts to remove the segment object, an attempt to remove the segment object, by altering permissions to the segment object so that the garbage-collection process cannot delete the segment object, or by instructing the garbage-collection process to ignore the segment object; unlocking the segment object after the garbage-collection process, by unloading the locking module, by altering permissions to the segment object so that the garbage-collection process can delete the segment object, or by at least one of clearing and reversing the instruction sent to the garbage-collection process.