Questions tagged [fsck]

a system tool for checking the consistency of a file system.

Filter by
Sorted by
Tagged with
0 votes
1 answer
50 views

Unable to mount fs on unknown block(179, 2), how to allow fsck write permission?

My raspberry pi 3b+ froze up, and my only option was to unplug and plug it back in. Once I did this I was unable to boot and got this error: End Kernel panic - not syncing: VFS: Unable to mount root ...
2 votes
2 answers
132 views

Automate fsck on failed boot

I am running Ubuntu 20.04 Server on my Raspberry Pi 4B 8GB. I have migrated to usb hdd boot but I still need the SD card as it houses the firmware (if somebody found a workaround, let me know :)). The ...
  • 23
2 votes
2 answers
2k views

Is my SD-card defective?

I currently use a raspberry-pi that I connect over with SSH, since it`s physical location is >100km far away. After running 1.5 years, it has now some I/O-errors when writing into the database. In ...
3 votes
1 answer
160 views

Sporadic slow booting due to fsck (mount count being reset)

I'm hoping to use a Raspberry Pi as the basis of an in-car infotainment system. I've followed a number of guides on reducing boot times, but the Pi will often take a long time to boot—about 20 s ...
  • 141
0 votes
1 answer
306 views

pi frequently freezes up on disk reads - is flash drive broken?

My pi freezes up when trying to do basic operations like ls, opening vi, evening cat on arbitrary files. It's slightly sporadic in that I can open a new terminal and reconnect, reboot, but the problem ...
  • 337
5 votes
1 answer
3k views

Output fsck on boot to a log file

I'd like to use fsck on every boot of my RPi 3B+ server. To do this I will be using tune2fs -c 1 /dev/mmcblk0p2. When fsck runs I'd like the output to be added to a log file in /home/pi/fsck.log with ...
  • 357
-1 votes
2 answers
3k views

Kernel Panic VFS Error During Boot

I recently started getting this error during bootup on an SD Card with Raspbian Stretch-Lite: ---[end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2) I looked around ...
0 votes
1 answer
1k views

fsck.mode=force is not fixing unable to mount root fs on unknown-block(179,2)

I have 2 SD cards with Raspbian Stretch that are throwing the following error on boot: Kernel panic-not syncing: VFS: unable to mount root fs on unknown-block(179,2) I fixed one card by running ...
1 vote
0 answers
252 views

Problems with hfsplus on Raspberry Pi

Description I was following this article to use a hard drive connected to the Raspberry Pi as a TimeMachine backup. Everything was working find until I removed for a short time the power supply of ...
7 votes
2 answers
4k views

How to avoid fsck at boot timing out

If the raspberry pi doesn't shut down cleanly, it forces a fsck at boot. My filesystem is on a 64GB micro SD card and it takes quite a while to fsck. Before the fsck finishes, a couple of services ...
0 votes
0 answers
2k views

How do I fix this error with wpa_cli? (strace included)

I had an unfortunate pulling of the power plug on my pi and now wpa_cli isn't starting correctly. user@raspberrypi:~ $ wpa_cli wpa_cli v2.3 Copyright (c) 2004-2014, Jouni Malinen <j@w1.fi> and ...
2 votes
1 answer
7k views

PI-3 corrupted file system - run fsck on boot (Raspbian Stretch)

I'm using a RPi3 with Raspbian Stretch and I have problems with corrupt file system. I use the Raspberry in a system where a "clean shutdown" is not possible. So I want to run fsck on boot. I have ...
3 votes
1 answer
262 views

Booting RPi 3 from HDD corrupts ext4 partition each time

I've successfully followed these instructions to get a Raspberry Pi 3 to boot from a USB hard drive. Broadly speaking, it works very well. Unfortunately, it seems that the root (ext4) partition doesn'...
1 vote
1 answer
974 views

Raspberry pi won't boot after unclean power down

I am new to Raspberry Pi exchange, looks like I'm having a micro SD corruption problem. I was about to plug a USB webcam into my Raspberry Pi 3 model b and I accidentally stepped in the power button!...
  • 43
0 votes
1 answer
832 views

how can I repair unrecognizable sd card

This SD card has Kali loaded for Raspberry pi 3. Some how I corrupted sd card by editing config.txt file in windows 10 machine, after then sd card was unrecognizable by neither machines windows or ...
  • 1
4 votes
2 answers
9k views

RaspberryPi: Auto fix root-filesystem at boot-time

I have several RaspberryPi's running (~100). After a power breakdown some devices no longer started with the following error message: It seems that the root-partition is broken. After I have ...
5 votes
2 answers
21k views

Unable to run fsck on /dev/mmcblk0p2

Upon rebooting using shutdown -rF now of my Raspberry Pi 3, I am presented with emergency mode, however, I am unable to run fsck -fy on the root partition. I am presented with the following error: ...
22 votes
4 answers
81k views

Raspberry Pi 3 and Raspbian Jessie - How to run fsck at boot?

How to run fsck at boot when using Pi 3 and Raspberry Jessie? I have read some tutorial but they differ. I have run sudo touch /forcefsck but what else I have to do? I know that I should set FSCKFIX=...
  • 543
0 votes
4 answers
1k views

Unable to repair sd disk partition

I would like to fix a fsck problem I have on my sd card. I plug it on another RPI using an SD card reader and then I have tried to run fsck but with no success. It seems to repair it but if I run ...
  • 101
1 vote
0 answers
4k views

fsck keeps returning “fsck usage: fsck [-fdnypq] [-l number]” on sd card for raspberry pi

My raspberry pi won't boot, I'm getting an "Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,6)" error. I'm trying to solve it by running an fsck on the drive, as many ...
1 vote
3 answers
251 views

No space on 8gb usb stick shows 100% du shows 3.5mb

root@rasp:/home/pi# df df: `/squashfs': No such file or directory Filesystem 1K-blocks Used Available Use% Mounted on rootfs 7498344 7481956 0 100% / dev 116816 ...
0 votes
1 answer
7k views

