Questions tagged [fsck]

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

Filter by
Sorted by
Tagged with
62 votes
5 answers
39k 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 ...
user1836587's user avatar
55 votes
4 answers
80k 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 ...
Tim Abell's user avatar
  • 1,371
38 votes
3 answers
13k 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 ...
0x5C91's user avatar
  • 483
28 votes
2 answers
111k 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 ...
Michael Kohne's user avatar
28 votes
5 answers
58k 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. ...
TripSixes's user avatar
  • 383
23 votes
1 answer
53k 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 ...
Question Overflow's user avatar
22 votes
8 answers
22k 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 ...
Tom Newton's user avatar
  • 4,151
21 votes
4 answers
68k 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 ...
stwissel's user avatar
  • 680
20 votes
3 answers
11k views

How long can fsck take on a 30 TB volume?

In mid-November, a VPS that I am renting from a hosting company stopped responding. When I contacted support, they explained that a power outage in the datacenter caused a forced reboot and fsck. ...
Brian Bi's user avatar
  • 347
14 votes
3 answers
21k 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 ...
TimB's user avatar
  • 1,430
13 votes
5 answers
25k 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?
Runcible's user avatar
  • 3,155
12 votes
4 answers
64k 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 ...
khizar ansari's user avatar
11 votes
3 answers
34k 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 ...
Lenik's user avatar
  • 802
10 votes
3 answers
18k 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
grs's user avatar
  • 2,235
9 votes
6 answers
17k 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 ...
zidar's user avatar
  • 233
9 votes
1 answer
26k views

fsck a filesystem in a file

I created a filesystem like this: dd if=/dev/zero of=disk-image count=40960 filesystem is created with this: /sbin/mkfs -t ext3 -q disk-image I then mounted and copied some test files and ...
user124464's user avatar
9 votes
3 answers
12k 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 ...
poolie's user avatar
  • 1,175
9 votes
4 answers
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-...
womble's user avatar
  • 96.4k
8 votes
3 answers
34k 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 ...
snk's user avatar
  • 392
8 votes
1 answer
12k 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: ...
quanta's user avatar
  • 51.5k
7 votes
4 answers
4k 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?
JanKanis's user avatar
  • 523
7 votes
2 answers
4k 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 ...
GriffinHeart's user avatar
7 votes
3 answers
6k 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 ...
Zac B's user avatar
  • 841
7 votes
3 answers
2k 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 ...
Diego Herranz's user avatar
7 votes
1 answer
4k 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/...
Stefan Lasiewski's user avatar
7 votes
3 answers
10k 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 ...
Jason's user avatar
  • 71
7 votes
1 answer
10k views

Every startup i need to manually run fsck /dev/mapper/ubuntu--vg-root

Hi every day when I start my ubuntu 18.04, then it's not starting and gives a below error. (initramfs) exit /dev/mapper/ubuntu--vg-root contains a file system with errors, check forced. Inodes that ...
Subhash's user avatar
  • 171
6 votes
1 answer
3k views

Vagrant up not working, it requires a manual fsck

My setup: My OS is Ubuntu 18.04 Vagrant 2.0.0 VirtualBox 5.2.18 r124319 Ubuntu installed into vagrant/virtualbox (version uknown) sudo vagrant up was always working, suddenly it has stopped working.....
cawecoy's user avatar
  • 273
6 votes
2 answers
4k 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. ...
BlakBat's user avatar
  • 294
5 votes
5 answers
33k views

Superblock last mount time is in the future

Yesterday, I encountered a confusing problem. During booting, the system complained that the superblock last mount time is in the future and asks me to fsck. I have used Debian Squeeze for months and ...
Shawn Xie's user avatar
  • 163
5 votes
2 answers
3k 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 *** ...
jamesc's user avatar
  • 181
5 votes
2 answers
18k 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?
Keith Palmer Jr.'s user avatar
5 votes
2 answers
32k views

Why won't xfs_check run?

I'm running a fully updated Ubuntu 9.04 "Jaunty" i686 server. I have an single XFS volume in an LVM group called /dev/mapper/vg0-bigthree. If I boot to single user mode and ensure that the volume is ...
Justin Force's user avatar
5 votes
2 answers
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? ...
Brad Bruce's user avatar
5 votes
1 answer
6k 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 ...
williamsowen's user avatar
  • 1,167
5 votes
1 answer
700 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 ...
Chris's user avatar
  • 225
4 votes
5 answers
34k 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 ...
Joseph's user avatar
  • 277
4 votes
2 answers
11k 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 ...
itsadok's user avatar
  • 1,869
4 votes
2 answers
7k views

How to corrupt an ext3 partition so that it will undergo fsck to fix automatically at boot? [closed]

I'm looking for a way to corrupt an ext3 partition safely, so that it can be recovered by fsck on next boot, for testing purposes. Thanks!
shad's user avatar
  • 83
4 votes
1 answer
30k 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 ...
Johannes Ernst's user avatar
4 votes
1 answer
1k 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 ...
ethrbunny's user avatar
  • 2,369
4 votes
1 answer
2k views

Ext2: e2fsck what do the "errors" mean? [closed]

So, my hard drive was acting all slow, and after checking through my syslog, I found all these errors. Some googling led me to try to run e2fsck -c -c on the drive. So, it's been going for about 2 ...
bnsh's user avatar
  • 143
4 votes
3 answers
5k 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 ...
Markus A.'s user avatar
  • 419
4 votes
2 answers
994 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 ...
Kyle Brandt's user avatar
  • 83.7k
4 votes
1 answer
10k 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 ...
Scott's user avatar
  • 359
4 votes
2 answers
5k views

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 ...
user avatar
4 votes
2 answers
6k 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 ...
Matthew Hodgkins's user avatar
4 votes
1 answer
160 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? ...
pilcrow's user avatar
  • 459
3 votes
2 answers
498 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 ...
Michael S's user avatar
  • 305
3 votes
3 answers
13k 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 ...
Justin Jenkins's user avatar

1
2 3 4 5