<br><br><div class="gmail_quote">On Thu, Mar 5, 2009 at 8:14 AM, John-Thomas Richards <span dir="ltr">&lt;<a href="mailto:jtr@jrichards.org">jtr@jrichards.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Thu, Feb 26, 2009 at 02:43:11PM -0500, Bill Littlejohn wrote:<br>
</div><div class="im">&gt; On Thu, Feb 26, 2009 at 2:30 PM, John-Thomas Richards &lt;<a href="mailto:jtr@jrichards.org">jtr@jrichards.org</a>&gt;wrote:<br>
&gt;<br>
&gt; &gt; My laptop came with a restore partition for another OS.  I would like to<br>
&gt; &gt; install this operating system in a virtual machine with VirtualBox.  My<br>
&gt; &gt; Google-fu is failing me because all I can find is references to<br>
&gt; &gt; installing a virtual machine *into* a physical partition, not installing<br>
&gt; &gt; a virtual machine *from* a physical partition.  Anyone here have a clue<br>
&gt; &gt; if this is possible?<br>
&gt; &gt; --<br>
&gt; &gt; john-thomas<br>
&gt;<br>
</div><div class="im">&gt; Sure - just copy the partition to a different drive.<br>
&gt; There are a couple of ways I can think of.<br>
&gt; What I would do requires an external USB hard drive of equivalent (or<br>
&gt; larger) capacity to your laptop hard drive.<br>
&gt; Boot from a live-cd, then dd your laptop drive to the USB drive. This will<br>
&gt; overwrite anything on the USB drive with the copy.<br>
&gt; Setup your VM and connect the USB drive to it. You should be able to boot<br>
&gt; the restore partition from there.<br>
&gt; I assume the drivers would be somewhat borked since it&#39;s likely preloaded<br>
&gt; with your laptop hardware drivers. You&#39;ll want to install the virtual<br>
&gt; hardware drivers as soon as possible to straighten things out.<br>
&gt; Bill<br>
<br>
</div>Here is what I have done so far.  I created a 30GB virtual disk (should<br>
be more than enough for what I need; once this is up and running I can<br>
delete another sizable virtual disk that I will no longer need, thus<br>
freeing up more disk space).  I then booted into that virtual machine<br>
with a Knoppix iso and created two partitions; one 10GB partition to<br>
hold the restore files and one 20GB partition to hold the operating<br>
system and applications.  I was able to format both partitions with<br>
NTFS.  I downloaded a Vista Recovery Disk iso that boots to install from<br>
the restore partition.  It works up to the point it looks for the<br>
recovery files on the recovery partition.  The problem is it cannot find<br>
the files on the restore partition since they are not there yet.  For<br>
the life of me I cannot figure out this shared folders thing with a<br>
Linux host and a Linux guest (since I need to copy the files first).<br>
The VirtualBox user manual is not very helpful on this point.<br>
<font color="#888888">--<br>
john-thomas<br>
------<br>
I may disagree with what you have to say, but I shall defend, to the<br>
death, your right to say it.<br>
Voltaire (1694-1778)<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
grlug mailing list<br>
<a href="mailto:grlug@grlug.org">grlug@grlug.org</a><br>
<a href="http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug" target="_blank">http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug</a><br>
</div></div></blockquote></div><br>I haven&#39;t used the shared folders feature, but certainly you would have to install the V.B. tools into the running livecd environment for it to work. I used an external USB drive instead.<br>
You can&#39;t access your system /dev/sda1 partition directly from the VM, because your running your system off that disk - thus the need to make a copy of the partition. <br>Assuming you have an external drive with enough free space attached as /dev/sdb, you could do<br>
&quot;dd if=/dev/sda1 of=/dev/sdb1/restore.img&quot;<br>If you wanted to write the image to your home folder and then get folder sharing working, then you could do<br>&quot;dd if=/dev/sda1 of=/home/me/restore.img&quot;<br>
After you have the image file, and can access it from the VM, then just do the reverse _in the VM_ to write it to the virtual disk partition. i.e. &quot;dd if=/dev/sdb1/restore.img of=/dev/sda1&quot;<br>Be sure you understand where dd is reading and writing before executing the commands - it can hose your system quickly if you reverse the commands. &quot;man dd&quot;<br>
Bill<br><br>