Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

QEMU

540 bytes added, 11:59, 11 January 2012
no edit summary
== Tips ==
=== Resize Rootfs Partition ===
We will resize our rootfs partition adding 1 GB at end.
First we create a new raw file using qemu-img as:<pre>$ qemu-img create -f raw addon.raw 1G </pre>With addon.raw we concat it at end of our image file as: <pre>$ cat addon.raw &gt;&gt; igep-nano.img </pre>Next step it's modify the partition table information. We will use cfdisk utilitiy for modify the information. <pre>$ sudo cfdisk igep-nano.img </pre>Next step it's select your rootfs partition as this picture shows
$ qemu-img create -f raw addon[[Image:Cfdisk_change_size_partition.png|thumb|center]]Select the menu '''RESIZE''' and select '''CHANGE&nbsp;SIZE'''&nbsp;option.raw 1G
With addon[[Image:Cfdisk_change_size_partition_option.raw we concat it png|thumb|center]]Select resize at end of our image file as:'''END'''.
$ cat addon[[Image:Cfdisk_resize_end.raw &gt;&gt; igep-nanopng|thumb|center]]Enter the MAX new size and press enter key.img
Next step it's modify the partition table information. We will use cfdisk utilitiy for modify write the changes to the disk using the information. $ sudo cfdisk igep-nano'''commit''' menu option and select '''YES''' (confirm the changes).img