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
6 answers

Linux Filesystem

recently we have a failure in our storage, we need to fsck. The storage is about 1.2 Tera, and it took us more than 5 hours. Is there an alternative solution for the ext3 filesystem, or one that is better than ext3? Suggestions with pro and cons…
Abi Aqil
  • 53
  • 1
  • 5
2
votes
1 answer

Difference between "fsck -y" vs "fsck -a"

What is the difference between -a and -y parameters of linux fsck? man page does not show me the difference. Thanks
seaquest
  • 668
  • 2
  • 11
  • 25
2
votes
2 answers

Centos 6.3 - Error during filesystem check (/opt)

When I rebooted my server I got the following error: What can I do to get the server back up? I tried running lvremove /dev/vg1/snaps but get the message: File based locking initialization failed I tried running fsck -fp /dev/vg1/snaps and that…
Programster
  • 485
  • 12
  • 22
2
votes
3 answers

fsck.ext3: Device or resource busy on server with RAID after power outage

I am recovering Dell Poweredge R510 server running Scientific Linux 5.5 after an unexpected power outage. The server was set up by our previous system administrator (I'm a grad student). Upon reboot, I see the message: fsck.ext3: Device or resource…
dhinckley
  • 123
  • 1
  • 4
2
votes
1 answer

Linux Software RAID: How to fsck on hard drive?

We have a Linux server running with Software RAID1. We see some issues in /var/log/messages like: unreadable sector. I want to perform a complete fsck on the drive to get some more information, but a fsck /dev/md0 brings a clean due to the Software…
2
votes
1 answer

How to run fsck on a simfs filesystem under openvz

How do you do a fsck on a simfs filesystem under OpenVZ? You're supposed to not run fsck on a mounted FS. Can you just fsck the image (/vz/private/100 or whatever it's called)? Sorry I can't tag simfs.
Dokbua
  • 1,052
  • 1
  • 9
  • 18
2
votes
2 answers

sshd immediately core dumps after fsck repair

I have a centos server that recently needed a fsck repair on it's main hard drive. After fixing a bunch of inode issues (booting from a system rescue disk), the box booted clean. Most of the services are running fine, however the sshd service…
John P
  • 1,659
  • 6
  • 37
  • 56
2
votes
2 answers

reduce fsck time through lvm design considerations

I need to create two 9 TB file systems and i am struggling to design it. how does fsck work under the cover? I have two options: 1. I create two 9TB LUNs at storage and create VG on them and then create LVs of 9TB each to create file system of 9TB…
user109119
  • 21
  • 2
2
votes
1 answer

ClearOS - how to avoid getting stuck at a fsck message at boot?

I have had this happen a couple times - I have a ClearOS Enterprise 5.2 box, and due to a power outage or similar, it ends up showing an error at boot and saying that fsck needs to be run (I think it said with (or without?) the -a parameter). …
Scott Szretter
  • 1,860
  • 11
  • 42
  • 66
2
votes
1 answer

CentOS - Automatically run fsck on boot into recovery

I'm automating a process to upgrade my ext3 filesystem to ext4. Following the instructions from here I'm able to successfully migrate my filesystem. I've scripted the vast majority of the work, and it's working pretty nicely. However, the final…
Chris Henry
  • 1,512
  • 3
  • 15
  • 15
2
votes
2 answers

Run fsck -y everytime at startup on my main partition Linux

I have an embedded linux system. I use grub2 for the boot loader. I would like to run an fsck -y /dev/sda on /dev/sda every time it boots--even when the system had a power loss and the reboot command was not used. How can I do this?
Jonathan Henson
  • 889
  • 2
  • 10
  • 16
2
votes
6 answers

How to run fsck on startup after a crash without the root password?

when the Red Hat 5.x workstation of a user crashes and leaves its filesystems with errors, on the next boot, it ask for the root password to enter single mode and run fsck manually. This is annoying because the user can't use his workstation and we…
Benoît
  • 1,331
  • 3
  • 11
  • 23
2
votes
1 answer

Is there a way to ignore the "fsck.ext3: Unable to resolve LABEL" error during the boot?

We have a file-cluster on servers with multiple disks, and we have created a software RAID1 over boot and / partitions, planning that if a single disk goes down, we still will be able to boot and serve data from the remaining disks. The problem is…
SyRenity
  • 3,159
  • 11
  • 55
  • 79
2
votes
1 answer

Problem fixing ext3 root file system using fsck on CentOS 5

When I run a read-only fsck on the mounted root partition of a CentOS 5 server, it finds a number of errors. However, running a forced check upon next boot does not find any! Here are the results of the mounted read-only check: # fsck -nCf / fsck…
prl77
  • 410
  • 5
  • 17
2
votes
1 answer

e2fsck aborts: memory allocation failed

I am trying to fix a 9 TB filesystem with e2fsck, however the scan always fails after about 10% or so with the following error: Error storing directory block information: ... Memory allocation failed e2fsck: aborted The machine runs Ubuntu 10 (64…
Christian
  • 411
  • 2
  • 7