#navi(../)
* Windows8(Windows8.1)のディスクのマウントができない場合の対処方法 [#ac304032]
LinuxでWindows8のディスクをマウントすると以下のようなエラーが発生する場合があります。
 mount exited with exit code 14 Windows is hibernated, refused to mount
本資料では、このような場合でもマウントする方法を記します。

#contents
#htmlinsertpcsp(linux_ads_top.html,linux-sp.html)

* マウントエラーメッセージ [#acd61b83]
以下、Debianでマウントしようとした時に出力されたエラー画面です。
#ref(01.gif)

* ハイバネートが問題 [#d4246f06]
問題としてWindows8(8.1)の高速スタートアップが絡んでいるようです。~
Windows側の高速スタートアップを無効にすれば(場合によっては休止状態)~
このようなエラーは発生しないようです。

* マウントしてみる [#sdaa8c9e]
このような状態でも以下のようにコマンドを実行すればマウントすることができます。~
まずは、ntfs-3gパッケージが必要ですのでインストールしていない場合はインストールしてください。
-Debian, Ubuntu
--rootユーザの場合
 apt-get install ntfs-3g
--sudoが利用できる場合(ubuntu)
 sudo apt-get install ntfs-3g
-CentOS
 yum install ntfs-3g

+端末を起動します。
+rootにスイッチします。(ubuntuではsuしないでsudoを利用すればよいですね。)
 sakura@mini:~$ su -
 パスワード:
+マウントポイントを作成します。(ubuntuであればsudoを付加すればよいでしょう。)
 root@mini:~# mkdir /media/Windows8
+メッセージに出力された通りにコマンドを実行します。
 root@mini:~# mount -t ntfs-3g -o remove_hiberfile /dev/sdb4 /media/Windows8
 The disk contains an unclean file system (0, 0).
 The file system wasn't safely closed on Windows. Fixing.
尚、当方の環境では/dev/sdb4となりましたが、みなさんの環境では異なる文字列になる場合がありますので、~
出力された/dev/...を入力してください。~
また、マウントポイントに関しては、メッセージの通り/media/Windows8を作成しましたが、~
必要に多じて変更してください。
#br
+以下、lsコマンドでマウントされて内容が確認できるかを調べた時の出力です。
 root@mini:~# ls -l /media/Windows8/ | head -10
 合計 8301501
 drwxrwxrwx 1 root root          0 11月  1  2013 $Recycle.Bin
 drwxrwxrwx 1 root root          0 11月 19  2012 AuthLog
 -rwxrwxrwx 1 root root          1  6月 18  2013 BOOTNXT
 -rwxrwxrwx 1 root root       8192  9月 14  2012 BOOTSECT.BAK
 drwxrwxrwx 1 root root       8192  9月 14  2012 Boot
 drwxrwxrwx 1 root root     475136  7月 15 20:18 Config.Msi
 drwxrwxrwx 1 root root          0  2月 13  2013 DRIVERS
 lrwxrwxrwx 2 root root         60  8月 22  2013 Documents and Settings -> /media/Windows8/Users
+以下、アンマウントのコマンドを実行しています。
 root@mini:~# umount /media/Windows8 

* 注意 remove_hiberfile [#nb21a7a3]
remove_hiberfileを調べたところ、以下のように記述されています。~
自己責任でおねがいします。
 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.

以上、Windows8(8.1)のディスクをマウントする手順でした。

#htmlinsertpcsp(linux_ads_btm.html,linux-sp.html)

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS