Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 5587  / 3 Years ago, fri, october 15, 2021, 11:00:22

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 .


More From » disk

 Answers
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.


[#25775] Saturday, October 16, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
inglehare

Total Points: 330
Total Questions: 111
Total Answers: 95

Location: Sint Maarten
Member since Tue, Mar 29, 2022
2 Years ago
;