You are not logged in.

#1 Yesterday 08:03:35

rewriter
Member
Registered: Yesterday
Posts: 1

[FAILED] Failed to start File System Check.

I had dual booted arch linux and linux mint on my PC. A few weeks ago I had to do a job which required windows and that could be done through windows only. With no option being left, I decided to put windows on my PC. With my arch linux open, I partitioned the arch linux root directory to create some space for windows, which was really stupid decision which ruined my arch. Now whenever I try to open arch linux, I get the following error:

```
[FAILED] Failed to start File System Check .1ad768-....
[DEPEND] Dependency failed for /sysroot.
[DEPEND] Dependency failed for Initrd Root File System.
[DEPEND] Dependency failed for Mountpoints Configured in the Real Root.
You are in emergency mode. After logging in, type "journalctl -xb" to view system logs, "systemctl reboot" to reboot, or "exit" to continue bootup.

Cannot open access to console, the root account is locked.
See sulogin(8) man page for more details.

Press Enter to continue.
```

decided to live boot USB and tried to chroot. When I tried to mount the root partition, I got the following message.

```
mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sda3, missing codepage or helper program, or other error.
dmesg(1) may have more information after failed mount system call.
```
I typed dmesg | grep 'sda3' and got the following output

```
[86.090736] EXT4-fs (sda3): bad geometry: block count 143546504 exceeds size of device (78643200 blocks)
```

I do not know what should I do from here. I know what I did was very stupid. Is there any way I can recover my system or at least recover files from home directory? Please help me.

Offline

#2 Today 01:25:53

jonno2002
Member
Registered: 2016-11-21
Posts: 897

Re: [FAILED] Failed to start File System Check.

why couldnt you just use a VM for windows then delete it after the job was done ? or even use WINE if possible.
to the question at hand though, did you run 'resize2fs /dev/sda3' after resizing the partition ? try that and 'fsck /dev/sda3' then see if it mounts

EDIT: upon further reading out of interest, it seems you are supposed to run resize2fs first to shrink the filesystem then shrink the partition, ive only ever done the opposite which is much safer..

Last edited by jonno2002 (Today 01:33:56)

Offline

#3 Today 06:33:36

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,682

Re: [FAILED] Failed to start File System Check.

With my arch linux open, I partitioned the arch linux root directory to create some space for windows, which was really stupid decision

You resized an online filesystem? What filesystem? Or did you just change the partition layout?
How exactly? Did you cut off space on the left or the right side of the partition?
Have you done *anything* with the new partition? (Installed windows there)?

Offline

#4 Today 06:45:28

loqs
Member
Registered: 2014-03-06
Posts: 19,040

Re: [FAILED] Failed to start File System Check.

jonno2002 wrote:

it seems you are supposed to run resize2fs first to shrink the filesystem then shrink the partition, ive only ever done the opposite which is much safer..

How is it safer to shrink the partition so it becomes smaller than the filesystem it contains before shrinking the filesystem so that it fits back within the partition?

Offline

#5 Today 07:51:29

jonno2002
Member
Registered: 2016-11-21
Posts: 897

Re: [FAILED] Failed to start File System Check.

loqs wrote:
jonno2002 wrote:

it seems you are supposed to run resize2fs first to shrink the filesystem then shrink the partition, ive only ever done the opposite which is much safer..

How is it safer to shrink the partition so it becomes smaller than the filesystem it contains before shrinking the filesystem so that it fits back within the partition?

i worded that terribly, i meant ive only increased the size of a partition then used resize2fs afterwards

Offline

Board footer

Powered by FluxBB