Hope all are doing well
I have a Linux Ubuntu 20.04 LTS on my laptop.
During the boot, I got the error as.. "/dev/sda2: UNEXPACTED INCONSISTENCY; RUN fsck MANUALLY "
I guess some of the files on a disk get corrupted. After exploring the few threads, I got to know that I need to repair the blocks using fsck utility
That's how I have applied the command fsck -y /dev/sda2 in a halted terminal
Unfortunately, nothing happening. I can't see any repair process, and a prompt is continuously blinking!
For reference, I have shared my laptop screen's photos
Can anyone help me here? enter image description here All suggestions and comments are welcome :)
Thanks, Mahendra Sondagar
The problem and error seem similar.
as I said, I'd already tried with the command fsck -y /dev/sda2.
But unfortunately, nothing is happening.
Cursor is continuously blinking.
how do I get to know that something is cooking?
– Mahendra Sondagar May 23 '23 at 10:25fsck -y /dev/sda2
command was done whilst sda2 was being used or not? Why live media is usually used; it ensures the partition isn't in-use. Also the command (eg.fsck
) is not the command for all file-systems, thus the command may differ depending on your fs choice. Also notefsck
performs LOGICAL CHECKS which cannot get past ACTUAL DISK ISSUES, your picture shows a IO error thus I'd check SMART health in live system before you attempted to logical/file-system checks. – guiverc May 23 '23 at 10:52i have tried with the live USB.
but I got the following errors msg.
e2fsck: Input/Output error while trying to open /dev/sda2
The superblock could not be read or could not describe a valid ext2/ext3ext4 filesystem if the device really contains an ext2/ext3ext4 filesystem, then the superblock is corrupted, and you might try running e2fsck with an alternative superblock:
e2fsck -b 8193
or
e2fsck -b 32768
After applying below two commands,
sudo e2fsck -b 8193 /dev/sda2 sudo e2fsck -b 32768 /dev/sda2
I got the below error
– Mahendra Sondagar May 23 '23 at 12:39after using the above two commands, I got the error as follows
"e2fsck: bad magic number in superblock while trying to open /dev/sda2"
– Mahendra Sondagar May 23 '23 at 12:44