Mounting local filesystem... : Volume was not properly unmounted

I'm getting this error on Raspbian on boot: Mounting local filesystem... FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck. But when I run fsck I only ...
  • 178
1 vote
1 answer
1k views

Unplugged HFS+ USB Drive from RPi is corrupted

I plugged then uplugged my HFS (Non-journaled) external USB drive with its own power outlet from the RPi2, now the drive is corrupted dmesg | tail -20: [ 14.840735] hfsplus: Filesystem was not ...
2 votes
2 answers
838 views

Flashing raspbian-netinst image results in "Superblock last mount time is in the future."

After building a minimal Raspbian installation with raspbian-ua-netinst, making an image off of it and flashing it on another SD card a few days later I get an Superblock last mount time is in the ...
  • 213
0 votes
1 answer
153 views

Should I be worried if my SD card has been corrupted?

Summary My Pi has crashed a few times recently. I'm investigating ways to make it stop, but I'm also concerned that there are immediate implications to my file system. Background After one crash, I ...
  • 684
2 votes
1 answer
4k views

Why does Raspbian disable fsck in fstab by default?

Default Raspbian has the following details in /etc/fstab proc /proc proc defaults 0 0 /dev/mmcblk0p1 /boot vfat defaults 0 0 /dev/...
  • 684
2 votes
2 answers
5k views

Corrupt image fix

How can I fix corrupt image on SD card, my os is rasbpian wheezy 7 which got sluggish and I tried to fix it with running fsck ( on my pi and on another 3 linux machines) which did not fix my problems.....
  • 431
2 votes
1 answer
2k views

Restart after power Failure with FSCK?

Is there any way to have a Raspberry automatically after a power failure? This is a great feature on Mac OS X that I would like to have on my Pi because of it's usage. It would also be great if I ...
  • 63
2 votes
1 answer
730 views

schedule fsck over SSH

Can one shedule a sudo touch /forcefsck then reboot sudo shutdown -r now and automatically accept any fixes when connected to the PI over SSH? It's the accept any fixes that i'm not sure if its ...
  • 1,121
0 votes
2 answers
1k views

Raspberry Terminal and SSH not working [closed]

I made a fsck on my Raspberry Pi and now it won't open the terminal (it's opening but there is a black screen and there is no pi@raspberry appearing). SSH opens, but the same thing happens. ....
6 votes
4 answers
7k views

How can I harden Raspbian to boot unattended after unexpected shutdown?

I have a Pi running Raspbian in a headless configuration that has crashed a few times, once for unknown reasons, and once due to a power outage. In both cases, I had to connect a monitor and keyboard ...
  • 1,151