https://github.com/akotov-dev/chkdsk
Bash script for automatic error correction on ntfs partition in Linux
https://github.com/akotov-dev/chkdsk
ntfs-3g scripts
Last synced: 13 days ago
JSON representation
Bash script for automatic error correction on ntfs partition in Linux
- Host: GitHub
- URL: https://github.com/akotov-dev/chkdsk
- Owner: AKotov-dev
- License: gpl-3.0
- Created: 2022-04-19T08:05:13.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-04T05:37:26.000Z (almost 3 years ago)
- Last Synced: 2025-02-16T08:27:12.791Z (2 months ago)
- Topics: ntfs-3g, scripts
- Language: Shell
- Homepage:
- Size: 123 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# chkdsk
Bash script for automatic error correction on ntfs partition in Linux. Just run the command with `su` privileges: `chkdsk`.If two operating systems (Windows/Linux) are on the same disk at the same time, when the first one is shut down incorrectly, problems often arise with mounting NTFS partitions in the second one, or they are monitored in read-only mode. The packages contain the `/usr/bin/chkdsk` script for quick repair of this malfunction. This script is not an analogue of the `chkdsk` program from Windows (С), it uses the `ntfsfix` utility from the `ntfs-3g` package. In addition to eliminating common errors, the option is used `-d` to fix dirty states.
Demonstration of the correction of NTFS errors:
```
> chkdsk
Mounting volume... The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
FAILED
Attempting to correct errors...
Processing $MFT and $MFTMirr...
Reading $MFT... OK
Reading $MFTMirr... OK
Comparing $MFTMirr to $MFT... OK
Processing of $MFT and $MFTMirr completed successfully.
Setting required flags on partition... OK
Going to empty the journal ($LogFile)... OK
Checking the alternate boot sector... OK
NTFS volume version is 3.1.
NTFS partition /dev/sda3 was processed successfully.
```
Designed for Mageia/Fedora/Ubuntu/etc...