Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

QEMU

13 bytes added, 12:52, 11 January 2012
no edit summary
Parameters:<br>
-m&nbsp;: Memory assigned to the Virtualized board in Mega Bytes.
== Tips ==
=== Resize Rootfs Partition ===
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 concatenate 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 utility for modify the information.
<pre>$ sudo cfdisk igep-nano.img </pre>
Next step it's select your rootfs partition as this picture shows
We will write the changes to the disk using the '''commit''' menu option and select '''YES''' (confirm the changes).
The next step it's update the filesystem file-system structure.
$ sudo losetup /dev/loop0 igep-nano.img -o $[106496*512]
$ sudo e2fsck -f /dev/loop0
e2fsck 1.41.14 (22-Dec-2010)<br>rootfs: recovering journal<br>Pass 1: Checking inodes, blocks, and sizes<br>Pass 2: Checking directory structure<br>Pass 3: Checking directory connectivity<br>Pass 4: Checking reference counts<br>Pass 5: Checking group summary information<br><br>rootfs: ***** FILE SYSTEM WAS MODIFIED *****<br>rootfs: 11969/5579872 files (0.6% non-contiguous), 1126338/22491136 blocks
$ sudo resize2fs /dev/loop0
$ sudo losetup -d /dev/loop0 <br>
Now you should see your new partition with your wished new size.