Raspberry 4 stuck in initramfs
1
vote
1
answer
3554
views
im new on this site so i hope im not making myself look super stupid (beside the fact that my english isnt that best)
I got myself a Raspberry Pi 4B with an 64GB SDCard of Sandisk Ultra. Installed on it is an Ubuntu server 20.04 ARM Version. It usually runs 24/7 in my local network for research and bit of education.
What happen:
After installing an Update with "Sudo apt update", "sudo apt upgrade" and finishing it with "reboot", i got stuck into initramfs.
**The only message shown is:**
ext4
Thu Jan 1 00:00:06 UTC 1970
writable:recovering journal
writable: superblock need_recovery flas is clear, but journal has data.
writable: Run journal anyway
writable: UNEXPECRED INCONSISTENCY; RUN fsck MANUALLY.
(i.e., without -a or -p options)
fsck exited with status code 4
The root filesystem on /dev/mmcblk0p2 requieres a manual fsck
BusyBox v1.30.1 (Ubuntu 1:1.30.1-6ubuntu2) built in shell (ahs)
Enter 'help'for a list of built-in commands.
(initramfs)_
**I did what it says to me and tried to run it manually with the command:**
(initramfs) fsck /dev/mmcblk0p2
fsck from util-linux 2.36.1
e2fsck 1.45.7 (28-Jan-2021)
writable: recovering journal
Superblock needs_recovery flag is clear, but journal has data.
Run journal anyway? yes
fsck.ext4: unable to set superblock flags on writable
writable: ********** WARNING: Filesystem still has errors **********
(initramfs) _
After some research i found out it were problably the sd card soo i tried to reeinstall the ubuntu server on it again.
But the sd card doesnt get wiped. not wiped in windows neither Linux. The files inside are set into read only, but trying to wipe it with sudo on an other device doesnt affect it in anyway. Trying to delete anything or make it writable on the initramfs gives me a "Permission Denied".
because all my data is already save i would like to wipe it. But im still curios why this happens because i had it twice. in the first time it got fixed easy by just reeinstalling. And this is the second time.
I hope some of u got any idea to fix it. I googled my way down and up, but didnt find anything.
Asked by sefikkaan
(11 rep)
Sep 1, 2021, 08:46 PM
Last activity: Jul 3, 2025, 05:04 AM
Last activity: Jul 3, 2025, 05:04 AM