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 the following from an ubuntu system:
fsck.fat -y /dev/sdb1
fsck.ext4 -y /dev/sdb2
However, I want this check to be done on every boot.
I tried putting fsck.mode=force
in the cmdline.txt
on the second card using a card reader.
However, I keep getting the same error and theres no indication that it tried to run fsck. The first card says "File System Check started on Root Device", but the second card still throws the error.
Note: I have not fixed the second card manually to check if the auto fix works or not.
fsck.mode=force
to the one and only line incmdline.txt
- i.e. you haven't added a second line to that file? – Jaromanda X Feb 18 '19 at 09:58