Sunday, May 5, 2024
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 797  / 3 Years ago, tue, july 20, 2021, 4:03:19

I have HDD with Windows 7 on one of the partintions which was installed previously on the same machine, connected to the laptop via the USB.



Previously the system was booted from this HDD using grub (installed as a secondary system along with Ubuntu on other partition).



How can I move this partition to the VirtualBox?



I've created an iso image of this system, but I don't have enough space on the new disk to fit both the image and new virtual disk. What if the USB drives are not supported in VirtualBox?



Edit:



Currently I'm trying to create .vmi file directly from the partition (not the iso). But probably I'll encounter somple problems during booting, caused by the grub installed on the other partition.


More From » partitioning

 Answers
3

With Virtual Box there is a set of commands that enable us to get direct raw access to harddisk or harddisk partitions (see Virtual Box Manual for details).



Before we test this it is strongly recommended to backup your drive.



These commands can also be used to boot a virtual machine from a physical drive where a preinstalled OS may reside. In theory the commands should also work for USB drives attached to the host but I have not tested this, so be careful.




In any case where a virtual machine has physical raw access to a drive make sure you don't access this drive from the host as this may lead to unrecoverable data loss.



[#40540] Wednesday, July 21, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
listeerrated

Total Points: 354
Total Questions: 112
Total Answers: 100

Location: Guam
Member since Fri, Jun 18, 2021
3 Years ago
listeerrated questions
Wed, Jun 8, 22, 11:43, 2 Years ago
Wed, Mar 23, 22, 03:25, 2 Years ago
Wed, Jun 2, 21, 20:28, 3 Years ago
;