Forum     

Go Back   Digit Technology Discussion Forum > Software > Software Q&A
Register FAQ Calendar Mark Forums Read

Software Q&A Having trouble with software? Find solutions here


Reply
 
LinkBack Thread Tools Display Modes
Old 02-06-2011, 10:13 AM   #1 (permalink)
XLr8
 
arpanmukherjee1's Avatar
 
Join Date: Sep 2008
Posts: 637
Default 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.
arpanmukherjee1 is offline   Reply With Quote
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 02-06-2011, 02:18 PM   #2 (permalink)
Human Spambot
 
Join Date: Nov 2008
Location: Guwahati
Posts: 5,782
Default Re: Clone VirtualBox HDD to physical drive

This link should help -

brian's blog - probably the best blog on the web. - Clone Your Hard Drive in VirtualBox with: VBoxManage clonevdi

http://srackham.wordpress.com/clonin...tual-machines/
thetechfreak is offline   Reply With Quote
Old 02-06-2011, 04:40 PM   #3 (permalink)
XLr8
 
arpanmukherjee1's Avatar
 
Join Date: Sep 2008
Posts: 637
Default 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.
arpanmukherjee1 is offline   Reply With Quote
Old 02-06-2011, 07:16 PM   #4 (permalink)
Mozilla Rep
 
sygeek's Avatar
 
Join Date: Apr 2011
Location: Lucknow
Posts: 1,471
Default 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.
sygeek is online now   Reply With Quote
Old 02-06-2011, 08:29 PM   #5 (permalink)
Simply a DIGITian
 
krishnandu.sarkar's Avatar
 
Join Date: Nov 2007
Location: Kolkata
Posts: 2,953
Default 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
krishnandu.sarkar is offline   Reply With Quote
Old 02-06-2011, 09:16 PM   #6 (permalink)
Mozilla Rep
 
sygeek's Avatar
 
Join Date: Apr 2011
Location: Lucknow
Posts: 1,471
Default 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.
sygeek is online now   Reply With Quote
Old 02-06-2011, 11:42 PM   #7 (permalink)
Stuck in Time...
 
Vyom's Avatar
 
Join Date: May 2009
Location: Land of Logic
Posts: 2,275
Default 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! ────
Vyom is offline   Reply With Quote
Old 03-06-2011, 12:30 AM   #8 (permalink)
Sami Hyypiä, LFC legend
 
Liverpool_fan's Avatar
 
Join Date: Jun 2007
Location: Нью-Дели
Posts: 2,138
Default 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 View Post
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?
__________________
Experience true education in Computer Science - http://www.udacity.com | http://www.coursera.org

Spoiler:
Read before asking / messaging any moderator for any query: FAQ + answers for new members

Read all the sticky threads before asking any type of query. Most basic questions are answered in those.
Don't use forum for chatting. Visit http://webchat.freenode.net/?channels=krow, enter nick and connect.
Liverpool_fan is offline   Reply With Quote
Old 03-06-2011, 04:04 PM   #9 (permalink)
XLr8
 
arpanmukherjee1's Avatar
 
Join Date: Sep 2008
Posts: 637
Default 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.
arpanmukherjee1 is offline   Reply With Quote
Old 03-06-2011, 06:57 PM   #10 (permalink)
Mozilla Rep
 
sygeek's Avatar
 
Join Date: Apr 2011
Location: Lucknow
Posts: 1,471
Default Re: Clone VirtualBox HDD to physical drive

^I misunderstood your query, now please move on to other solutions..
sygeek is online now   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by topgear
- by abhidev
- by clmlbx
- by Sarath

Advertisement




All times are GMT +5.5. The time now is 03:32 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2