Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

QEMU

680 bytes added, 12:04, 11 January 2012
no edit summary
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
[[Image:Cfdisk_change_size_partitionCfdisk change size partition.png|thumb|center]]Select the menu '''RESIZE''' and select '''CHANGE&nbsp;SIZE'''&nbsp;option.
[[Image:Cfdisk_change_size_partition_optionCfdisk change size partition option.png|thumb|center]]Select resize at '''END'''.
[[Image:Cfdisk_resize_endCfdisk resize end.png|thumb|center]]Enter the MAX new size and press enter key.
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 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.