diff --git a/src/fat16.cc b/src/fat16.cc index e9eb81bc..735ad311 100644 --- a/src/fat16.cc +++ b/src/fat16.cc @@ -64,7 +64,7 @@ FS fat16::get_filesystem_support() void fat16::set_used_sectors( Partition & partition ) { - exit_status = Utils::execute_command( "dosfsck -v " + partition .get_path(), output, error, true ) ; + exit_status = Utils::execute_command( "dosfsck -n -v " + partition .get_path(), output, error, true ) ; if ( exit_status == 0 || exit_status == 1 || exit_status == 256 ) { //free clusters diff --git a/src/fat32.cc b/src/fat32.cc index 82f25e0e..689768b4 100644 --- a/src/fat32.cc +++ b/src/fat32.cc @@ -64,7 +64,7 @@ FS fat32::get_filesystem_support() void fat32::set_used_sectors( Partition & partition ) { //FIXME: i've encoutered a readonly fat32 file system.. this won't work with the -a ... best check also without the -a - exit_status = Utils::execute_command( "dosfsck -v " + partition .get_path(), output, error, true ) ; + exit_status = Utils::execute_command( "dosfsck -n -v " + partition .get_path(), output, error, true ) ; if ( exit_status == 0 || exit_status == 1 || exit_status == 256 ) { //free clusters