Package: ddrutility
Version: 2.8-1.1
Severity: normal

Dear maintainer,

I suppose this issue should be better reported upstream, but I can't find where to report it and the homepage states that the project is "no longer actively supported".

`ddru_findbad` script uses `ntfscluster` command to detect the NTFS cluster size. Unfortunately, `ntfscluster` fails if the NTFS partition is scheduled for check (because it was not properly unmounted, which I suppose is common if the drive has issues), so ddru_findbad also fails with the following error:

  Error! ntfscluster did not report a cluster size.
  This could be caused by the disk being mounted.
  Try unmounting the disk.

However, I noticed that with the same problematic partition, using `--force` option of ntfscluster works properly. As a quick and dirty fix I wrote directly my NTFS cluster size in `/usr/bin/ddru_findbad`. Maybe a proper "fix" would be to replace the following line:

CLUSTERSIZE=$(ntfscluster $PARTITION 2>/dev/null | grep -a "bytes per cluster" | awk ' { print $5 } ')

By:

CLUSTERSIZE=$(ntfscluster --force $PARTITION 2>/dev/null | grep -a "bytes per cluster" | awk ' { print $5 } ')

Thanks for you time and work,
Yvan

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to