You are not logged in.

#1 2019-11-08 14:18:42

gt747475
Member
Registered: 2019-11-08
Posts: 4

[SOLVED] Filesystem Corrupted

Recently I tried to resize my swap partition with cfdisk, but the next time it rebooted, the boot stopped and threw a filesystem error

/dev/sda1: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. (i.e., without -a or -p options)
ERROR: Bailing out. Run 'fsck /dev/sda1' manually

When I run the command I get this

fsck from util-linux 2.34
e2fsck 1.45.4 (23-Sep-2019)
The filesystem size (according to the superblock) is 29185280
The physical size (according to the superblock) is 27787264
Either the superblock or the partition table is likely to be corrupt!
Abort<y>?

And if I don't abort:

/dev/sda1 contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes.
Error reading block 27787296 (Invalid argument) while getting next inode from scan. Ignore error<y>?
Force rewrite<y>?

The last two lines loop if I force it.

Can anyone help me?

Last edited by gt747475 (2019-11-08 16:35:36)

Offline

#2 2019-11-08 14:56:51

seth
Member
Registered: 2012-09-03
Posts: 12,905

Re: [SOLVED] Filesystem Corrupted

It looks like you grew the swap partition into the sda1 partition w/o shrinking the FS on sda1 first. Prepare for some data loss.
If you've not yet activated the swap partition, undo your re-partition efforts and pray (and run a full fsck still)

Then see https://wiki.archlinux.org/index.php/Pa … partitions
Consider using a swap file instead.

Offline

#3 2019-11-08 15:01:12

gt747475
Member
Registered: 2019-11-08
Posts: 4

Re: [SOLVED] Filesystem Corrupted

I've already activated the new swap partition. Will I have to reinstall the is? I'm not worries about data loss as this is a new install

Offline

#4 2019-11-08 15:23:09

seth
Member
Registered: 2012-09-03
Posts: 12,905

Re: [SOLVED] Filesystem Corrupted

If there's no data at risk, re-installation will be the fastest and safest way to ensure that there're no corrupted files lingering around, yes.

Offline

#5 2019-11-08 16:35:11

gt747475
Member
Registered: 2019-11-08
Posts: 4

Re: [SOLVED] Filesystem Corrupted

Thank you, and thank you for that link.

Offline

Board footer

Powered by FluxBB