Bug 484611 - Incorrect command when running a check on an exFAT partition
Summary: Incorrect command when running a check on an exFAT partition
Status: RESOLVED NOT A BUG
Alias: None
Product: partitionmanager
Classification: Applications
Component: general (show other bugs)
Version: 24.02.0
Platform: openSUSE Linux
: NOR minor
Target Milestone: ---
Assignee: Andrius Štikonas
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-27 17:22 UTC by Jecho Jekov
Modified: 2024-03-27 17:42 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jecho Jekov 2024-03-27 17:22:36 UTC
SUMMARY

Running a check on an exFAT file system fails with an error.

STEPS TO REPRODUCE
1. Run a check on an exFAT partition

OBSERVED RESULT

Command: fsck.exfat --repair-yes --verbose /dev/sdb4 
Check file system on partition ‘/dev/sdb4’: Error
Check and repair partition ‘/dev/sdb4’ (94.09 GiB, exfat): Error

EXPECTED RESULT

Successful execution.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: openSUSE Tumbleweed 20240321
(available in About System)
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION

The version of `fsck.exfat` is:

```
exfatfsck 1.4.0
Copyright (C) 2011-2023  Andrew Nayenko
```

The parameters passed by the partition manager to `fsck.exfat` are incorrect. The parameters supported by the command are:

`fsck.exfat [ -a | -n | -p | -y ] device`

```
       -a     Automatically repair the file system. No user intervention required.
       -n     No‐operation mode: non‐interactively check for errors, but don’t write anything to the file system.
       -p     Same as -a for compatibility with other *fsck.
       -V     Print version and copyright.
       -y     Same as -a for compatibility with other *fsck.
```

Based on these parameters the correct command line executed by the partition manager should be:

`fsck.exfat -a /dev/sdb4`
Comment 1 Andrius Štikonas 2024-03-27 17:27:10 UTC
You need to use exfatprogs as is specified in fs support dialog. You probably installed exfat-utils.

Usage: fsck.exfat
        -r | --repair        Repair interactively
        -y | --repair-yes    Repair without ask
        -n | --repair-no     No repair
        -p | --repair-auto   Repair automatically
        -a                   Repair automatically
        -b | --ignore-bad-fs Try to recover even if exfat is not found
        -s | --rescue        Assign orphaned clusters to files
        -V | --version       Show version
        -v | --verbose       Print debug
        -h | --help          Show help
Comment 2 Jecho Jekov 2024-03-27 17:42:24 UTC
Thank you for the quick reply.

> You probably installed exfat-utils.

This is correct. I installed exfatprogs instead and it works. I apologize for filing this bug!

Thank you!!!