The system utility fsck (from "file system check" or "file system consistency check") is a tool used to check the consistency of a file system in Unix and clones.

learn more… | top users | synonyms

2
votes
1answer
2k views

Filesystem corruption (?) and appropriate use of fsck

Last week at work, our linux server (CentOS 5.5) was unresponsive to log in attempts, so I had to hard shut down it. After pulling out a couple of disks, on boot up it reported a degraded raid array ...
18
votes
5answers
39k views

How to check root partition with fsck?

I installed Linux Mint 12 KDE, and I would like to check the root partition for any errors. How do I check the root partition with fsck at boot time?
3
votes
3answers
4k views

break out of e2fsck on boot

Is it possible to somehow break out of e2fsck on boot? My system runs e2fsck every 30 days, which is fine by me and I want it to stay that way. But sometimes when I turn on the computer and 30 days ...
0
votes
0answers
928 views

Fsck says read block too short

Yesterday I left my Ubuntu laptop alone for a bit, and the power cable got knocked out, so the computer got shut down. Upon starting it up, it insisted on running fsck, which failed, asking me to run ...
1
vote
2answers
1k views

Prevent e2fsck from running out of memory?

I have a box running Ubuntu 11.10 with 512MB RAM and no swap. It has a 1TB USB HDD with ext3 filesystem attached. Sitting idle, it's only using about 60MB. When I run e2fsck, it runs out of memory, ...
3
votes
1answer
5k views

How can I run fsck on a disk image via Mac Terminal?

I want to run fsck on a disk image before I use it to restore (replace) a corrupted volume. Using Terminal, what would be the proper command, syntax, and options for this operation? I've just ...
4
votes
0answers
2k views

Disable automatic fsck_exfat on dirty volume mount in Mac OSX

I've several large hard disks formatted in exFAT to keep clean compatibility between Win7/Bootcamp and Snow Leopard. Here's the problem: fsck_exfat needs something like 6-8gb of RAM to complete on a ...
0
votes
0answers
80 views

Ubuntu 64-bit server - Hanging at fsck after adding PCI wireless card

The most random problem has raised its head; and left me a bit baffled. I have a Gigabyte GA-H55M motherboard; configured to run a SW RAID5 array, and utilising Ubuntu Server 64-bit system. I have ...
1
vote
2answers
843 views

How to tell when a machine is fsck-ing and hasn't had a kernel panic?

I have a server with Debian on it that I regularly reboot after upgrades. Sometimes (on schedule) fsck will check a disk when the computer is booting. With the exception of sitting in front of the ...
1
vote
0answers
135 views

Unable to boot Ubuntu

I used a live CD to install Ubuntu 10.10 on my HP Netbook (Mini Atom 1GHz CPU). I booted it up and then upgraded it to 11.04 Natty Narwhal. From the below I assume it got hacked, so how do I securely ...
0
votes
1answer
1k views

Is fsck for ext4 available for 64-bit systems?

First, I'd like to thank James T & ct64116 for their help on my first question; I accidentally overwrote an ext4 partition with the Windows 7 installer and lost something like 300Gb of files. I ...
3
votes
1answer
2k views

How do I check for bad superblocks and fix them on a USB device in Ubuntu 10.04

I've found some instructions for this, but it seems the fsck options are outdated. Currently I am trying: mke2fs -n /dev/sdc4 then using the blocks listed in this: fsck -y -b 163840 ...
1
vote
2answers
195 views

Can I cpulimit fsck without problems?

My special laptop tends to overheat and shutdown under Linux unless I cpulimit demanding programs. Would there be a problem with using cpulimit to limit fsck? Basically, the target process, which ...
1
vote
1answer
233 views

Proper way to run (e2)fsck on a server I am diagnosing?

I was reading an old sysadmin manual and it said to use the badblocks program to feed e2fsck with the -l parameter the bad cylinders, but newer "guides" are saying to use the -c switch instead. I am ...
1
vote
1answer
562 views

