The tag has no usage guidance, but it has a tag wiki.

learn more… | top users | synonyms

40
votes
3answers
21k views

How can I check /dev/xvda1?

On login to EC2 (Ubuntu) instance, I see *** /dev/xvda1 should be checked for errors *** I can't fsck /dev/xvda1 because it is mounted, and sudo umount /dev/xvda1 fails because it is in use. lsof ...
27
votes
2answers
4k views

When is fsck dangerous?

Recently I've seen the root filesystem of a machine in a remote datacenter get remounted read-only, as a result of consistency issues. On reboot, this error was shown: UNEXPECTED INCONSISTENCY: RUN ...
26
votes
4answers
36k views

How do you get e2fsck to show progress information?

I'm running e2fsk on a very large (1TB+) ext3 disk with e2fsck -v /dev/sda1 from RIPLinux booted with PXE. I get e2fsck 1.41.6 (30-May-2009) /dev/sda1 contains a file system with errors, check ...
22
votes
3answers
22k views

CentOS thinks Disk is busy, can't mount or fsck

I'm a longtime user, and first time question submitter. I've spent a full day searching this and many other sites for a solution, but I must resort to requesting assistance to resolve my situation. ...
19
votes
8answers
12k views

Will my system fsck when I reboot?

...and how do I find out? Say I am about to reboot a server. I would like to minimize downtime, so thinking about wrapping reboot in an alias that says "hang on buddy, you're going to hit a fsck on ...
11
votes
1answer
13k views

Unable to resolve data corruption warning with fsck

In order to create a contiguous space for my file system to grow, I created a new EFI System partition at sda1 so that I can migrate it from the current partition at sda5. The move itself has been ...
9
votes
4answers
14k views

How dangerous is it to interrupt an fsck?

How dangerous is it to interrupt an fsck? Has anyone had any direct experience doing this?
9
votes
4answers
6k views

ext3 fsck time versus partition size

I'm doing the setup for a large-scale storage farm, and to avoid the need for month-long fscks, my plan is to split the storage into numerous smaller filesystems (this is fine, as I have a well-...
8
votes
2answers
13k views

Running out of memory running fsck on large filesystems

I look after an old Debian linux box (running etch) with only 512 MB of RAM, but a lot of external storage attached. One ext3 filesystem is 2.7 TB in size, and fsck can't check it, because it runs ...
8
votes
3answers
5k views

Causes of sudden massive filesystem damage? (“root inode is not a directory”) [closed]

I have a laptop running Maverick (very happily until yesterday), with a Patriot Torx SSD; LUKS encryption of the whole partition; one lvm physical volume on top of that; then home and root in ext4 ...
8
votes
1answer
8k views

ext3_dx_add_entry: Directory index full

Background: I'm running lighttpd 1.4.28-1 on CentOS 5.3 to serve the static assets. Signal: recently, it gets slow sometimes. I'm getting the below errors in the kernel log and /var/log/messages: ...
7
votes
3answers
743 views

fsck on shutdown instead of startup

Usually, fsck is executed automatically at startup after every 30th reboot or so. Sometimes, it can be really slow, and can delay bootup by more than half an hour. Is there any way to run fsck at ...
7
votes
3answers
7k views

How to check fsck results, ran at boot, on remote machine?

I did touch /forcefsck && reboot on remote machine, using Ubuntu 9.10. How I can find out if there were any errors corrected? How I can find out what the result of the fsck was? Thanks
6
votes
2answers
14k views

Using fsck to check and repair LUKS encrypted disk?

My Ubuntu 11.04 machine uses LUKS encryption for root, swap and home. A routine fsck -n revealed a set of errors I need to repair. fsck requires to unmount the partitions. Before luks I would simply ...
6
votes
1answer
195 views

Proper way to deal with corrupt XFS filesystems

I recently had an XFS filesystem become corrupt due to a powerfail. (CentOS 7 system). The system wouldn't boot properly. I booted from a rescue cd and tried xfs_repair, it told me to mount the ...
6
votes
1answer
2k views

Linux: Print all messages to primary console *and* secondary console (monitor/KVM)?

I run Linux (Red Hat-based, CentOS, SL, versions 5 & 6) on a variety of Supermicro and other whitebox servers. Some have IPMI, some do not. Some of these systems are attached to a Keyboard/...
6
votes
3answers
5k views

e2fsck on large filesystem fails with Error : Memory Allocation Failed

I'm trying to use e2fsck on a large raid array that is 2TB large and uses GPT for partitioning (because of size). There is only 1GB of ram installed on the system and I do not have the ability to add ...
6
votes
2answers
2k views

e2fsck / resize2fs problems

I've got 6 drives (each 1.5T, all same model and firmware revision) that are part of a RAID5 array. The RAID5 makes a LVM volume group and a logical group. The latter contains only one ext3 partition. ...
5
votes
6answers
7k views

Monitoring XFS filesystem health in Linux

I recently experienced a filesystem meltdown. I had a server running for about 180 days non stop without any issues, but then I noticed weird stuff happen and apparently the ext3 filesystem was in ...
5
votes
2answers
3k views

running automated fsck on remote server

