
Windows 8.1 OS가 되어야 하는 가상 머신을 시작할 때 특정 파티션(이 경우 Lenovo Recovery 파티션)을 통해 어떻게 액세스/부팅할 수 있습니까?
원본 디스크 레이아웃
ThinkPad X1 Carbon 2세대는 원래 디스크 레이아웃의 복구 파티션을 보유하고 있습니다. 예를 들어, 모델 20A7005RGE에서 디스크 레이아웃은 다음과 같이 구성됩니다.
- sda1: ntfs, WINRE_DRV, ~1GB
- sda2: fat32, SYSTEM_DRV, ~260MB
- sda3: 알 수 없음, Microsoft Reserved 파티션, ~128MB
- sda4: ntfs, Windows8_OS, ~217GB
- sda5: ntfs, Lenovo_Recovery, ~14GB
- sda6: 알 수 없음, 기본 데이터 파티션, ~7GB [/list]
또한 보세요http://users.wfu.edu/yipcw/lenovo/2014/X1C2/: 읽다디스크 레이아웃섹션에서OEM 소프트웨어.
중요한 파티션의 클론
dd를 사용하여 각 중요한 파티션의 복제본을 보관했습니다. 예를 들어, sda1에 대해 다음과 같이 지시했습니다.
dd if=/dev/sda1 of=/mnt/usb/WINRE_DRV.dd
그리고 나머지에도 유사하게 수행했습니다(sda3 및 sda4 제외).
가상 디스크 생성
주로 하드웨어 테스트 목적(예: 모바일 광대역 모뎀)과 일부 소프트웨어의 경우 VirtualBox의 복구 파티션에서 Windows(8.1)를 설치하려고 합니다. 이를 위해 가상 디스크에 원래 디스크 레이아웃을 다시 만들었습니다. 위에서 설명한 대로 파티션 크기는 원본 디스크 레이아웃에서 추출되었으며 적절한 파티션 유형(NTFS, Windows 복구 환경, 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안으로 .vdi이를 통해 VBoxManage convertfromraw ThinkPad_Recovery.img ThinkPad_Recovery.vdi --format VDI
새로운 가상 머신을 사용하는 것이 작동하는 것 같습니다.
그러나 머신을 부팅한 후의 화면은 다음과 같습니다 .
실제 복구 파티션("Lenovo_Recovery" 이름을 따서 명명됨)에 액세스되지 않는 것 같습니다. 어떻게 진행하나요?