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

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 shows jbd2/xvda 172 root cwd …
user1836587
  • 723
  • 1
  • 6
  • 4
52
votes
4 answers

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 forced. Pass 1: Checking inodes, blocks, and sizes and…
Tim Abell
  • 1,311
  • 3
  • 10
  • 21
38
votes
3 answers

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 fsck MANUALLY (i.e., without -a or -p…
0x5C91
  • 483
  • 1
  • 5
  • 10
28
votes
5 answers

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. History: Our HP Proliant, Centos 5.9 server was…
TripSixes
  • 383
  • 1
  • 3
  • 6
26
votes
2 answers

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 partition to deal with the log. I mounted the…
Michael Kohne
  • 2,284
  • 1
  • 16
  • 29
22
votes
8 answers

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 boot". Next question.. what's the best way to say…
Tom Newton
  • 4,021
  • 2
  • 23
  • 28
21
votes
1 answer

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 successful except for a warning which says: kernel:…
Question Overflow
  • 2,023
  • 7
  • 28
  • 44
20
votes
3 answers

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. Eventually, I asked why it was taking so long, and…
Brian Bi
  • 347
  • 2
  • 9
18
votes
3 answers

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 boot from a USB stick and fix run fsck from there.…
stwissel
  • 640
  • 2
  • 7
  • 21
14
votes
3 answers

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 out of memory, with an error such as this one: …
TimB
  • 1,430
  • 2
  • 15
  • 19
13
votes
5 answers

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
  • 2,955
  • 3
  • 22
  • 15
12
votes
4 answers

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 SATA disk. Using hdparm we came to know that our…
khizar ansari
  • 205
  • 1
  • 2
  • 10
10
votes
3 answers

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 it quits again said it's clean very quickly.
Xiè Jìléi
  • 782
  • 7
  • 13
  • 27
10
votes
3 answers

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
  • 2,235
  • 6
  • 28
  • 36
9
votes
6 answers

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 really bad shape. I had the drives and the memory…
zidar
  • 233
  • 1
  • 3
  • 6
1
2 3
13 14