Skip to main content

Windows Users: Virtualize Your Linux Partition

Windows Users: Virtualize Your Linux Partition

If you're primarily a Windows user but want occasional access to your Linux partition, you can do so using some of VirtualBox's built-in tools.
BUT FIRST, A WARNING: These tools are very advanced and are considered "expert" tools in VirtualBox. You'll need to do some command line work to make it happen, and there's a reason: without the proper precautions, you could cause serious data corruption on your Windows partition. Use these instructions at your own risk and for God's sake, back up all your data before you try this and keep your data backed up regularly! We also highly suggest you read the corresponding chapter in VirtualBox's manual before you continue.
We're going to use Ubuntu for this tutorial, but you should be able to reproduce the steps with other Linux distributions. Also, if you have proprietary graphics drivers, you may encounter problems—VirtualBox has trouble with 3D acceleration in this setup. For now, it's best to use the default open source graphic drivers. Check out the video below for an overview of the process, then read on for the individual steps.

Step One: Create Your New Virtual Machine

Assuming you already have both partitions set up, boot into Windows and perform the following steps:
  1. Back up everything before you begin. No, I'm serious. Don't skip this step. Don't!
  2. Open up a Command Prompt as an administrator and run the following command: wmic diskdrive list brief /format:list Find the drive on which your Linux partition resides and note its number (in my case, it was Disk 0)
  3. Use the CD command to change to the directory in which VirtualBox is installed. For me, this was: CD "C:\Program Files\Oracle\VirtualBox"
  4. Run this next command, replcaing the variables with the correct ones for your system: VBoxManage internalcommands createrawvmdk -filename "C:\Users\Whitson\Desktop\Ubuntu.vmdk" -rawdisk \\.\PhysicalDrive0Replace the file path with wherever you want to put your VMDK file. Replace the 0 in \\.\PhysicalDrive0 with your disk number.
  5. You should get a message saying the VMDK was created successfully. If not, make sure you followed these steps exactly, and if you're still having problems read through that manual chapter. You may have special needs that we didn't discuss here.

Step Two: Create a GRUB ISO

Now, boot into Linux. We're going to use Ubuntu for this example. Before we set up our virtual machine, we'll need to put the GRUB bootloader on an ISO, since not all computers will load your existing version of GRUB properly. Once you're inside Linux, perform the following steps:
  1. Create a new folder on your desktop and call it "iso." Inside that folder, create one called "boot," and inside the boot folder, create a folder called "grub."
  2. Open a terminal and run the following command: cp /usr/lib/grub/i386-pc/* /home/yourusername/Desktop/iso/boot/grubObviously, replace "yourusername" with your user name.
  3. Next, run: cp /boot/grub/grub.cfg /home/yourusername/Desktop/iso/boot/grub
  4. Run the following command: sudo nano /home/yourusername/Desktop/iso/boot/grub/grub.cfg Scroll down to the section that says "menuentry 'Windows'" or something similar, and delete everything from "menuentry" to the "}" at the end of that section.
  5. Lastly, run: grub-mkrescue -o boot.iso /home/yourusername/Desktop/iso/ If you get an error saying "xorriso: not found," you may have to install the xorriso package with: sudo apt-get install xorriso When you're done, you should have a file called boot.iso in your home directory. Copy this to a flash drive or to your Windows partition.

Step Three: Boot Into Your New Virtual Machine

Now, it's time to boot back into Windows and get this sucker up and running. Once you've returned to Windows:
  1. Run VirtualBox as an administrator. Click the New button and name your virtual machine. Choose the amount of RAM to allocate to the virtual machine as normal.
  2. At the next step, choose "Use an existing virtual hard drive file." Click the browse button on the right, and browse to the VMDK file we made earlier. Click the Create button. If all goes well, you should see it show up in VirtualBox's sidebar.
  3. Select your new virtual machine in the sidebar and click the Settings button. Under Storage, select "Controller: IDE" and click the plus sign next to it. Press "Choose Disk" and navigate to the boot.iso file we created earlier. Click OK and return to the main VirtualBox screen.
  4. Select your new virtual machine and click the Start button. Choose Linux from the GRUB menu that pops up.
  5. If all goes well, you should see your Linux installation's login screen. You can log in, install VirtualBox's Guest Additions, and use your Linux partition without shutting down Windows!
IMPORTANT NOTE: Never try to mount or read from your Windows partition while you're running Linux in VirtualBox. This is where the danger of this method comes in. If you try to read your Windows partition, your machine will crash and you could cause data corruption (since your host OS is already using that partition). In fact, I recommend removing it from your fstab file so it never pops up in Linux, thus keeping you much safer.

full article on :https://lifehacker.com/how-to-dual-boot-and-virtualize-the-same-partition-on-y-493223329

Comments

Popular posts from this blog

Hidden Wiki

Welcome to The Hidden WikiNew hidden wiki url 2015 http://zqktlwi4fecvo6ri.onion Add it to bookmarks and spread it!!!
Editor's picks Bored? Pick a random page from the article index and replace one of these slots with it.
The Matrix - Very nice to read. How to Exit the Matrix - Learn how to Protect yourself and your rights, online and off. Verifying PGP signatures - A short and simple how-to guide. In Praise Of Hawala - Anonymous informal value transfer system. Volunteer Here are five different things that you can help us out with.
Plunder other hidden service lists for links and place them here! File the SnapBBSIndex links wherever they go. Set external links to HTTPS where available, good certificate, and same content. Care to start recording onionland's history? Check out Onionland's Museum Perform Dead Services Duties. Introduction PointsAhmia.fi - Clearnet search engine for Tor Hidden Services (allows you to add new sites to its database). DuckDuckGo - A Hidden S…

fix idm integration on chrome

Chrome Browser IntegrationI do not see IDM extension in Chrome extensions list. How can I install it? 
How to configure IDM extension for Chrome?Please note that all IDM extensions that can be found in Google Store are fake and should not be used. You need to install IDM extension manually from IDM installation folder. Read in step 2 how to do it.

1. Please update IDM to the latest version by using "IDM Help->Check for updates..." menu item

2. I don't see "IDM Integration module" extension in the list of extensions in Chrome. How can I install it?

Press on Chrome menu (arrow 1 on the image), select "Settings" menu item (arrow 2 on the image) and then select "Extensions" tab (arrow 3 on the image). After this open IDM installation folder ("C:\Program Files (x86)\Internet Download Manager" by default, arrow 4 on the image) and drag and drop "IDMGCExt.crx" (arrow 5 on the image) file into "Extensions" page opened in…

Explainer: The nico-teen brain

Explainer: The nico-teen brain The adolescent brain is especially vulnerable to the addictive effects of nicotine BY  TERESA SHIPLEY FELDHAUSEN 7:00AM, AUGUST 19, 2015 Nicotine (black triangle towards center left) tricks the nerve cell (neuron) into sending a message to release more dopamine (yellow dots). Those molecules enter the space (synapse) between one nerve cell and the next. When they get picked up by neighboring cells, this gives users a feel-good high. It also creates the risk of addiction and other health problems.  EMail Print Twitter Facebook Reddit Google+ NATIONAL INSTITUTE ON DRUG ABUSE, ADAPTED BY J. HIRSHFELD Nicotine is the addictive chemical in tobacco smoke and e-cigarette vapors. And doctors say the teenage brain is no place for it to end up. Nicotine can reach the brain within seven seconds of puffing on a cigar, hookah, cigarette or electronic cigarette.
The area of the brain responsible for emotions and controlling our wild impulses is known as the prefrontal c…