2013年8月31日土曜日

hyper-v + linuxのキーボード設定

「システム」→「設定」→「キーボード」

「レイアウト」タブ
デフォルトでは以下になっていた
 「キーボードの形式」「Generic 105-key(Intel)PC」
 「レイアウト」「U.S.English」
 画面から操作するとなぜかクラッシュする

vi /etc/X11/xorg.conf

「Section "InputDevice"」の以下をそれぞれjp106, jpにする
 >Option      "XkbModel" "jp106"
 >Option      "XkbLayout" "jp"
 PC再起動

 キーボード設定が異なるとのメッセージが出るので「Xの設定を使う」ボタンをクリックする

2013年8月30日金曜日

システム イメージの作成:バックアップに失敗しましたエラー0x80780119

>バックアップに失敗しました。
>ディスク領域が不足しているため、保存場所にボリュームのシャドウコピーを作成できません。
>バックアップするすべてのボリュームについて、シャドウコピーの作成に必要な
>最小限のディス領域が利用可能であることを確認してください。
>これは、バックアップの保存先と、バックアップに含まれるボリュームの両方について行う必要があります。
>最小用件:500MB未満のボリュームに対して50MBの空き領域、
>500MBを超えるボリュームに対して320MBの空き領域が必要です。
>推奨事項:ボリュームのサイズが1GBを超える場合、各ボリュームについて、
>少なくとも1GBの空きディスク領域が必要です。(0x80780119)

・サービス「Microsoft Software Shadow Copy Provider」が「手動」になっている事

・「コントロールパネル」→「システムとセキュリティ」→「システム」→左ペイン「システムの詳細設定」
 →「システムの保護」タブ

 バックアップ元のドライブ、バックアップ先のドライブ
  それぞれ全て「保護」が「有効」になっている事
  それぞれ全て「構成」ボタンをクリック
   「システム設定とファイルの以前のバージョンを復元する」にチェックが入っている事。
   「最大使用量」が「100%」になっている事


○bcd領域の問題
・「コンピュータの管理」→「ディスクの管理」
 Cドライブの左側にある「システムで予約済み」の領域の確認が必要。
 確認方法は、Zドライブなどに割り当てて、エクスプローラーから空き領域を確認する。
 手元のPCでは「容量 99.9MB」「空き領域 30.7MB」とある。
 この空き領域が少ないのが問題らしいが、空き領域を広げる事が出来ないので、
 このパーティションは捨てて、別のパーティションを作る手順になる

・Cドライブが含まれたディスクに空きを作る
 Cドライブを右クリックして「ボリュームの縮小」を選び、
 適当に1GB程度でいいので空きを作る。

 作った空き領域をZドライブなどに割り当てる。

 コマンドラインより以下を実行する
 bcdboot.exe c:\windows /s z:
 diskpart
  select volume z
  active

 これで、「ディスクの管理」から見て
 元あからある「システムで予約済み」領域の「パーティションをアクティブとしてマーク」の文字は選択できる状態
 Zドライブを右クリックすると「パーティションをアクティブとしてマーク」の文字が白抜きで選択できない状態
 になっている。
 Zドライブをエクスプローラーで見ると、「$RECYCLE.BIN」「Boot」「System Volume Information」「bootmgr」の
 ファイルとフォルダがある事を確認できる。
 Zドライブの割り当ては消してしまっていい。

 最終確認として再起動できる事を確認する。


 ※bcdboot.exeで「bcdboot.exe c:\windows /s c:」と、システムドライブと一緒でもいいだろうtodo
 ※diskpartでは無く「ディスクの管理」から「パーティションをアクティブとしてマーク」してもいいだろうtodo

○バックアップ
 「コントロールパネル」→「バックアップと復元」→左ペイン「システムイメージの作成」

 「ハードディスク上」からバックアップ先のUSBディスク等を選択して「次へ」

 この対応をした際のポイントとして、作業前は
 「システムで予約済み」の領域にバックアップのチェックが入っていたが、
 今ははいていない状態になっている。
 その代わりにZドライブとして作業した領域が「(システム)」としてチェックが入っていて外れない状態になっている。
 「(システム)」と「(C:)(システム)」の2つがチェックが入っていて外れない状態になっているのを確認して
 「次へ」をクリックする。
 もし、その際、元の「(システム)」にチェックが入っていて3つチェックが入っていて外れない状態であれば
 bcdの作業がうまく出来ていない可能性がある。



理屈がわかればその通りやればいいだけですが、
なんだかもう少し便利になって欲しいもののですね。
bcd領域を変更するのもちょっと怖いですし。

Create system image: backup failed error 0x80780119

Create system image: backup failed error 0x80780119 > Failed to backup.
> There is not enough disk space to create a shadow copy of the volume at the storage location.
> Required for creating shadow copy for all volumes to be backed up
> Make sure minimal disk space is available.
> This needs to be done for both the backup destination and the volumes included in the backup.
> Minimum requirement: 50 MB free space for volumes less than 500 MB,
320 MB of free space is required for volumes> 500 MB.
> Recommendation: If the size of the volume exceeds 1GB,
for each volume > You need at least 1GB of free disk space. (0x80780119)

・ The service "Microsoft Software Shadow Copy Provider" is "Manual"

・ "Control Panel"-> "System and Security"-> "System"-> left pane "Advanced System Settings"
→ "System protection" tab

Backup source drive, backup destination drive
All "protection" must be "enabled" for each
Each click on the "Configure" button
"Restore previous versions of system settings and files" is checked.
"Maximum usage" is "100%"


○ problem of bcd area
・ "Computer Management"-> "Disk Management"
It is necessary to check the "System reserved" area on the left side of the C drive.
As a confirmation method, assign it to the Z drive etc. and check free space from Explorer.
On the PC at hand, it says "capacity 99.9MB" "free space 30.7MB".
Although it seems that there is a small amount of free space, it is impossible to expand the free space,
Discard this partition and follow the steps to create another partition

・ Make space on the disk containing C drive
Right-click on drive C and select "Reduce Volume"
Make a vacancy because it should be about 1GB.

Allocate the free space you created to Z drive etc.

Execute the following from the command line
Bcdboot.exe c: \ windows / s z:
Diskpart
Select volume z
Active

Now, from the viewpoint of "disk management"
The characters "mark partition as active" in the original "system reserved" area can be selected
When you right-click on the Z drive, the characters "mark partition as active" can not be selected because it is outlined
It has become.
If you look at the Z drive in Explorer,
of "$ RECYCLE. BIN", "Boot", "System Volume Information" and "bootmgr" You can confirm that there are files and folders.
It is safe to delete the Z drive assignment.

Confirm that it can be restarted as final confirmation.


※ "bcdboot.exe c: \ windows / s c:" in bcdboot.exe and it may be together with the system drive todo
※ It is not a disk part but from "Manage Disk" to "Mark partition as active" It may be todo

○ Backup
"Control Panel"-> "Backup and Restore"-> left pane "Create System Image"

Select the backup destination USB disk etc from "On hard disk" and "Next"

As a point of doing this correspondence, before work
"System reserved" area was checked for backup,
It is not in the state now.
Instead, the area worked as Z drive is checked as "(system)" and is not removed.
Make sure that "(System)" and "(C :) (System)" are checked and can not be removed
Click "Next".
At that time, if the original "(System)" is checked and three checks are entered and it does not go away
There is a possibility that the work of bcd is not done well.



If you understand the theory, you just have to do it,
You want something to be a bit more convenient.
It's also a bit scary to change the bcd area.

  フィードバックを送信 履歴 保存済み コミュニティ