LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-02-2021, 10:30 AM   #1
prosaic
LQ Newbie
 
Registered: Apr 2021
Posts: 3

Rep: Reputation: Disabled
Best way to convert Ubuntu VM to dual boot and keep data and applications?


Hi, I would like to convert my Ubuntu 20.04 virtual machine to a dual boot option alongside Windows 10 on my newish Dell laptop (with EFI) but am not sure about the best way to go about doing this.

If possible I would like to keep everything in the VM as it is including all files and applications.

This guide (https://www.tecmint.com/install-ubun...ows-dual-boot/) explains how to use a utility such as Rufus to do a fresh install on a machine already running Windows.

Would it be best to follow this guide and then reconstruct my setup from a backup of my VM? (If so, should I *not* backup my system as a disk image?) I have a USB drive from an old Windows machine that I could partition and reformat for the backup (it's got 90 GB of free space and I could free up more). I also have a flash drive I could use for the fresh install of Ubuntu.

Or is there a better way?

My Ubuntu Virtual Box:
Storage: 128 GB (52 GB filesystem partition with 17 GB free and 75 GB of unallocated space)
OS specs: 64-bit, X11 windowing system, Gnome 3.36, Ubuntu 20.04

My Windows host system:
Storage: 475 GB Bitlocker-encrypted basic data partition (with 265 GB free),
EFI partition (150 MB), recovery partition (990 MB)
OS specs: 64-bit, Windows 10 Pro

Thanks in advance for any advice.
 
Old 04-02-2021, 02:54 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,993

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
Not sure what the best way is but maybe I'd take a partition copy of the vm using gparted.

I'd create an install of fresh ubuntu on the physical system. Then I'd copy off the partition/partitions.

There are some slight issues however. If your vm isn't a uefi then you have to fix all of that.

Could be some loader/grub issues too. Some predictive naming.

Other way might be to copy off data. Get list of programs then new install and install programs and copy data.

I'm sure there is a V2P program too. Not the typical way

Last edited by jefro; 04-06-2021 at 03:04 PM.
 
1 members found this post helpful.
Old 04-06-2021, 07:09 AM   #3
DNioce
LQ Newbie
 
Registered: Mar 2021
Location: Canada
Distribution: Asahi, Mint XFCE,Debian XFCE, Bionic Pup 8.0, Ubuntu 20.04
Posts: 7

Rep: Reputation: Disabled
Restore From Backup

I agree with Jefro, I have had some success using his suggested method.

As I am not terribly skilled with computers, here's how I would approach it:

Create a fresh Ubuntu install alongside windows. This would be the simplest method to get a dual boot up and running.

Create a backup of your VM with a program called Timeshift.

Restore backup into your fresh Ubuntu install and you should be good to go.

There are a lot of how to's on Timeshift if you've never used it before.

Let us know how you make out.
 
1 members found this post helpful.
Old 04-06-2021, 07:27 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,897

Rep: Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318
but why don't you create two VMs (one for Windows and another one for Ubuntu). You can share data between them (if you wish)
 
1 members found this post helpful.
Old 04-06-2021, 08:29 AM   #5
prosaic
LQ Newbie
 
Registered: Apr 2021
Posts: 3

Original Poster
Rep: Reputation: Disabled
solution

Thanks very much, Jefro, DNioce and pan64.

In case it helps others in a similar situation, here's what eventually worked for me. Following Jefro's advice, rather than copy the whole machine I just saved the data I needed on a flash drive and transferred it after the install. It wasn't too time-consuming to reinstall all my apps manually.

Can't overpraise the tecmint guide -- it's very thorough and clear. It made the process of partitioning the hard drive and creating an installation drive straightforward and relatively easy to do. I didn't change any of the default settings in Rufus, and it worked perfectly.

I did run into an issue because my Dell's storage controller used RAID by default. My first attempt at installing Ubuntu failed because of this. Then, when I first tried to change from RAID to AHCI, Windows wouldn't boot. What worked was using the terminal to turn on safe mode, go into BIOS in safe mode and change from RAID to AHCI. Windows then automatically downloaded the necessary AHCI controller, and all went well after that.
 
Old 04-06-2021, 08:39 AM   #6
prosaic
LQ Newbie
 
Registered: Apr 2021
Posts: 3

Original Poster
Rep: Reputation: Disabled
two VMs

Quote:
Originally Posted by pan64 View Post
but why don't you create two VMs (one for Windows and another one for Ubuntu). You can share data between them (if you wish)
Thanks for the suggestion, pan 64. I wanted to stop using the VM because the performance wasn't great, despite giving it lots of storage/processors/RAM etc. Also, I wasn't able to use some hardware effectively or at all, including the integrated webcam.

With Ubuntu as a dual boot option I'm not experiencing any of those issues (so far).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Running dual boot Windows and Ubuntu 14.04 LTS, want to repartition to keep Ubuntu and replace Windows with CentOS new_eyes_open Linux - Newbie 2 05-10-2016 12:32 PM
best way to learn and keep learning ubuntu linux linuxarco1 Linux - Newbie 19 11-21-2014 09:08 AM
Best way to keep 'user home' in-sync between two laptops running ubuntu 12.04 rishipandit007 Linux - General 1 07-28-2013 12:03 PM
Way or command to keep track all the previously run applications from all terminals? archieval Linux - General 3 04-15-2010 12:39 PM
Dual boot Dual Drive Ubuntu Jaunty & XP - Advice on Best Way? Paul Langdon Linux - Newbie 4 05-28-2009 05:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration