# kernel panic not syncing VFS unable to mount root fs on unknown-block(179,2)

**URL:** <https://dietpi.com/forum/t/kernel-panic-not-syncing-vfs-unable-to-mount-root-fs-on-unknown-block-179-2/5351>\
**Category:** Troubleshooting\
**Created:** [23 May 2021 14:15 UTC](https://dietpi.com/forum/t/kernel-panic-not-syncing-vfs-unable-to-mount-root-fs-on-unknown-block-179-2/5351 "2021-05-23T14:15:20Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Massy](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/85e7bf/32.png) [@Massy](https://dietpi.com/forum/u/Massy)\
**Post date:** [23 May 2021 14:15 UTC](https://dietpi.com/forum/t/kernel-panic-not-syncing-vfs-unable-to-mount-root-fs-on-unknown-block-179-2/5351/1 "2021-05-23T14:15:20Z")

</div>

Hello guys,

After a recent up date and reboot, my system fails to boot up and I have been getting the following,

**kernel panic not syncing vfs unable to mount root fs on unknown-block (179,2)**

This is my File and VPN server that took me ages to setup and I have many active user, obviously reinstalling is not and option and therefor before I get my hands on it I’d like to get some advice here. I would be very grateful for any help and tips.

Please see the attached photo from the system on boot up. By the way the Dietpi is installed on a ASUS Tinker Board.

Thanks

 ![IMG_3010.JPG](https://dietpi.com/forum/uploads/default/original/2X/0/0f781110544b4d5861e068999cbc10197b6c9a94.jpeg)

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [23 May 2021 14:31 UTC](https://dietpi.com/forum/t/kernel-panic-not-syncing-vfs-unable-to-mount-root-fs-on-unknown-block-179-2/5351/2 "2021-05-23T14:31:49Z")

</div>

Hi,

I hope you have a backup done, before executing an update, if it is such an important system?

Do you have another Linux box where you could connect the SD card to perform some file system checks?

---

<div class="post-metadata">

**Author:** ![Massy](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/85e7bf/32.png) [@Massy](https://dietpi.com/forum/u/Massy)\
**Post date:** [23 May 2021 14:52 UTC](https://dietpi.com/forum/t/kernel-panic-not-syncing-vfs-unable-to-mount-root-fs-on-unknown-block-179-2/5351/3 "2021-05-23T14:52:08Z")

</div>

> [@](#):
>
> Hi,
> 
> I hope you have a backup done, before executing an update, if it is such an important system?
> 
> Do you have another Linux box where you could connect the SD card to perform some file system checks?

Hi, I might have some backup done in past, cannot remember where they are thought! No backup done recently 🙄  
Yes I do have another system in my network running Dietpi on it, if necessary I’l willing go further and install any OS on that system.

Thanks

---

<div class="post-metadata">

**Author:** ![Massy](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/85e7bf/32.png) [@Massy](https://dietpi.com/forum/u/Massy)\
**Post date:** [23 May 2021 15:46 UTC](https://dietpi.com/forum/t/kernel-panic-not-syncing-vfs-unable-to-mount-root-fs-on-unknown-block-179-2/5351/4 "2021-05-23T15:46:15Z")

</div>

so I connected the SD to system to do some basic file system check and results are below,

root@DietPi:/mnt/sda1# sudo fsck.ext4 /dev/sda1  
e2fsck 1.44.5 (15-Dec-2018)  
ext2fs\_open2: Bad magic number in super-block  
fsck.ext4: Superblock invalid, trying backup blocks…  
fsck.ext4: Bad magic number in super-block while trying to open /dev/sda1

The superblock could not be read or does not describe a valid ext2/ext3/ext4  
filesystem. If the device is valid and it really contains an ext2/ext3/ext4  
filesystem (and not swap or ufs or something else), then the superblock  
is corrupt, and you might try running e2fsck with an alternate superblock:  
e2fsck -b 8193   
or  
e2fsck -b 32768

/dev/sda1 contains a vfat file system  
root@DietPi:/mnt/sda1#

AND…  
  
  
root@DietPi:/mnt/sda1# sudo fsck.ext4 /dev/sda2  
e2fsck 1.44.5 (15-Dec-2018)  
/dev/sda2: recovering journal  
Superblock needs\_recovery flag is clear, but journal has data.  
Run journal anyway? yes  
fsck.ext4: Input/output error while recovering journal of /dev/sda2  
fsck.ext4: unable to set superblock flags on /dev/sda2  
  
  
/dev/sda2: \*\*\*\*\*\*\*\*\*\* WARNING: Filesystem still has errors \*\*\*\*\*\*\*\*\*\*

root@DietPi:/mnt/sda1#

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [23 May 2021 15:50 UTC](https://dietpi.com/forum/t/kernel-panic-not-syncing-vfs-unable-to-mount-root-fs-on-unknown-block-179-2/5351/5 "2021-05-23T15:50:51Z")

</div>

I guess sda1 is a fat partition. Therefore can you try following

```nohighlight
dosfsck /dev/sda1

```

MichaIng  
Can you have a look. You are more the file system specialist

---

<div class="post-metadata">

**Author:** ![Massy](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/85e7bf/32.png) [@Massy](https://dietpi.com/forum/u/Massy)\
**Post date:** [23 May 2021 16:08 UTC](https://dietpi.com/forum/t/kernel-panic-not-syncing-vfs-unable-to-mount-root-fs-on-unknown-block-179-2/5351/6 "2021-05-23T16:08:59Z")

</div>

> [@](#):
>
> I guess sda1 is a fat partition. Therefore can you try following
> 
> ```plaintext
> dosfsck /dev/sda1
> 
> ```
> 
> @MichaIng  
> Can you have a look. You are more the file system specialist

Sorry my mistake, tried that, now I am able to mount sda1 its vfat but still unable to mount sda2 which is ext4

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [23 May 2021 18:21 UTC](https://dietpi.com/forum/t/kernel-panic-not-syncing-vfs-unable-to-mount-root-fs-on-unknown-block-179-2/5351/7 "2021-05-23T18:21:40Z")

</div>

The ext4 partition also still has errors. It seems like the superblock is damaged. Let’s see where the backup superblocks are:

```nohighlight
mkfs.ext4 -n -m 0 /dev/sda2

```

---

<div class="post-metadata">

**Author:** ![Massy](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/85e7bf/32.png) [@Massy](https://dietpi.com/forum/u/Massy)\
**Post date:** [23 May 2021 21:32 UTC](https://dietpi.com/forum/t/kernel-panic-not-syncing-vfs-unable-to-mount-root-fs-on-unknown-block-179-2/5351/8 "2021-05-23T21:32:21Z")

</div>

> [@](#):
>
> The ext4 partition also still has errors. It seems like the superblock is damaged. Let’s see where the backup superblocks are:
> 
> ```plaintext
> mkfs.ext4 -n -m 0 /dev/sda2
> 
> ```

Hi,  
Here is the results,

root@DietPi:~# mkfs.ext4 -n -m 0 /dev/sda2  
mke2fs 1.44.5 (15-Dec-2018)  
/dev/sda2 contains a ext4 file system  
last mounted on / on Fri Jan 18 08:50:17 2013  
Proceed anyway? (y,N) y  
Creating filesystem with 7774336 4k blocks and 1945888 inodes  
Filesystem UUID: e0773760-1e29-45df-859a-c6b8b9739694  
Superblock backups stored on blocks:  
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,  
4096000

root@DietPi:~#

---

<div class="post-metadata">

**Author:** ![Massy](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/85e7bf/32.png) [@Massy](https://dietpi.com/forum/u/Massy)\
**Post date:** [23 May 2021 22:41 UTC](https://dietpi.com/forum/t/kernel-panic-not-syncing-vfs-unable-to-mount-root-fs-on-unknown-block-179-2/5351/9 "2021-05-23T22:41:12Z")

</div>

Update!

 ![0B4675DF-CA9A-4423-B5D5-A467AAD555D4.jpeg](https://dietpi.com/forum/uploads/default/original/2X/6/630f37903482c21a593637d17cc7d7db775e25ef.jpeg)

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [23 May 2021 22:51 UTC](https://dietpi.com/forum/t/kernel-panic-not-syncing-vfs-unable-to-mount-root-fs-on-unknown-block-179-2/5351/10 "2021-05-23T22:51:21Z")

</div>

That command did nothing but printing what mkfs would have done (-n as noop), including especially the superblock backup locations, we wanted to know.

Let’s try to recover the superblock with the first backup:

```nohighlight
fsck -b 32768 /dev/sda2

```

If this does not work, try with the second:

```nohighlight
fsck -b 98304 /dev/sda2

```

etc, until one succeeded to allow fsck actually repairing the filesystem.
