Questions tagged [fsck]

a tool to check the consistency of and repair a file system for Unix-like operating systems

Fsck ("file system check") is a tool to check the consistency of and repair a file system for and Unix-like operating systems, such as and Mac .

Man page: http://www.manpagez.com/man/8/fsck/

Wikipedia: http://en.wikipedia.org/wiki/Fsck

205 questions
2
votes
1 answer

Silent e2fsck - safe to stop?

Before a grow on a 8 TB RAID5, I am currently doing an e2fsck. While the RAID was running w/o issues before (I switched from Ubuntu to CentOS 5.4 because I needed a specific hardware driver), the e2fsck initially turned up a boatload of errors…
Christian
  • 411
  • 2
  • 7
2
votes
2 answers

How to check (fsck) a filesystem on a md device (linux/mdadm)

I have a partition lying on a software raid device, /dev/md4 On boot, fsck fails and the partiton cannot be mounted. Trying to fsck manually, I get an error: sudo fsck /dev/md4 fsck from util-linux-ng 2.17.2 e2fsck 1.41.11 (14-Mar-2010) fsck.ext4:…
alci
  • 443
  • 2
  • 6
  • 15
2
votes
5 answers

Ask filesystem if it is mounted

How can I see if a (ext3) filesystem is mounted by asking the filesystem directly (i.e. the same way that the system does when it boots and sees that it was not unmounted cleanly)? Checking the output of mount is no good because the filesystem…
Brian
  • 766
  • 1
  • 6
  • 14
2
votes
3 answers

Surprising corruption and never-ending fsck after resizing a filesystem

System in question has Debian Lenny installed, running a 2.6.27.38 kernel. System has 16Gb memory, and 8x1Tb drives running behind a 3Ware RAID card. The storage is managed via LVM, and is exclusively comprised of ext3 filesystems. Short…
user9565
2
votes
1 answer

EC2: How dangerous is it to turn off fsck for EBS volumes?

I have been tearing my hair out trying to figure out why my EC2 instances (made from my own custom AMIs) were taking many tries to come up properly. They would fail with the following error: fsck.ext3: No such file or directory while trying to open…
Janine Ohmer
  • 257
  • 1
  • 4
  • 8
2
votes
1 answer

linux + disk apears from lsblk but blkid not give the UUID

we have rhel 7.6 server with sdb and sdc and sdd disks the machine is physical machines with disk of 1.7T each of them we notice the sdd disk displayed from lsblk as lsblk | grep data sda 8:0 0 1.7T 0 disk /data/sdc sdc …
sheffadmin
  • 49
  • 1
  • 7
2
votes
1 answer

fsck raid10 ext4 partition currupted, restore data

there is a volume in raid10 /dev/md3 it has a GPT partition /dev/md3p1 in ext4 with a size of 16TB. I accidentally ran fsck -y /dev/md3 causing the filesystem in /dev/md3p1 to get corrupted. fsck -b superblock_number /dev/md3p1 with any superblock…
user607743
  • 23
  • 3
1
vote
0 answers

fsck.ext4 complaining that the device is in use. Can't find what exactly is using it

Our setup is a 3-node RHEL 7.3 bare-metal Kubernetes cluster running on Docker. We have a multipath FC SAN block device discovered on all three nodes. This device is used as a Kubernetes Persistent Volume with ext4 filesystem. The definition of this…
1
vote
1 answer

Is there any way to mount an EXT4 file system with errors?

I may have been somewhat foolish, but kept putting off the warning signs about the impending failure of my EXT4-on-LVM Ubuntu machine (like the partition remounting itself R/O, SMART errors, etc.) and one day, the FSCK shows "filesystem still has…
JonTheNiceGuy
  • 883
  • 7
  • 9
1
vote
1 answer

file system corrupt in a virtual machine

I have a virtual machine hosted by vmware esxi. It has been started for over 80 days. And about ten days ago, its file system got corrupted. Although I can use fsck to fix this file system, I am wondering what can be the root reason? It is just a…
Sraw
  • 37
  • 10
1
vote
4 answers

How to responsibly avoid "fsck forced"?

So I just swapped out a RAID HDD on a server. I got the "hasn't been checked for X days, fsck forced" message, and am patiently waiting right now. This got me wondering: how can I responsibly avoid this situation? I know that I could skip the forced…
1
vote
1 answer

Repair FAT filesystem on image

I've got a USB pen drive with a corrupted FAT filesystem. Now I try to repair it. So to first try what I can get from it without endangering the original hardware further, I've created an image with dd using the following command line: $ sudo dd…
white_gecko
  • 257
  • 1
  • 3
  • 11
1
vote
1 answer

Portwell motherboard: Boot-time fsck finds "unexpected inconsistency" due to system time

Although this question involves an embedded motherboard, serverfault seemed to me the best stackexchange forum to post to. My colleagues and I have been investigating this weird Linux boot problem for a few months now, and we're kinda stuck. Any…
Timothy Miller
  • 291
  • 1
  • 2
  • 11
1
vote
1 answer

Fsck finds errors in OS, but not using LiveCD

Running fsck on a booted machine yields errors on the root file system. In an attempt to fix this, I booted from a LiveCD - but fsck on the LiveCD instance doesn't find any errors at all. I also tried running the same binary which a booted system…
Jon Skarpeteig
  • 941
  • 2
  • 14
  • 28
1
vote
0 answers

How to repair multiply-claimed blocks?

I get a lot of the following logs in dmesg: [26159.277230] EXT4-fs error (device sdb1): ext4_iget:3875: inode #394497188: comm mv: bad extended attribute block 22794025699896 [26219.914802] EXT4-fs error (device sdb1): ext4_iget:3875: inode…
basilikum
  • 217
  • 3
  • 11