Questions tagged [fsck]

fsck - check and optionally repair a file system.

339 questions
35
votes
5 answers

How to perform full check of ext4 file system structure?

I have 2TB ext4 partition with half million files on it. I want to check whether this partition contains any errors or not. I don't want to search for bad blocks, only logical structure should be checked. I have unmounted the partition and run…
Egor Skriptunoff
  • 548
  • 1
  • 5
  • 19
29
votes
5 answers

fsck won't fsck (unable to set superblock flags)

Following an unclean shutdown on an SD card based device, I took the SD card out to fsck the root filesystem. This led to variations on the following: e2fsck 1.43.1 (08-Jun-2016) /dev/sdc2: recovering journal Superblock needs_recovery flag is…
goldilocks
  • 86,451
  • 30
  • 200
  • 258
27
votes
1 answer

"inode extent tree (at level 1) could be shorter IGNORED"

I have a Debian system here. fsck runs from time to time while booting (on an ext4 file system). I get messages like this: inode extent tree (at level 1) could be shorter IGNORED What do they mean?
buhtz
  • 777
  • 1
  • 10
  • 22
25
votes
6 answers

Fix EXT4-fs bad geometry (block count exceeds size of device)

I have a micro SD card which has a FAT32 partition and an EXT4 partition. The EXT4 partition will no longer mount. dmesg shows the following error: EXT4-fs (sdb2): bad geometry: block count 2199023779840 exceeds size of device (524288 blocks) I've…
Michael
  • 351
  • 1
  • 3
  • 7
19
votes
2 answers

How to automatically force fsck disks after crash in `systemd`?

How to set systemd for automatically force fsck disks after crash (hard poweroff)? When I used sysvinit (in Arch Linux) as /sbin/init I used the hack: in the rc.local I create /forcefsck file; in the rc.local.shutdown I remove it. At boot-up…
user14284
18
votes
4 answers

How can I avoid "Run fsck manually" messages while allowing experimenting with system time changes?

I'm working with a system where we want to allow users to play around with the date and time if they want, and where reboots may happen arbitrarily. This is fine, except for one thing: if there's a large time jump backwards, the following error…
me_and
  • 1,141
  • 1
  • 13
  • 24
18
votes
1 answer

What does fsck -p (preen) do on ext4?

I was reading a blog post about filesystem repair and the author posted a good question… fsck -p is supposed to fix minor errors automatically without human intervention. But what exactly will it fix when it's told to preen the filesystem? What…
Bart Silverstrim
  • 407
  • 1
  • 4
  • 9
17
votes
3 answers

Does a bad sector indicate a failing disk?

My Ubuntu 13.10 system has been performing very poorly over the last day or so. Looking at the kernel logs, it appears that the <1yr old 3TB SATA disk is having issues with a particular sector: Nov 4 20:54:04 mediaserver kernel: [10893.039180]…
MrNorm
  • 343
  • 1
  • 3
  • 7
17
votes
2 answers

Ubuntu recovery says "fsck from util-linux" and exits

I booted Ubuntu in recovery mode to try and fix a disk error. However, when I run: fsck I just get: fsck from util-linux 2.31.1 And nothing else happens. Any fsck command is simply printing 'fsck from util-linux 2.31.1' and exiting, regardless of…
MHG
  • 410
  • 1
  • 3
  • 11
17
votes
2 answers

What should I do to force the root filesystem check (and optionally a fix) at boot?

Yesterday, one of our computers dropped to grub shell or honestly, I am unsure what shell it was when we turned on the machine. It showed that it can't mount the root filesystem or something in this sense, because of inconsistencies. I ran, I…
Vlastimil Burián
  • 27,586
  • 56
  • 179
  • 309
17
votes
3 answers

How to force fsck at every boot - all (relevant) filesystems?

I'm working with a fanless PC (hundreds of them, in fact) that has debian 6 and 3 partitions( FAT and 2x ext2). The system doesn't have a power button as such so most people tend to yank the plug to 'shut it down' rather than init 0 (or equivalent).…
ethrbunny
  • 743
  • 3
  • 9
  • 24
15
votes
2 answers

fsck died with status code 4

During boot my laptop says: fsck died with status code 4 The man page tells me: The exit code returned by fsck is the sum of the following conditions: [..] 4 - File system errors left uncorrected When I try to repair the errors as root, fsck…
OrangeTux
  • 1,053
  • 2
  • 16
  • 26
13
votes
1 answer

Is it possible to run fsck to only see errors on mounted disk

We have RedHat 7.2 OS. /dev/sdc is mounted to /bla/appLO Is it possible to run fsck on mounted disks (without umount /bla/appLO) and to see only the errors if they exist? Example: e2fsck -n /dev/sdc e2fsck 1.42.9 (28-Dec-2013) Warning! /dev/sdc is…
yael
  • 12,598
  • 51
  • 169
  • 303
12
votes
6 answers

Aggressively fsck a disk before install

I have an old HP Athlon machine I use for testing software under the old processor. We have frequent brown outs, and after the last one the disk was a mess. It was so bad I could not run fsck and dispatch all the problems. I performed a fresh…
user56041
12
votes
4 answers

How to stop filesystem check (fsck) on boot?

Once in a while (every 30-th boot) my linux system decides to check filesystem for errors. I am ok with this - what needs to be done needs to be done. But sometimes I need my laptop to boot fast. I need some urgent job to do and I do not have time…
lesnik
  • 1,341
  • 2
  • 13
  • 20
1
2 3
22 23