星期一, 9月 03, 2018

error mounting ntfs filesystem Windows is hibernated,refused to mount

學校一台windows10電腦無法開機,將這台硬碟掛接在另一台電腦,使用windows開機要將原有檔案讀出來,但會有反應很慢,最後無法讀取的現象。後來掛接到linux電腦,出現了以下的錯誤訊息 Windows is hibernated,refused to mount.......The NTFS partition is in an unsafe state.Please resume and shutdown Windows fully(no hibernation of fast restarting),or mount the volume read-only with the 'ro' mount option.

查了一下資料,先將有問題的partition做ntfs-3g -o ro

cd /media
sudo mkdir /media/105
sudo mount -t ntfs-3g -o ro /dev/sda1 /media/105

結果無法mount
再來將partition進行修復ntfs 的動作
sudo ntfsfix /dev/sd1

好像也沒用
最後,執行ntfs-3g 的remove_hiberfile動作(註:hiberfil.sys是Windows用來存放休眠時記憶體內容的檔案,通常會將之置於C:\hiberfil.sys)

ntfs-3g has a funtion to remove hibermation
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.
 
執行以下指令,就可以掛載sda1的windows 分割區了
sudo ntfs-3g -o remove_hiberfile /dev/sda1 /media/teacher/105
 
 
 
 
 
then copy the file from old error filesystem to the new file device
there may be error to copy file
 
 reference:
  1. Can't access Windows drive: “Windows is hibernated, refused to mount”
  2. Unable to mount Windows (NTFS) filesystem due to hibernation
  3. The NTFS partition is in an unsafe state error in Ubuntu
  4.  I can't access an NTFS partition, ubuntu thinks it's hibernating...

沒有留言: