ntfsfix


Description:

[ Version ( since = "1.17.9" ) ]
public bool ntfsfix (string device, Ntfsfix? optargs) throws Error

fix common errors and force Windows to check NTFS

This command repairs some fundamental NTFS inconsistencies, resets the NTFS journal file, and schedules an NTFS consistency check for the first boot into Windows.

This is *not* an equivalent of Windows chkdsk. It does *not* scan the filesystem for inconsistencies.

The optional clearbadsectors flag clears the list of bad sectors. This is useful after cloning a disk with bad sectors to a new disk.

This function depends on the feature "ntfs3g". See also feature_available .

Parameters:

this

A GuestfsSession object

optargs

a GuestfsNtfsfix containing optional arguments

Returns:

true on success, false on error




2022 vala-language.org