星期一, 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...

星期四, 8月 23, 2018

isc dhcp server的研究



  1. ISC dhcpd and MAC 前置碼的說明:http://blather.michaelwlucas.com/archives/962
  2. Snom-M9 Provisioning設定範例: https://github.com/amooma/GS3/blob/master/usr/share/doc/gemeinschaft/misc/dhcpd-3-example.conf
  3. VoIP provision via DHCP: https://netvoip.wordpress.com/2013/08/01/voip-provision-via-dhcp/
  4. DHCP Option對映提供的服務:http://wiki.snom.com/Networking/DHCP/Options#Option_66_.28TFTP_server_name.29
  5. snom auto provision configure for ISC DHCP Server:https://www.escaux.com/docs/CustomerDhcpServerConfiguration.html#Snom_specific_DHCP_options
  6. Fourm:ISC-DHCP server not matching partial of the MAC address:https://forum.pfsense.org/index.php?topic=101477.0
  7. How to find the vendor-class-identifier string for a new phone:http://apetec.com/linux/CentOS-DHCP-Setup.htm

UPS不斷電系統SNMP Shutdown Agent的二三事


台達電UPS Shutdown Agent的網站( http://59.125.232.140/ups/tc/index.aspx),可下載到最新的Shutdown Agent,也有支援Vmware ESXI。

環境說明:
台達電UPS(with SNMP card,請見此中文使用手冊),安裝卡後使用包裝內提供的 RJ45 to DB9 的序列纜線,連結 InsightPower 的 COM 連接埠與工作站的 COM 連接埠(2400,N,8,1)。。並將兩個 InsightPower 的 DIP 開關設為 OFF 的位置(正常模式)。將兩個 DIP 開關設置到 ON 的位置(組態模式)。訊息將會出現在螢幕上,然後輸入管理者帳號(預設為 admin)與密碼(預設為 password)。InsightPower 組態工具頁會展示在螢幕上。


然後利用瀏覽器連接到所設的IP



vMA5.x裝完後會遇到的第一問題是設定vi-admin的密碼,預設為vmware,但是新的密碼要求要8字元,大小寫數字,和特殊符號。如果不要這樣請看這個連結去修正https://v-reality.info/2011/08/how-to-fix-vma-5-0-password-complexity-issue/


shutdown和poweroff的差異:

  1. What is the difference between shutdown and poweroff commands?
  2. VMware Workstation 5.0 Power Off vs. Shut Down
  3. Linux 關機指令(shutdown、halt 與 poweroff)