You are not logged in.

#1 2024-05-22 09:45:04

jairick
Member
Registered: 2024-05-22
Posts: 1

STUCK fsck boot screen :(

I was trying to add a partition to my /dev/sda drive which already had two partitions: sda1 which was boot, and sda2. So I resized sda2 in order to create free space for sda3. I managed to create the third partition but afterwards was unable to boot into my arch linux (which used sda2 as primary partition). Now am stuck at fsck boot screen and when I run $fsck -y /dev/sda2 it says:

fsck from util-linux 2.40
e2fsck 1.47.0 (5-Feb-2023)
The filesystem size (according to the superblock) is 244059136 blocks
The physical size of the device is 235929600 blocks
Either the superblock or the partition table is likely to be corrupt!
Abort? yes

Someone help please. The partition contains all of my data sad
I am posting this from Kali which I managed to install in the third partition I created (sda3).

Offline

#2 2024-05-22 13:00:02

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,224

Re: STUCK fsck boot screen :(

Rules of messing around with your partition layout and or filesystem:

  1. when shrinking: first shrink the filesystem, then the partition

  2. when growing: first grow the partition, then the filesystem

general advice, use gparted instead of the cmdline for this, it's very easy to mess up even if your confident in your CLI skills and gparted will at least get the logical ordering right.

The fact that you went ahead and installed kali anyway was not a good idea since you will now have destructively written over part of your fileystem that was overlapping the partition. Im not sure how well resize2fs will work with a relevantly overwritten filesystem part, might want to try and run testdisk to see whether it can salvage something (but run that from a live disk, and write the results to a completely different disk), and then maybe try to resize2fs to the new partition bounds.

Last edited by V1del (2024-05-22 13:02:30)

Offline

Board footer

Powered by FluxBB