[MeeGo-SDK] expand memory space in SDK/mount point
Bintian Wang
bintian.wang at windriver.com
Thu Sep 9 03:28:11 UTC 2010
There is one easy way to expand the space of SDK:
(1) mkdir tmp rootfs
(2) mount -o loop sdk-xxx.img tmp
(3) cp -raf tmp/* rootfs/
(4) umount /tmp
(5) mic-chroot rootfs
Then you can do your own work under rootfs.
Hope it can give you help.
Bintian
On Thu, 2010-09-09 at 11:04 +0800, Wu, Jackie wrote:
> Add a second disk may not help to install packages since the packages
> will be installed to default folders like “/usr/lib”, “/usr/share/”.
>
> Another solution is to expand the raw disk size with dd on the host
> and to change partition with some partition tools inside the guest.
>
>
>
> Suppose you want to expand the raw image to 8Gb. (You original image
> should be <8Gb)
>
> 1. Expand it with dd.
>
> dd if=/dev/zero of=xxx.raw bs=1G seek=8 count=0
>
> 2. Change partition information of the disk inside Qemu. You can
> use parted or gparted. Normally I boot gparted-live cd (you can use
> ubuntu live cd as well) inside qemu and mount that raw image as the
> second disk. Then you can use the gparted inside ubuntu to resize the
> partition of that raw image.
>
>
>
> It only works for raw disk.
>
> -Jackie
>
>
>
>
>
> From: meego-sdk-bounces at meego.com [mailto:meego-sdk-bounces at meego.com]
> On Behalf Of Lv, Zhiyuan
> Sent: Thursday, September 09, 2010 10:00 AM
> To: Chang, Esmond; meego-sdk at meego.com
> Subject: Re: [MeeGo-SDK] expand memory space in SDK/mount point
>
>
>
>
> Hi Esmond,
>
>
>
> We do not have an easy way to expand the disk space. However, you
> might be able to get extra space by adding another disk file following
> below step:
>
>
>
> 1, using "qemu-img" to create a disk image:
>
>
>
> qemu-img create -f raw second_disk.raw 1G
>
>
>
> 2, add the disk to qemu-gl by adding "-hdb second_disk.raw" into
> command line.
>
>
>
>
>
> 3, start qemu-gl into console, and run "fdisk" to create partition for
> "/dev/sdb", say "/dev/sdb1"
>
>
>
>
>
> 4, run "mkfs.ext3 /dev/sdb1" to format the partition.
>
>
>
>
>
> 5, mount the partition to a directory, for example,
> "mount /dev/sdb1 /mnt", and then you get extra disk space. Thanks!
>
>
>
>
>
> Regards,
>
>
> -Zhiyuan
>
>
>
>
>
>
> ______________________________________________________________________
> From:meego-sdk-bounces at meego.com [mailto:meego-sdk-bounces at meego.com]
> On Behalf Of Chang, Esmond
> Sent: 2010年9月8日 18:38
> To: meego-sdk at meego.com
> Subject: [MeeGo-SDK] expand memory space in SDK/mount point
>
> Hi,
>
>
>
> I install the handset SDK and running fine in my FC13 and I also
> download the kernel source compile/generate without issue inside SDK.
> But when I df the mount point of the SDK /dev/loop0, the free space
> become 0, all of the 2883636 space shows 100% used. I can’t yum
> install anything inside the SDK because of no free space. Anyone have
> suggestion to expand the memory space of the SDK? Thanks..
>
>
>
> Regards,
>
> Esmond
>
>
>
>
> _______________________________________________
> MeeGo-sdk mailing list
> MeeGo-sdk at meego.com
> http://lists.meego.com/listinfo/meego-sdk
More information about the MeeGo-sdk
mailing list