 |
02-06-2011, 10:13 AM
|
#1 (permalink)
|
|
XLr8
Join Date: Sep 2008
Posts: 637
|
Clone VirtualBox HDD to physical drive
i have arch linux on VirtualBox with *.vdi as the HDD of 50 GB.
how do i transfer/clone it to my 250 GB external drive.
cannot find command on VBox cli.
clonezilla didnt help. it did not find and external drives
__________________
Quote:
There are more things in heaven and earth, Horatio,
Than are dreamt of in your philosophy.
|
|
|
|
|
Advertisements. Register and be a member of the community to get rid of them.
|
|
Advertisement
|
|
02-06-2011, 02:18 PM
|
#2 (permalink)
|
|
Human Spambot
Join Date: Nov 2008
Location: Guwahati
Posts: 5,782
|
Re: Clone VirtualBox HDD to physical drive
|
|
|
02-06-2011, 04:40 PM
|
#3 (permalink)
|
|
XLr8
Join Date: Sep 2008
Posts: 637
|
Re: Clone VirtualBox HDD to physical drive
^^ thats the thing i dont want.
its not VDI -> VDI
its VDI -> physical device
trying out 1st solution:
1. convert VDI to RAW
Code:
VBoxManage clonehd -format RAW <filename>.vdi <filename>.raw
2. use dd to copy raw to physical (unmounted) drive
Code:
$ dd if=/image.raw of=/dev/hda
3. force check disk on first startup
__________________
Quote:
There are more things in heaven and earth, Horatio,
Than are dreamt of in your philosophy.
|
Last edited by arpanmukherjee1; 02-06-2011 at 05:06 PM.
|
|
|
02-06-2011, 07:16 PM
|
#4 (permalink)
|
|
Mozilla Rep
Join Date: Apr 2011
Location: Lucknow
Posts: 1,471
|
Re: Clone VirtualBox HDD to physical drive
Navigate to .vdi, Copy it, Navigate to external drive, Paste? I don't know much of how these things work..so I'm probably wrong.
|
|
|
02-06-2011, 08:29 PM
|
#5 (permalink)
|
|
Simply a DIGITian
Join Date: Nov 2007
Location: Kolkata
Posts: 2,953
|
Re: Clone VirtualBox HDD to physical drive
^^Did you even read @OP's query, or just posting for the sake of post count.
At least read what he's asking for. He's not asking for copy pasting that .vdi thing, that's damn simple.
He has installed Arch on virtual PC, now he wants it to transfer it to his physical HDD(not the .vdi, but the Arch Setup)
__________________
- Read The Forum RULES First.
- Before PM'ing Or Asking Any Questions To Any Mod Read The FAQ's
- Before Starting A New Thread Read The STICKY THREADS First
- Before Participating In Bazaar Section Read The BAZAAR RULES
|
|
|
02-06-2011, 09:16 PM
|
#6 (permalink)
|
|
Mozilla Rep
Join Date: Apr 2011
Location: Lucknow
Posts: 1,471
|
Re: Clone VirtualBox HDD to physical drive
^I bothered reading it and that's all I understood from it. I had a feeling that I'm wrong with this and that's why I mentioned
Quote:
|
I don't know much of how these things work..so I'm probably wrong.
|
Posting for the sake of post count is stupid and not my code of ethics
Blame my stupidity cause I still don't understood what either of you guys mean.
Edit: Oh wait got it (after reading it the other way around)..I've encountered that problem and I finally gave up.
|
|
|
02-06-2011, 11:42 PM
|
#7 (permalink)
|
|
Stuck in Time...
Join Date: May 2009
Location: Land of Logic
Posts: 2,275
|
Re: Clone VirtualBox HDD to physical drive
Well, the way I understood the problem is, that the OP needs to copy files FROM the .vdi file (which is the virtual hard disk, on which Linux is installed), to a Real physical hard drive.
Now assuming that a Pen Drive works in the Virtual Linux that is installed, can't OP just copy the entire files present on the disk and copy it to the Pen drive.
Then paste the entire contents of the pen drive to the physical drive, from the host OS.
Havn't worked on Linux, so don't know if this could work. But I would have followed this procedure, if I had to clone the contents of a Virtual Windows.
__________________
Marty: Hey, Doc, we better back up. We don't have enough road to get up to 88.
Doc Brown: Roads? Where we're going, we don't need, "roads!" :)
──── On the Internet you can be Anything you want. It's Strange that, so many people choose to be Stupid! ────
|
|
|
03-06-2011, 12:30 AM
|
#8 (permalink)
|
|
Sami Hyypiä, LFC legend
Join Date: Jun 2007
Location: Нью-Дели
Posts: 2,138
|
Re: Clone VirtualBox HDD to physical drive
Well one thing can be done. Run Virtualbox, and add a new hard disk larger than the first. Then format the entire "hard disk" to ext4, mount it, and back up the entire image of first hard disk/partitions into the second hard disk in Virtualbox. (using dd)
Access the share in your host, and you should get the image.
However I doubt transferring your Virtualbox's installation will be that simple.
Quote:
Originally Posted by vineet369
Well, the way I understood the problem is, that the OP needs to copy files FROM the .vdi file (which is the virtual hard disk, on which Linux is installed), to a Real physical hard drive.
Now assuming that a Pen Drive works in the Virtual Linux that is installed, can't OP just copy the entire files present on the disk and copy it to the Pen drive.
Then paste the entire contents of the pen drive to the physical drive, from the host OS.
Havn't worked on Linux, so don't know if this could work. But I would have followed this procedure, if I had to clone the contents of a Virtual Windows.
|
Nope. Will copying contents of C: from one PC to another transfer a Windows installation?
|
|
|
03-06-2011, 04:04 PM
|
#9 (permalink)
|
|
XLr8
Join Date: Sep 2008
Posts: 637
|
Re: Clone VirtualBox HDD to physical drive
the "dd" image copy did not work.
the *.raw image did not boot. but contents are displayed when its mounted.
trying to install GRUB and boot it
looking for alternate solutions.
BTW copy paste a vdi file or installation contents.... its not what i wanted nor expected as a response......
__________________
Quote:
There are more things in heaven and earth, Horatio,
Than are dreamt of in your philosophy.
|
|
|
|
03-06-2011, 06:57 PM
|
#10 (permalink)
|
|
Mozilla Rep
Join Date: Apr 2011
Location: Lucknow
Posts: 1,471
|
Re: Clone VirtualBox HDD to physical drive
^I misunderstood your query, now please move on to other solutions..
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|