fsck - check and optionally repair a file system.

learn more… | top users | synonyms

1
vote
1answer
440 views

File access after fsck very slow for first-time access?

My drive started to show up errors, I unmounted it and ran fsck on it. It's a 2TB drive installed on Debian Squeeze, using ext3. The fsck too about 17 hours. I found some, luckily mostly unimportant, ...
0
votes
1answer
317 views

Recover ext3 files from hard disk with bad sector [duplicate]

Possible Duplicate: Recover formatted ext3 partition I have a folder of about 5GB that suddenly disappeared. When I checked its hard disk, I found out it has bad sector for about 2-3MB on ...
1
vote
1answer
248 views

iostat report huge writes to drives that's not even mounted

root@host [~]# fsck /home2 fsck from util-linux-ng 2.17.2 e2fsck 1.41.12 (17-May-2010) /dev/sdb1: clean, 6018617/91578368 files, 54524459/366284000 blocks root@host [~]# fsck /home4 fsck from ...
2
votes
1answer
332 views

IO Error on RAID5 member. What to do about bad blocks?

I recently got an IO Error on one of my RAID5 members; on a 3 disk fakeRAID array. I didn't notice at the time - there was only a message in /var/log/kern.log - so I had continued running the machine ...
2
votes
1answer
566 views

Error mounting drive with fstab

I have an small server in my house with an external usb 2TB hard drive: /dev/sdb1: LABEL="Data" UUID="eedc3098-221d-4800-b8b4-efa4fef23f5f" TYPE="ext4" I have the next line in /etc/fstab: ...
2
votes
2answers
149 views

Can I make low-level changes on a root fs mounted RO?

Related to this question: having a root file system that had to be mounted read-only (say it's completely broken), can I reformat the partition or dd a older backup image on top of it (and then ...
2
votes
1answer
729 views

Where is fsck startet for the root filesystem at boot?

I want to extend an existing Debian 6.0 system so that it is able to automatically fix a corrupt root file system by restoring a separate image. That process should start automatically instead of the ...
2
votes
1answer
390 views

Slow boot, how to program fsck to run like a cron job?

Sometimes my web server crashes, and it may take hours to boot. I've been told fsck might be the culprit, because it can only be run during boot, only runs after X days and Y mounts, and if the server ...
2
votes
0answers
584 views

Bad superblock after server crash

My server (CentOS 6) crashed, and it now kernel panics on boot. It's currently using a mdadm RAID1 array with two 1TB drives. vg_server2422-LogVol01 is / vg_server2422-LogVol00 is Swap ...
2
votes
1answer
1k views

How to automatically force fsck disks after crash in `systemd`?

Sorry for bad english. How to set systemd for automatically force fsck disks after crash (hard poweroff)? When I used sysvinit (in Arch Linux) as /sbin/init I used the hack: in the rc.local I create ...
5
votes
2answers
2k views

Is there a Linux tool for defragging NTFS partitions?

Can NTFS partitions be defragged within Linux? Does fsck work for this? (Here and there I've seen a recommendation to use fsck -t ntfs --kerneldefrag /dev/XXX. Would this work?)
1
vote
2answers
458 views

Why does e2fsck fail during boot, but not later?

When booting my Debian server, I'm presented with the following error concerning my external hard drive: /dev/disk/by-label/elements: The superblock could not be read or does not describe a correct ...
5
votes
1answer
3k views

Is there any difference between e2fsck and e4fsck on CentOS / RHEL systems?

ext4.wiki.kernel.org makes it sound like e2fsck was simply renamed to e4fsck so that e4fsprogs and e2fsprogs could coexist without overlapping. However, there is no mention of any difference in the ...
5
votes
2answers
1k views

Importance of fsck at boot with Journalled filesystems?

I noticed that XFS does not implement a fsck at system boot and one of the reasons touted in that journaling file-systems help ensure the file-system is in a consistent state after an unclean ...
1
vote
1answer
3k views

Should I run fsck on boot for an amazon ec2 image?

I have an Ubuntu micro instance running on amazon EC2. Recently after logging in I was alerted: *** /dev/xvda1 will be checked for errors at next reboot *** I've rebooted a couple times using init ...
5
votes
2answers
851 views

Why was fsck priority introduced in /etc/fstab?

Inside the /etc/fstab file, in the sixth column, there is a number that corresponds to whether a filesystem should be scanned for errors. Possible values are: 0 - skip 1 - high priority 2 - low ...
1
vote
0answers
366 views

Resolving unmet installation dependencies; file system problems

Somehow part of my ext3 file system got corrupted and large portions of my python installation got all sorts of messed up. The only thing I could notice immediately was Python raising a missing module ...
0
votes
1answer
2k views

What is in fsck section in fstab?

I have a basic understanding of fsck utility but what does "fsck" section in /etc/fstab denote? It has values 0, 1, 2 what are these values? Googling says 0- it wont be checked 1- will ...
6
votes
1answer
1k views

Significant difference in speed between fsck using ext3 and ext4 on Debian Squeeze

Recently I installed Debian Squeeze, first using ext3 and then again using ext4 on the same machine. The automatic fsck done after a certain number of mounts is much faster using ext4 (about 1 min) ...
8
votes
2answers
1k views

How to repair an ext3 partition after broken resize operation?

I was using gparted to resize a near-terabyte ext3 partition, adding about 40 GB to the left. After nearly 12 hours of moving data (and with 23 more hours estimated to remain) the system hung. Now ...
6
votes
1answer
2k views

How does the Unix “fsck” differ from the Windows “chkdsk”?

What are the differences between Unix's fsck and Windows' chkdsk?
2
votes
2answers
501 views

Did `sudo init 6` cause my file system to be corrupted?

I was developing some code and had open qtcreator (software development IDE), gnome-terminal, and possibly firefox. I needed to restart to test something. So i restarted using sudo init 6. When my ...
5
votes
2answers
834 views

How can I diagnose and repair missing drive space?

I have a small ext3 / partition on a 2T drive which appears to have a discrepancy in its free space. How can I determine what is causing it and how it can be fixed. After trying everything I could ...
10
votes
1answer
4k views

What does fsck -p (preen) do on ext4?

I was reading a blog post about filesystem repair and the author posted a good question… fsck -p is supposed to fix minor errors automatically without human intervention. But what exactly will it fix ...
1
vote
1answer
2k views

e2fsck progress bar?

How can I see the progress of e2fsck in the terminal? Are there any pv like ways? For example how can I see how far along this command is in progress: e2fsck -f -y -v /dev/sdb1
1
vote
2answers
893 views

How can I fix linux disk without unmount it?

I had large file 200GB in my ext2 disk, then I deleted it(three are no files in Trash). And I haven't gained any free space. I don't want to use fsck as it requres me to unmount disk. I were windows ...
5
votes
1answer
1k views

How to view bad blocks on mounted ext3 filesystem?

I've ran fsck -c on the (unmounted) partition in question a while ago. The process was unattended and results were not stored anywhere (except badblock inode). Now I'd like to get badblock ...
3
votes
2answers
543 views

How to test file system correction done by fsck

How to make sure that fsck is correcting corruptions while keeping the integrity of file system? Suppose clients are writing lots of files through NFS to server, and there happens something that ...
4
votes
1answer
5k views

e2fsck: unable to set superblock flags on LogicalVolume

When I boot my machine either in normal mode or runlevel 1 it throws following error and I'm unable to boot the machine: checking filesystems /dev/MyGroup/LogVol00: UNEXPECTED INCONSISTENCY; RUN ...