Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

VirtualBox uses USB flash drive to boot

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

VirtualBox's GUI does not have a direct interface for mapping disks to storage, so we need to implement it on the command line.

USB disk mount

My win10 is a file in esd format. You need to mount usb into pe installation.

First go to the command prompt for administrator privileges and take a look at the DeviceID of the u disk.

Wmic diskdrive list brief

VBoxManage.exe internalcommands createrawvmdk-filename "D:\ VirtualBox VMs\ usb3.vmdk"-rawdisk\.\ PhysicalDrive3

Add this storage to the virtual machine created by starting in administrator mode, and it is recommended that the IDE controller be used to boot with a USB flash drive.

Map physical disks and partitions to view DeviceID

Wmic diskdrive list brief

Map the physical disk VBoxManage.exe internalcommands createrawvmdk-filename "D:\ VirtualBox VMs\ disk120.vmdk"-rawdisk\.\ PhysicalDrive0 to view the physical disk partition

Vboxmanage internalcommands listpartitions-rawdisk\.\ PhysicalDrive2

Map physical partitions

As shown in the figure above, there are 3 partitions. The command supports mapping multiple partitions at a time.

VBoxManage internalcommands createrawvmdk-filename "D:\ VirtualBox VMs\ diskde.vmdk"-rawdisk\.\ PhysicalDrive2-partitions 5pm 6

Referenc

Https://www.virtualbox.org/manual/ch09.html#rawdisk

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report