Монтирование раздела как виртуального диска в Windows?

510
MarcusD

Я пытаюсь смонтировать раздел, который содержит всю таблицу разделов MBR как виртуальный диск в Windows, но я не нашел никаких решений для этого.

Вот как я это сделать в Linux:
С fdisk -lu /dev/sdc2Я получаю смещение к перегородке, я хочу установить.

losetup /dev/loop0 /dev/sdc2 -o 32256 mount -t vfat /dev/loop0 /media/marcus/WESTERNDIGI 

Я пытался использовать diskpart, но это просто ошибки:

> diskpart DISKPART> select volume 2 DISKPART> assign DISKPART> create vdisk FILE=\\.\H: DiskPart has encountered an error: The parameter is incorrect. See the System Event Log for more information. 

Я искал весь журнал событий, но я не смог найти ничего, связанного с этим.

Можно ли смонтировать том / раздел в Windows как блочное устройство, как вы делаете это с помощью mknod / losttup в Linux?

2
Вы пытаетесь решить эту проблему как на хосте Windows 8, так и на хосте Windows XP? (игнорируйте то, что находится на виртуальном диске, поскольку я не вижу, как гостевая ОС имеет какое-либо влияние на это). Hennes 8 лет назад 0
Да, я смог запустить Win8 на своем старом ноутбуке с помощью внешнего жесткого диска с использованием ImageX, но на внутреннем жестком диске ноутбука установлен пакет Windows Experience ServicePack 3. MarcusD 8 лет назад 0

1 ответ на вопрос

1
MarcusD

Sadly it can't be fully done yet on Windows, but here are the steps to do it:

  1. Boot into Linux
  2. Execute fdisk -lu /dev/sdc2 (where sdc2 is the partition you want to access) to find out the offset to the partition you want to access, and write it down
  3. On Windows open diskmgmt.msc from the Run menu
  4. Assign a letter to the partition that contains the partition table (in this example it's H:)
  5. Install ImDisk Virtual Disk Driver
  6. In the "image file" textbox, type in \\.\H:, where H: is the letter you assigned to the partition
  7. In the "image file offset" textbox write the offset you calculated from step#2
  8. If your version of ImDisk is affected by a bug, then click into the "size of the virtual disk" textbox, then click into another textbox (the "size of the virtual disk" textbox should contain the text "(existing image file size)")
  9. If it's not selected by default, set the offset unit to bytes
  10. Select the "virtual disk drive accesses image file directly" radiobox
  11. Click OK to mount the partition

Похожие вопросы