Filesystem handling for embedded Linux device

I am developing a device that will run Linux as its operating system. The device is a small form factor X86 device with a flash drive exposed as a SATA-device. So it is not very dissimilar from any ...
17
votes
4answers
54k views

fsck an ntfs drive in Linux

Is there a way to fsck/chkdsk an NTFS drive from Linux?
1
vote
5answers
2k views

Why does linux check disks during boot instead of shutdown? [closed]

I'm just curious - why do all linux distros (all I've seen) run their periodic disk checks during boot? I mean, I understand that a disk should be checked now and then, but why does the system do it ...
3
votes
5answers
5k views

Perform bad blocks scan on root partition in Linux

My root partition is formatted as ext3 and I would like to perform a bad blocks scan on it. Normally e2fsck -c -c does this, but you can not run it on a mounted partition. I know it is possible to ...
2
votes
1answer
2k views

how can fsck to recover from hardware failure?

I have a RAID 5 array using mdadm and ext4 as its filesystem. We got a strong power surge and one of the drive faulted, while another one got a bit flakky, aka "click of death". I replaced the disks ...
0
votes
1answer
2k 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 ...
22
votes
3answers
30k views

Why has my Mac been running fsck_hfs for two days now?

I first noticed that fsck_hfs was running, taking up 50-75% of a CPU, yesterday. It continues to run today. ps shows that it is doing /sbin/fsck_hfs -f -n -x -E /dev/disk3. Only problem: I don’t ...
4
votes
1answer
4k views

What are “Missing thread recordng” erros when running fsck -fy?

There is some error reported when I run Disk Utility and verify the root volume on my OS X MacBook. So I boot and CMD-S into the shell mode and run /sbin/fsck -fy. Errors are like: ** Checking ...
5
votes
3answers
11k views

Can't mount FAT32 drive under Ubuntu Linux

I have a 320GB USB drive with a single large FAT32 partition. The volume mounts perfectly fine on my Mac OS X 10.5.8 machine and Disk Utility on the mac reports no issues with the volume. I can ...
2
votes
1answer
5k views

fsck error: currently, only 1 or 2 FATs are supported, not 34

Why do I get the fsck error: "currently, only 1 or 2 FATs are supported, not 34?" And what can I do to successfully run fsck? I'm fsck-ing my Transcend 16GB Class-6 SD card. It got corrupted recently ...
3
votes
3answers
13k views

How do I prevent a memory card from mounting as read-only in Ubuntu Linux?

I'm using Ubuntu 9.04 and when I try to mount an SD card with the GUI I have to type sudo mount -o remount,rw /media/disk before I can write anything to the card. Is there a hidden setting to make it ...
5
votes
6answers
13k views

Ext3 drive will not mount after power failure; how to recover files?

After a recent power failure which caused my linux box (Ubuntu 8.10) to rapidly poweroff twice from a normal running state, I have a drive that will not mount. UPDATE: The drive will sometimes ...
0
votes
1answer
539 views

Unable to boot to Ubuntu. Inconsistency in disk, X server didn't start. Illegal blocks in Inode

I am unable to boot into my Ubuntu system. First I get that fsck died with exit status 4 Then I try to do it manually as prompted and I get that an Inode has illegal blocks and asked to clear it. ...
1
vote
2answers
3k views

Ubuntu Forced fsck on boot fails

fsck has lots of errors reading block 24251xx (attempt to read block from filesystem resulted in short read) while getting next inode from scan. Ignore error (y)? Force rewrite (y)? Sometimes ...
7
votes
3answers
31k views

fsck: Options for most thorough disk check

I've got a disk with a known problem (I know because dd gags when I try to clone it). But when I boot with a live CD and run fsck on the unmounted partition, I get this: ubuntu@ubuntu:~$ sudo fsck ...
17
votes
3answers
19k views

What is the difference between fsck and e2fsck?

What is the difference between the linux disk error-checking tools fsck and e2fsck?