dietPi first update failed Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
bfz
Posts: 2
Joined: Wed Oct 13, 2021 10:57 pm

dietPi first update failed

Post by bfz »

Greetings,
I installed dietpi 32-bit DietPi_RPi-ARMv7-Bullseye.img on a 32GB micro-SD card and start my RaspberriPi v4 with 4GB RAM, as a headless server. It boot up fine. I ssh into it, and it started update the system. But it failed in the middle, with the following "blue" sections. Am sure I'm not the first one encountering this. But didn't find a post of the same nature. I wonder why the file system are read-only.

I also tried the 64-bit image, it wouldn't boot up, at least not so far to enable eth0. So I was not able to ssh into it. Any insight would be appreciated. This is dietPi installation on my 4th RPis. So what could I have missed?

Code: Select all

#### Details:
- Date           | Wed Oct 13 20:47:38 BST 2021
- Bug report     | 31946a4e-3eb2-4c23-a777-5afdc76ce811
- DietPi version | v7.4.2 (MichaIng/master)
- Image creator  | DietPi Core Team
- Pre-image      | from scratch
- Hardware       | RPi 4 Model B (armv7l) (ID=4)
- Kernel version | `Linux DietPi 5.10.52-v7l+ #1441 SMP Tue Aug 3 18:11:56 BST 2
021 armv7l GNU/Linux`
- Distro         | bullseye (ID=6,RASPBIAN=0)
- Command        | `sed -i /^[[:blank:]]*enable_tvout=/c\#enable_tvout=0 /boot/c
onfig.txt`
- Exit code      | 4
- Software title | DietPi-Set_hardware
#### Steps to reproduce:
<!-- Explain how to reproduce the issue -->
1. ...
2. ...
#### Expected behaviour:
<!-- What SHOULD happen? -->
- ...
#### Actual behaviour:
<!-- What IS happening? -->
- ...
#### Extra details:
<!-- Please post any extra details that might help solve the issue -->
- ...
#### Additional logs:
```
sed: couldn't open temporary file /boot/sedesLGYT: Read-only file system
```
-------------------------------------------------#### Details:
- Date           | Wed Oct 13 20:49:15 BST 2021
- DietPi version | v7.4.2 (MichaIng/master)
- Image creator  | DietPi Core Team
- Pre-image      | from scratch
- Hardware       | RPi 4 Model B (armv7l) (ID=4)
- Kernel version | `Linux DietPi 5.10.52-v7l+ #1441 SMP Tue Aug 3 18:11:56 BST 2
021 armv7l GNU/Linux`
- Distro         | bullseye (ID=6,RASPBIAN=0)
- Command        | `sed -i /^[[:blank:]]*dtoverlay=vc4-/d /boot/config.txt`
- Exit code      | 4
- Software title | DietPi-Set_hardware
#### Steps to reproduce:
<!-- Explain how to reproduce the issue -->
1. ...
2. ...
#### Expected behaviour:
<!-- What SHOULD happen? -->
- ...
#### Actual behaviour:
<!-- What IS happening? -->
- ...
#### Extra details:
<!-- Please post any extra details that might help solve the issue -->
- ...
#### Additional logs:
```
sed: couldn't open temporary file /boot/sedDRipqX: Read-only file system
```
User avatar
Joulinar
Posts: 6467
Joined: Sat Nov 16, 2019 12:49 am

Re: dietPi first update failed

Post by Joulinar »

Hi,

it looks like you have challenges with your SD card as it is write protracted

Code: Select all

sed: couldn't open temporary file /boot/sedesLGYT: Read-only file system
Usually this indicates physical issues on that card? Do you have another SD card you could try?

On the faulty installation you could check for kernel error messages.

Code: Select all

dmesg -l err,crit,alert,emerg
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
bfz
Posts: 2
Joined: Wed Oct 13, 2021 10:57 pm

Re: dietPi first update failed

Post by bfz »

Thank you so much for pointed to the read-only as the cause. I couldn't understand it at first as I could etcher the image to the SD card. Upon further research following your input, I realized the SD adapter on which I inserted the micro-SD card, has a write-protection slide-switch, which somehow was in ON position. So it allow the image to be written to the card, but marked it read-only afterwards.

After turning it to OFF position and re-etchered it to the card, the update went through without any issue, just as my other three DietPi installations.

Many, many thanks!!!

Ben
Post Reply