User Tools

Site Tools


raspberry_pi_emulator

This is an old revision of the document!


Raspberry pi emulator

I use raspberry pi emulator to build owncloud. See https://sourceforge.net/projects/raspberrypiemulator/ for installation. This is to avoid too much writing on SD card and breaking it too quickly.

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"

Share this page:

raspberry_pi_emulator.1464983227.txt.gz · Last modified: 2016/06/03 21:47 by sgripon