<br><br><div class="gmail_quote">On Fri, Feb 27, 2009 at 8:58 AM, John-Thomas Richards <span dir="ltr"><<a href="mailto:jtr@jrichards.org">jtr@jrichards.org</a>></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="Ih2E3d">On Thu, Feb 26, 2009 at 02:43:11PM -0500, Bill Littlejohn wrote:<br>
> On Thu, Feb 26, 2009 at 2:30 PM, John-Thomas Richards <<a href="mailto:jtr@jrichards.org">jtr@jrichards.org</a>>wrote:<br>
><br>
> > My laptop came with a restore partition for another OS. I would like to<br>
> > install this operating system in a virtual machine with VirtualBox. My<br>
> > Google-fu is failing me because all I can find is references to<br>
> > installing a virtual machine *into* a physical partition, not installing<br>
> > a virtual machine *from* a physical partition. Anyone here have a clue<br>
> > if this is possible?<br>
><br>
</div><div class="Ih2E3d">> Sure - just copy the partition to a different drive.<br>
> There are a couple of ways I can think of.<br>
> What I would do requires an external USB hard drive of equivalent (or<br>
> larger) capacity to your laptop hard drive.<br>
> Boot from a live-cd, then dd your laptop drive to the USB drive. This will<br>
> overwrite anything on the USB drive with the copy.<br>
> Setup your VM and connect the USB drive to it. You should be able to boot<br>
> the restore partition from there.<br>
> I assume the drivers would be somewhat borked since it's likely preloaded<br>
> with your laptop hardware drivers. You'll want to install the virtual<br>
> hardware drivers as soon as possible to straighten things out.<br>
> Bill<br>
<br>
</div>My drive is partitioned thusly:<br>
<br>
/dev/sda1 /media/restore_partition<br>
/dev/sda2 swap<br>
/dev/sda3 /<br>
/dev/sda4 /home<br>
<br>
Is booting from a live CD necessary?<br>
<font color="#888888">--<br>
john-thomas<br>
------<br>
Why should I fear death? If I am, death is not. If death is, I am not.<br>
Why should I fear that which cannot exist when I do?<br>
Epicurus, philosopher (c.341-270 BCE)<br>
</font><div><div></div><div class="Wj3C7c">_______________________________________________<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>No, booting from a live cd isn't necessary. That's just a simple way to get the bootloader and the restore partition onto the second drive without worrying too much about partition tables and boot loaders.<br>
When I did this, I setup the disk more or less how I thought the restore expected the disk to look like.<br>I copied the bootloader and the restore partition to the target drive, and had a a second partition there just so the number of partitions was right. The restore isn't likely to ask anything and will put everything on the second partition. That worked out fine in my case.<br>
Can you tell me how big those partitions are, how much space is available, and where you want to put your new VM?<br>Bill<br><br>