Note 1 : Instructions include Image Resize from the default to 3Gb.
Note 2 : Instructions include removal of 'raspi-copies-and-fills' package, which causes O/S upgrade issue in QEMU (Bug #1573473)
- Download QEMU RaspberryPi from http://sourceforge.net/projects/rpiqemuwindows/
- Extract "qemu.zip" to your preferred location (i.e. D:\QEMU\)
- To resize QEMU image, Open Command Prompt and type the following commands. If successful "Image resized." will be displayed
- In Windows Explorer navigate to D:\QEMU
- Double click "run.bat" to start QEMU RaspberryPi
- In Raspi-config tool, Select "
" to exit - Type "sudo fdisk -l", it should 2 partitions, second beginning 122880
- Type "sudo fdisk /dev/sda"
- In FDisk type the following commands...
- Warning messages will be displayed, Type "sudo reboot" to reboot O/S
- Enter RaspberryPi credentials at login prompt...
- Type "sudo resize2fs /dev/sda2"
- Type "df -h" to check disk size is now 3Gb
- Type "sudo apt-get update"
- Type "sudo apt-get purge raspi-copies-and-fills" to remove the raspi-copies-and-fills package
- Type "Y" at continue prompt
- Type "sudo apt-get autoclean" to perform a APT Cache Clear
- Type "sudo apt-get upgrade -f" to perform a APT Upgrade and Fix Dependencies
- Type "Y" at continue prompt
- Type "N" at bashrc prompt (Default)
- Select "Yes" to restart services during package upgrades
- Type "sudo reboot" to reboot O/S
- Enter RaspberryPi credentials at login prompt
- Type "startx" to launch a graphical session
- DONE.
cd D:\QEMU\qemu\
qemu-img.exe resize 2012-07-15-wheezy-raspbian.img +3G
d (to delete a partion)
2 (to select the second partion)
n (to create a new partion)
p (to select primary partition type)
2 (to select the second partion)
122880 (first sector)
10080255 (default last sector)
w (save settings, if you made a mistake select 'q' and restart step)
Username : pi
Password : raspberry