Huu Phan | Blog Linux operating system | Linux operating system -Blog Huu Phan | www.huuphan.com
huuphan.com. Powered by Blogger.

ntfsfix fix NTFS not mount from Linux

Today, I have not mount usb external USB into Fedora 32. External USB drive is NTFS formatted. 
I will installed ntfs-3g  package for fedora as below:

sudo dnf install ntfs-3g ntfsprogs

The first, check your device address , you run this command as below

sudo fdisk -l
# or
lsblk -f

The output device is /dev/sdXY (where X and Y are the letter of the drive's device and Y is the partition number). 
So in my case /dev/sdc1 is usb  drive external NTFS formatted. you will replace "device name" with your windows partition ( ex: /dev/sdb1 or /dev/sdd1 .v.v)

How to do fix it


Now, Open your terminal and run command to fix a Corrupted Windows NTFS Filesystem with Linux

[[email protected] ~]$ sudo ntfsfix /dev/sdc1
Mounting volume... $MFTMirr does not match $MFT (record 0).
FAILED
Attempting to correct errors...
Processing $MFT and $MFTMirr...
Reading $MFT... OK
Reading $MFTMirr... OK
Comparing $MFTMirr to $MFT... FAILED
Correcting differences in $MFTMirr record 0...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/sdc1 was processed successfully.

Conclusion

Thought the article, You has fixed NTFS not mount from Linux use ntfsfix command on Linux . I hope will this your helpful.

post new :

Huu Phan | Blog Linux operating system | Huu Phan ~ Zimbra Mail Server,linux,bash script,centos,linux command | www.huuphan.com