-1

I had windows & Kali linux (dual boot) then I took off Kali linux Parition so I delete it but I Made a mistake ... and PC won't boot "Rescue grub error" or something ...

but I installed Ubuntu & removed Windows and all . All is running fine but I just can't open one of my disks , this is the error :

Error mounting /dev/sdb5 at /media/imad/Disque local: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sdb5" "/media/imad/Disque local"' 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/sdb5': 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.

I asked this question before but no one had an idea , help please .

2 Answers2

0

The most likely explanation is that you had hibernated your Windows install instead of shutting it down. The normal solution is to simply boot into Windows and then shut it down cleanly but since you have uninstalled Windows, that's not an option.

So, your other choice is (from man ntfs-3g):

   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.

So, just add the remove_hiberfile option and try to mount it again:

sudo mount -t "ntfs" -o remove_hiberfile /dev/sdb5 "/media/imad/Disque local"

or

sudo ntfs-3g -o remove_hiberfile /dev/sdb5 "/media/imad/Disque local"

That should mount the drive correctly and since it will delete the hibernated session file, it should mount normally from now on.

terdon
  • 104,119
0

Your question is why you cannot mount the file system. The reason is that it wasn't properly unmounted. This usually happens if you don't shut down Windows the correct way, don't use "Safe removal" before you disconnect the disk, or you're using Windows 8, which doesn't shutdown properly (by design) unless you deactivate "Fastboot".

It's a very common issue with Windows systems.