Increase Raspberry Pi disk size in QEMU.

If you need to do that quickly please refer to this Raspberry Pi forum.

I am learning ARM assembly language. Yay!

But there is an issue. I have no any ARM32 CPU device to practice what I’ve learned so far. I have iPhone 5s and an Android device but those are powered by ARM64 CPU. Which turns out very different.

So here’s my solution to the issue. Fortunately the tutorial shows me to use QEMU and Raspberry Pi to emulate ARM32 device. Thats pretty straightforward.

But at some point, I figured out that the disk provided by default is only 1.5 GB which is very small. I need more room!

Above image is the final result from 1.5G to 7.4G disk size.

To achieve that, here’s the steps:

# inside qemu emulated raspberry pi
# You may need to perform sudo
vim /etc/udev/rules.d/90-qemu.rules

then write this down,

KERNEL=="sda", SYMLINK+="mmcblk0" 
KERNEL=="sda?", SYMLINK+="mmcblk0p%n",

Then save and reboot!

After logged in you need to do this,

sudo raspi-config

and find expand filesystem options like this,

it may be different between raspberry pi version.

Then, allow Raspberry Pi to do the rest.

Then reboot.

Now after logged in you can recheck with df -h .

PS:

I found no issue to follow above rules. So, if you find an issue please refer to the original forum.

https://www.raspberrypi.org/forums/viewtopic.php?t=42279

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How to Become a Freelance Web Developer in 2021?

What’s a makefile and how can be useful?

How to fix Elgato Wave 3 Microphone Update Issues

Concurrency & Parallelism Explained

The next basics in PHP Part 1: beyond the usual

Models relationships — Ruby Active Records

‘Threat-Modeling’, the buzz word!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Muhammad Muizzsuddin

Muhammad Muizzsuddin

More from Medium

Running Seq in Linux containers on Windows using Docker Compose

Seq UI

Install Ubuntu inside Windows -WSL2

Base Images: A Faster Way To Provision KVM Guests — Part 2

How to create a new document in Gnome Files (Nautilus)