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
4
votes
2 answers

Invalid argument on fsck of a 2GB VFAT filesystem

I wanted to run fsck to repair a VFAT filesystem on a 2GB SD card, on Fedora 12. I got an 'invalid argument' error as seen below. What does it mean in this context? Is it not possible to check a filesystem on a SD card? $ fsck -t vfat…
filmil
4
votes
2 answers

Failed MDADM Array With Ext.4 Partition - "e2fsck: unable to set superblock flags on /dev/md0"

Had a power failure and now my mdadm array is having problems. sudo mdadm -D /dev/md0 [hodge@hodge-fs ~]$ sudo mdadm -D /dev/md0 /dev/md0: Version : 0.90 Creation Time : Sun Apr 25 01:39:25 2010 Raid Level : raid5 …
4
votes
2 answers

Pass Column of fstab

If I have the 6th column in fstab (the pass column) set to 0, does that mean checks will never be forced at boot regardless of anything like File System State, Mount Count, and Check Interval on the file system itself (see dumpe2fs)? The fstab…
Kyle Brandt
  • 82,107
  • 71
  • 302
  • 444
3
votes
2 answers

eCryptfs headers errors

I'm getting the following error on a server where a partition is encrypted thru ecryptfs. [3440851.003561] Valid eCryptfs headers not found in file header region or xattr region, inode 22545087 [3440830.026081] Valid eCryptfs headers not found in…
ohe
  • 135
  • 1
  • 7
3
votes
2 answers

/var a file and not a folder

On a CentOS 5.3 server the /var folder has changed to a file. Appears to be FS corruption. Rest of the FS looks OK. Anyone know a quick way to fix this? fsck.ext3 reports the fs as clean even using a force check. It looks like the machine had the…
Daniel
3
votes
1 answer

could fsck -Af -M cause corrupt filesystem?

Last night my server encounter "Read-only file system" error. So then I ran "fsck -Af -M" to trying to repair but no use, these are output: fsck 1.39 (29-May-2006) e2fsck 1.39 (29-May-2006) /: recovering journal fsck.ext3: Bad magic number in…
foo
  • 33
  • 4
3
votes
1 answer

Taking an image of a failing boot drive

Ok, so my Ubuntu 12.10 install seems to have gone slightly sideways. It currently boots from a Compactflash card that I was planning on replacing soon, but as luck would have it it's gone down now. The boot process gets to a certain point and then…
alanbeard
  • 141
  • 9
3
votes
2 answers

e2fsck - out of memory despite [scratch_files] set in /etc/e2fsck.conf

I'd like to repair an ext2 file system on an external 16GB SD card drive. When I issue the following command: e2fsck -y /dev/xxx my system runs out of memory (Fedora 17 x64 8GB RAM, 8GB Swap). As suggested elsewhere, I've…
3
votes
2 answers

Failed volumes on RAID - how to handle?

I've got a situation on a RAID that I've taken over responsibility for recently and really could use some advice. I hope I haven't mucked it up to much. A couple server on the ad-hoc cluster I'm administering started reporting disk problems.I ran…
Michael S
  • 305
  • 2
  • 12
3
votes
3 answers

Forcing a verbose fsck on reboot (Ubuntu)

I'd like to force a verbose fsck on reboot of my Ubuntu linux server, I can get fsck to run on reboot by creating a file /forcefsck in my root dir ... Additionally, by adding a y into the contents of the /forcefsck file my server will (properly) run…
Justin Jenkins
  • 158
  • 1
  • 1
  • 7
3
votes
1 answer

Recover JFS partition with duplicate block references

After a nasty server crash I was unable to mount a JFS partition on Linux. The jfs_fsck tool returns Duplicate block references have been detected in Metadata. CANNOT CONTINUE. processing terminated:
Dmitri Chubarov
  • 2,296
  • 1
  • 15
  • 28
3
votes
3 answers

linux file system allowing check while in use?

Is there a file system for linux where it's possible (and safe) to perform a file system check while it's mounted read write or which does not need to be checked periodically ? E.g. a file system whose check first 'grabs' the entire file system and…
Andre Holzner
  • 529
  • 2
  • 4
  • 14
3
votes
1 answer

How to recover a lost logical volume

Due to clvmd stalling the kernel (https://serverfault.com/questions/226466/lvm-running-vgscan-causes-clvmd-to-block) I decided to hard reboot the host because the soft reboot stalled. But when it booted up it fails to run e2fsck on one of the…
sashang
  • 167
  • 1
  • 9
3
votes
1 answer

Ubuntu Server - Power failure leads to boot failure

I have installed Ubuntu Server 10.04.1 LTS on an ext4 partition. Whenever my system looses power suddenly, It doesn't boot into the normal procedure to fix the problems automatically, but switches to the busy box shell (where it says Kernel Panic :…
3
votes
3 answers

fsck: FILE SYSTEM WAS MODIFIED after each check with -c, why?

I use a script to partition and format CF cards (connected with a USB card writer) in an automated way. After the main process I check the card again with fsck. To check bad blocks I also tried the '-c' switch, but I always get a return value != 0…
Chris
  • 225
  • 1
  • 3
  • 8