Skip to content

Instantly share code, notes, and snippets.

@iamstoick
iamstoick / fixNTFS.md
Last active June 3, 2024 18:13
How to fix Ubuntu unable to mount NTFS partition
Unable to mount [DEVICE_NAME]

Error mounting /dev/sdc1 at /media/gerald/PicsBooks: Command-line 
'mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sdc1" 
"/media/gerald/PicsBooks"' exited with non-zero exit status 14: The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
Failed to mount '/dev/sdc1': Operation not permitted
The NTFS partition is in an unsafe state. Please resume and shutdown
Windows fully (no hibernation or fast restarting), or mount the volume
@yunzheng
yunzheng / eicfg_remover.py
Created November 13, 2011 17:01
ei.cfg removal/restore util in Python
#!/usr/bin/env python
"""
eicfg_remover.py
Based on Kai Liu's eicfg_remover.c @ http://code.kliu.org/misc/winisoutils/
"""
import sys
from binascii import crc_hqx, hexlify