Problem to enter in NTFS partition "The disk contains an unclean file system"
Solution 1
You could try this (worked for me with similar problem):
sudo apt-get install ntfsprogs
sudo ntfsfix /dev/sdb2
That worked for me. Good luck!
Solution 2
The problem is that the disk is marked as "unclean," meaning that it was not shut down properly and may contain errors. Unfortunately, there's no Linux utility to repair such problems on NTFS volumes. The ntfsfix
utility recommended by shardival repairs only the most basic errors and then schedules a full repair by Windows the next time it's booted, so it's unlikely to help.
All this means that you must boot Windows to fix the problem. I realize you say you don't have Windows installed, so this means that you must either temporarily move the disk to a computer that does have Windows installed or use a Windows emergency repair disc. This site has such disc images, and I'm sure you can find them elsewhere, too.
In the long term, converting the NTFS partition to use a Linux filesystem is the best solution, but you can't do this until you repair the NTFS volume, or at least coax Linux into mounting it. Converting the partition to use a Linux filesystem will require backing up the files to another medium, unmounting the NTFS partition, creating a new Linux filesystem on the now-NTFS volume, re-mounting that partition, and copying the files back. I realize this is a hassle, but it will prevent a recurrence of the problem you've encountered, and give you better performance, too. (NTFS is slow on a Linux system compared to most Linux filesystems.)
Related videos on Youtube
Federico Ribero
Updated on September 18, 2022Comments
-
Federico Ribero over 1 year
Sorry if this question is already solved.
I changed my Operating System, from Windows to Linux Ubuntu 13.04.
I have 2 partitions:
- C: (system) and
M: It's NTFS; there I have my information, music, photos. When I want to access the Disk to use the information, I can't get past this error:
Error mounting /dev/sda2 at /media/love/Mis Archiivos: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sda2" "/media/love/Mis Archiivos"' 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/sda2': 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 read-only with the 'ro' mount option.
Clarification: I don't have 2 OSes. I only have Linux installed.
-
bain almost 10 years
-
Federico Ribero about 11 years:S So, I need format for use? :/ Thanks friend.. Not the best start in Linux for me
-
ignis about 11 yearsThis will LOSE ALL DATA that is on the partition, which is not what the OP wants.
-
Elder Geek almost 10 years2nd comment above.
-
barrypicker almost 10 yearsWorked for me too! Nice answer!
-
MetaGuru about 9 yearshmm I get supersonic@bonuslevel:~$ sudo apt-get install ntfsprogs Reading package lists... Done Building dependency tree Reading state information... Done Package ntfsprogs is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'ntfsprogs' has no installation candidate
-
Priyank Thakkar almost 9 yearsAwesome.. within seconds my driver became accessible.. I faced this problem after upgrading my window 7 to windows 10 which is in dual boot with ubuntu 14.04