I had another question about df, and now i came to conclusion i need to run fsck my partition, i've been reading about it and would like some advice, if possible. The situation is like this, no ...
5
votes
3answers
5k views

CentOS disable filesystem check: superblock last mount time is in the future

I'm persistently getting the "Superblock last mount time is in the future" error when booting CentOS 6. I've seen other questions which ask how to resolve this error, but I know exactly why it's ...
5
votes
2answers
2k views

How do I recover from a failed fsck?

I ran fsck and now my Linux server (Oracle Enterprise Linux (a Red Hat derivitave)) will not boot. The old blocks are in the lost+found folder. How do I get the box working again without rebuilding? ...
5
votes
1answer
629 views

What exactly does the automated ext3 root file system check?

Recently we encountered a problem (bad blocks) with an ext3 formatted compact flash card running an embedded Linux system. On startup, the root file system check was started, but it seemed to hang ...
4
votes
3answers
15k views

Is it safe to stop a fsck in progress?

I have a server that I rebooted without using the f option in my shutdown command, and it started doing a fsck of a very large filesystem... which will take a very long time, as you can imagine. Is it ...
4
votes
4answers
1k views

is there an fsck for .iso disk images?

I have an iso file on a hard drive that's been having problems. Is there any way to check that the file didn't get corrupted, like an fsck for iso file systems?
4
votes
2answers
2k views

Ubuntu server 12.04.03 not checking disk partitions on reboot?

My MOTD is showing: *** /dev/md2 will be checked for errors at next reboot *** *** /dev/md1 will be checked for errors at next reboot *** *** /dev/md3 will be checked for errors at next reboot *** ...
4
votes
2answers
7k views

fsck.ext4: How to force to check the whole file system?

It seems fsck.ext4 quit very soon, I guess it only checks the journal logs, and do nothing if the journal is clean. Is it? How to force it to check the whole file system? I've tried the -f option, but ...
4
votes
2answers
6k views

fsck root filesystem on a remote machine

I have filesystem problems on a machine running Ubuntu 8.04 machine in a colocation facility. What was once a directory now looks like this: b--xr-SrwT 52 825452087 876163170 56, 97 2021-10-10 05:43 ...
4
votes
2answers
12k views

CentOS - skip “Checking root filesystem”

I have a CentOS box that hangs for like 8 hours at "Checking root filesystem" every time it reboots. Is there some way to skip that check?
4
votes
1answer
415 views

Doing a remote fsck - possible?

We've been deploying fanless PCs for a research study. Some of these are having HD issues as their OS runs from an SD card. I'm seeing cases where I need to fsck a folder or two. I've tried using ...
4
votes
2answers
3k views

Major issues with fsck of 10TB ext3 RAID 6 (memory allocation failed, etc.)

I recently added a 7th 2TB drive to a linux md software RAID 6 setup. After md finished reshaping the array from 6 to 7 drives (from 8 to 10TB), I was still able to mount the file system without ...
4
votes
2answers
611 views

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 ...
4
votes
1answer
6k views

CentOS 5.6 unexpected inconsistency how to repair?

This morning I found that my server was not responding and wasn't able to connect to it in anyway to do a safe reboot. I had to do pull the plug to reboot. Upon rebooting everything appeared to be ...
4
votes
2answers
4k views

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 ...
4
votes
1answer
115 views

serviceable ext3 partition ruined by fsck

I've got several systems with an ext3 lv / that work just fine until fsck'd — then they are unrecoverably corrupted. What hope do I have of repairing these systems, and, separately, what went wrong? ...
3
votes
5answers
15k views

Huge amounts of “multiply-claimed blocks” during fsck

The basic question: How long should fsck take to fix a 100GB (17 million block) file with multiply-claimed blocks? The long version of the question: After a UPS failure, I am faced with an Ubuntu ...
3
votes
2answers
314 views

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 ...
3
votes
4answers
23k views

How long does it take to fsck a volume?

We are running a website which is currently serving 3-5 million page views. Our site is a file sharing site and so it contains 250,000 files and few thousand symbolic links. The hard disk is a 1500GB ...
3
votes
1answer
5k views

What's the difference between mountall and mount -a? (Ubuntu, perhaps others)

The mountall man page says "this is a temporary tool until init(8) itself" can do it, basically. Why not just use mount -a? Is there a difference between the two, and if so, which should I use for ...
3
votes
3answers
9k views

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 ...
3
votes
3answers
5k views

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 '-...
3
votes
1answer
234 views

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) /: ...
3
votes
1answer
84 views

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. ...
3
votes
2answers
700 views

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 ...
3
votes
1answer
3k views

Recovery via fsck

I was recently hit by the AWS issues in Ireland, lost a volume, and need to attempt a recovery.. I've attached the problem volume to /dev/sdf - I'm completely new to this, not entirely sure what's ...
3
votes
3answers
1k views

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 ...
3
votes
2answers
207 views

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 [...
3
votes
1answer
2k views

How to recover a lost logical volume

Due to clvmd stalling the kernel (http://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 ...
3
votes
1answer
656 views

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 ...
3
votes
2answers
142 views

/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 ...