User Tools

Site Tools


This is an old revision of the document!

Raspberry pi emulator

I use raspberry pi emulator to build owncloud. See for installation.

The image provided is too small, so I enlarged the disk and the root partition for the build. On your PC, add additionnal space by resizing the image file:

qemu-img resize "raspberry-pi-emulator-1.6/LINUX/Raspberry Pi Emulator/SharedSupport/2016-02-26-raspbian-jessie.img" +6G

Then in emulator on raspbian, install gparted:

sudo apt-get install gparted

Launch it from Menu after starting in graphical mode using startx command. Then resize partition to the maximum available. Shutdown emulator. After that, we will create devices from the image using kpartx, clean and resize the filesystem to the maximum:

sudo kpartx -a "raspberry-pi-emulator-1.6/LINUX/Raspberry Pi Emulator/SharedSupport/2016-02-26-raspbian-jessie.img"
sudo e2fsck -f /dev/mapper/loop0p2
sudo resize2fs /dev/mapper/loop0p2
sudo kpartx -d "raspberry-pi-emulator-1.6/LINUX/Raspberry Pi Emulator/SharedSupport/2016-02-26-raspbian-jessie.img"
raspberry_pi_emulator.1464983038.txt.gz · Last modified: 2016/06/03 21:43 by sgripon