回復パーティションからvirtualboxにWindows 8.1をインストールしますか?


2

Windows 8.1 OSになるはずの仮想マシンを起動するときに、特定のパーティション(この場合はLenovo Recoveryパーティション)を介してアクセス/ブートする方法を教えてください。

元のディスクレイアウト

ThinkPad X1 Carbon 2nd Gen.は、元のディスクレイアウトにリカバリパーティションを保持しています。たとえば、モデル20A7005RGEでは、ディスクレイアウトは次のように構成されています。

  • sda1:ntfs、WINRE_DRV、〜1GB
  • sda2:fat32、SYSTEM_DRV、〜260MB
  • sda3:不明、Microsoft予約済みパーティション、最大128MB
  • sda4:ntfs、Windows8_OS、〜217GB
  • sda5:ntfs、Lenovo_Recovery、〜14GB
  • sda6:不明、基本データパーティション、最大7GB [/ list]

http://users.wfu.edu/yipcw/lenovo/2014/X1C2/ご覧ください。OEMSoftareセクションのディスクレイアウトを読んでください。

重要なパーティションのクローン

ddを使用して、重要な各パーティションのクローンを保持しました。例示するために、sda1について、私は次のように指示し dd if=/dev/sda1 of=/mnt/usb/WINRE_DRV.ddました。残りについても同様に行いました(sda3とsda4を除く)。

仮想ディスクの作成

主にハードウェアのテスト目的(モバイルブロードバンドモデムなど)と一部のソフトウェアのために、VirtualBoxのリカバリパーティションからWindows(8.1)をインストールしようとしています。これを行うために、仮想ディスクに元のディスクレイアウトを再作成しました。パーティションサイズは元のディスクレイアウトから抽出され(上記のとおり)、適切なタイプのパーティション(NTFS、Windows Recovery Environment、EFIなど)を選択するよう注意が払われました。

# create sparse image
dd if=/dev/zero of=ThinkPad_Recovery.img bs=1 count=0 seek=256G

# re-create partitioning scheme as root
fdisk ThinkPad_Recovery.img

# OR
gdisk ThinkPad_Recovery.img

# access partitions contained in image via /dev/loop*?
partx -a ThinkPad_Recovery.img

仮想ディスクのレイアウトを確認する

# check...
fdisk -lu ThinkPad_Recovery.img 

Disk ThinkPad_Recovery.img: 256 GiB, 274877906944 bytes, 536870912 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 3E289338-246A-44DE-B7F6-80250FDFD417

Device                        Start          End   Size Type
ThinkPad_Recovery.img1         2048      2050047  1000M Windows recovery environment
ThinkPad_Recovery.img2      2050048      2582527   260M EFI System
ThinkPad_Recovery.img3      2582528      2844671   128M Microsoft reserved
ThinkPad_Recovery.img4      2844672    457926655   217G Microsoft basic data
ThinkPad_Recovery.img5    457926656    491481087    16G Windows recovery environment
ThinkPad_Recovery.img6    491481088    506161151     7G Microsoft basic data

仮想ディスク内の元のパーティションのクローン

# copy content of dd-ed partitions into corresponding partitions inside the virtual disk 
dd if=WINRE_DRV.dd of=/dev/loop1p1
dd if=SYSTEM_DRV.dd of=/dev/loop1p2
dd if=Lenovo_Recovery.dd of=/dev/loop1p5
dd if=Basic_data_partition.dd of=/dev/loop1p6

# device mappings removed after rebooting!

念のために...

# reporting
tpx1c2g original_partitions # fdisk -l ThinkPad_Recovery.img

Disk ThinkPad_Recovery.img: 256 GiB, 274877906944 bytes, 536870912 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 3E289338-246A-44DE-B7F6-80250FDFD417

Device                        Start          End   Size Type
ThinkPad_Recovery.img1         2048      2050047  1000M Windows recovery environment
ThinkPad_Recovery.img2      2050048      2582527   260M EFI System
ThinkPad_Recovery.img3      2582528      2844671   128M Microsoft reserved
ThinkPad_Recovery.img4      2844672    457926655   217G Microsoft basic data
ThinkPad_Recovery.img5    457926656    491481087    16G Windows recovery environment
ThinkPad_Recovery.img6    491481088    506161151     7G Microsoft basic data

gdisk -l ThinkPad_Recovery.img
GPT fdisk (gdisk) version 0.8.10

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.
Disk ThinkPad_Recovery.img: 536870912 sectors, 256.0 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 3E289338-246A-44DE-B7F6-80250FDFD417
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 536870878
Partitions will be aligned on 2048-sector boundaries
Total free space is 30711741 sectors (14.6 GiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048         2050047   1000.0 MiB  2700  WINRE_DRV
   2         2050048         2582527   260.0 MiB   EF00  SYSTEM_DRV
   3         2582528         2844671   128.0 MiB   0C01  Microsoft Reserved ...
   4         2844672       457926655   217.0 GiB   0700  Windows8_OS
   5       457926656       491481087   16.0 GiB    2700  Lenovo_Recovery
   6       491481088       506161151   7.0 GiB     0700  Unlabeled

ここまでは順調ですね。の変換。imgに。この新しい仮想マシンを介してvdiVBoxManage convertfromraw ThinkPad_Recovery.img ThinkPad_Recovery.vdi --format VDI使用すると、動作するようです。

ただし、マシンを起動した後の画面は次のとおりここに画像の説明を入力してくださいです。

実際のリカバリパーティション(「Lenovo_Recovery」にちなんで命名)はアクセスされていないようです。どうすれば続行できますか?

さまざまなソース


VirtualBoxはLenovoボタンをサポートしていないため、できません。
ラムハウンド14

1
新しいX1 Carbonで専用のLenovoボタンを識別できません!あなたはある種のソフトボタンを意味しますか?
ニコスアレクサン

lenovoパーティションを確認できますか?たぶん、ブートレコードにロードをチェーンすることができますか?
Milind R 14

@MilindRあなたのアイデアを少し詳しく説明してください。
ニコスアレクサン

1
@MilindR別のコンピューターでRecoveryパーティションを使用しようとしても、機能しません。そして、おそらく、それも違法です。私はわかりません。新しい(er)X1 Carbon(第2世代)のリカバリへのアクセスは、マシンの電源をオンにした直後に行われます(いくつかのFキーまたは同様の機能により、いくつかの選択肢が表示されます)。
ニコスアレクサン
弊社のサイトを使用することにより、あなたは弊社のクッキーポリシーおよびプライバシーポリシーを読み、理解したものとみなされます。
Licensed under cc by-sa 3.0 with attribution required.