# Raspberry Pi 4 Installation

**URL:** https://meta.discourse.org/t/raspberry-pi-4-installation/222338
**Category:** Self-hosting
**Tags:** arm
**Created:** [March 29, 2022, 1:52pm UTC](https://meta.discourse.org/t/raspberry-pi-4-installation/222338 "2022-03-29T13:52:21Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![bloodshot\_pico](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bloodshot_pico/32/151594_2.png) [@bloodshot\_pico](https://meta.discourse.org/u/bloodshot_pico)
#### Post date: [March 29, 2022, 1:52pm UTC](https://meta.discourse.org/t/raspberry-pi-4-installation/222338/1 "2022-03-29T13:52:21Z")

</div>

So I’m trying to install this on a Raspberry Pi 4 with 4GB of RAM and it seems to be stuck at,  
“LOG: database system is shut down”

Edit:  
I waited a little more for the Pi to continue to see if it was me being impatient, and it was 50/50. The Pi continued however, I got a different error saying:  
“docker: Error response from daemon: error creating overlay mount to /var/lib/docker/overlay2/Some weird String/merged: invalid argument.”

It hasn’t moved from this for a good 25+ minutes, I’m wondering if it should be this slow or if something is wrong?

Any help would be greatly appreciated,  
~Blood

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [March 29, 2022, 3:36pm UTC](https://meta.discourse.org/t/raspberry-pi-4-installation/222338/2 "2022-03-29T15:36:57Z")

</div>

> [@bloodshot\_pico](#):
>
> “docker: Error response from daemon: error creating overlay mount to /var/lib/docker/overlay2/Some weird String/merged: invalid argument.”

That sounds like a disk write error. May be caused by a non-ideal SD card.

What is the output of:

```plaintext
hdparm -Tt /dev/mmcblk0
dd if=/dev/zero of=./largefile bs=1M count=1024

```

?

Mine gets:

```plaintext
 sudo hdparm -Tt /dev/mmcblk0

/dev/mmcblk0:
 Timing cached reads: 1972 MB in 2.00 seconds = 986.72 MB/sec
 Timing buffered disk reads: 132 MB in 3.00 seconds = 44.00 MB/sec

root@raspberrypi:/var/discourse# dd if=/dev/zero of=./largefile bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 3.91817 s, 274 MB/s

```

---

<div class="post-metadata">

### Author: ![bloodshot\_pico](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bloodshot_pico/32/151594_2.png) [@bloodshot\_pico](https://meta.discourse.org/u/bloodshot_pico)
#### Post date: [March 29, 2022, 4:00pm UTC](https://meta.discourse.org/t/raspberry-pi-4-installation/222338/3 "2022-03-29T16:00:18Z")

</div>

My output is:

```plaintext
/dev/mcblk0:
 Timing cached reads: 1610 MB in 2.00 seconds = 806.34 MB/sec
 Timing buffered disk reads: 126 MB in 3.02 seconds = 41.75 MB/sec

root@pitwo: /var/discourse# dd if=/dev/zero of=./largefile bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 183.966 s, 5.8MB/s

```

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [March 29, 2022, 4:19pm UTC](https://meta.discourse.org/t/raspberry-pi-4-installation/222338/4 "2022-03-29T16:19:55Z")

</div>

> [@bloodshot\_pico](#):
>
> `5.8MB/s`

Ouch, that disk write speed is 2% of mine. That will be troublesome and will indeed result in timeouts while committing the bootstrapped image to disk.

---

<div class="post-metadata">

### Author: ![bloodshot\_pico](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bloodshot_pico/32/151594_2.png) [@bloodshot\_pico](https://meta.discourse.org/u/bloodshot_pico)
#### Post date: [March 29, 2022, 4:26pm UTC](https://meta.discourse.org/t/raspberry-pi-4-installation/222338/5 "2022-03-29T16:26:10Z")

</div>

Yeah I’m using a a SanDisk Extreme 64 GB microSDXC Memory Card Red/Gold 160MB/s  
Is there a better option I should be using for this?

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [March 29, 2022, 4:35pm UTC](https://meta.discourse.org/t/raspberry-pi-4-installation/222338/6 "2022-03-29T16:35:08Z")

</div>

Okay, that first test on mine was maybe a dud. I just ran and got a more reasonable number:

```plaintext
sudo dd if=/dev/zero of=/home/pi/test bs=8k count=50k conv=fsync; sudo rm -f /home/pi/test
51200+0 records in
51200+0 records out
419430400 bytes (419 MB, 400 MiB) copied, 14.3804 s, 29.2 MB/s

```

Found the test and a table with good SD cards suggestions at [microSD Card Benchmarks | Raspberry Pi Dramble](https://www.pidramble.com/wiki/benchmarks/microsd-cards#4-model-b)

---

<div class="post-metadata">

### Author: ![bloodshot\_pico](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bloodshot_pico/32/151594_2.png) [@bloodshot\_pico](https://meta.discourse.org/u/bloodshot_pico)
#### Post date: [March 29, 2022, 4:53pm UTC](https://meta.discourse.org/t/raspberry-pi-4-installation/222338/7 "2022-03-29T16:53:48Z")

</div>

I just ordered a 128GB SanDisk Extreme Pro, does it matter between the A1 and the A2 App performance at all?
