Saturday, May 24, 2014

NTFS tricks on linux

Or  How do I mount a hibernated NTFS partition?

Error mounting: mount exited with exit code 14: Windows is hibernated, refused to mount.

sudo mount -t ntfs-3g /dev/'device' 'monutpoint' -o remove_hiberfile
Example:
sudo mount -t ntfs-3g /dev/sde4 ./mnt -o remove_hiberfile

remove_hiberfile
    Unlike in case of read-only mount, the read-write mount is denied if the NTFS volume is hibernated. One needs either to resume Windows and shutdown it properly, or use this option which will remove the Windows hibernation file. Please note, this means that the saved Windows session will be completely lost. Use this option under your own responsibility.

Fix some NTFS  issues

       ntfsfix - fix common errors and force Windows to check NTFS

SYNOPSIS
       ntfsfix [options] device

DESCRIPTION
       ntfsfix  is  a  utility  that fixes some common NTFS problems.  ntfsfix is NOT a Linux version of chkdsk.  It only repairs some fundamental NTFS inconsistencies, resets the
       NTFS journal file and schedules an NTFS consistency check for the first boot into Windows.

       You may run ntfsfix on an NTFS volume if you think it was damaged by Windows or some other way and it cannot be mounted.

Example run:
sudo ntfsfix /dev/sdb1

To install:
sudo apt-get install ntfsprogs



No comments:

Post a Comment