fsck - check and optionally repair a file system.

learn more… | top users | synonyms

8
votes
4answers
20k views

How can I fsck a partition when the device reads as busy (but has been confirmed otherwise)?

I'm attempting to run fsck -p /dev/sda5 to repair errors on an ext4 partition, however the command outputs fsck from util-linux-ng 2.17.2 fsck.ext4: Device or resource busy while trying to open ...
1
vote
1answer
609 views

Force fsck check after reboot with single command

I'm looking for systemd's equivalent to the shutdown -F command. I know that I can force fsck by adding fsck.mode=force to kernel options or tweak mount count for disks. I have tried touch /forcefsck ...
2
votes
2answers
45 views

dd to clone to smaller sdcard

One of my Raspberry Pi's is using a 4GB SDcard for the root/boot filesystem. As seen when mounted on another system: Disk /dev/sdc: 3904 MB, 3904897024 bytes 121 heads, 62 sectors/track, 1016 ...
3
votes
1answer
66 views

What makes fsck so slow on big filesystems?

I have over a dozen of filesystems on my OpenBSD server with 12GB DDR3 and several 1.5TB HDDs. All filesystems themselves are generally between 8GB and 64GB in size. I've noticed that even by ...
3
votes
4answers
86 views

Mount filesystems after boot to avoid fsck delay for sshd

I'm trying to optimise the overall downtime and improve availability in case of system failure. I'm specifically concerned about the reboot (e.g. after a kernel panic) taking so long that I don't ...
0
votes
0answers
98 views

RHEL server Booting problem: "fsck.ext3: unable to resolve 'LABEL=/u01'

We had an old Linux server in the workplace for last few years, so I decided to turn it on and it's showing this problem during boot up: No devices found Setting up Logical Volume Management. ...
1
vote
0answers
20 views

bad inodes reappear after fsck() for vps guests

I have several vps guests that were created by virt-resize. I do daily backups on the guests by creating a snapshot and rsync file contents. But some of them don't have a clean disk image. As soon as ...
1
vote
2answers
100 views

Force fsck at boot time on the root file system (prior to mounting file systems, without Single-User mode)

I just wonder if there are any solutions available at all (Googled for 2 hours). How to automatically force fsck disks after crash in `systemd`? - does not mean anything. Setting fsck_y_enable="YES" ...
3
votes
1answer
43 views

What is the difference between fsck options -y and -p?

The ext2/3/4 filesystem checker has two options that seem to be very similar, -p and -y. Both seem to perform an automatic repair, but the manpage states that -p can exit when it encounters certain ...
10
votes
4answers
6k views

How can I avoid “Run fsck manually” messages while allowing experimenting with system time changes?

I'm working with a system where we want to allow users to play around with the date and time if they want, and where reboots may happen arbitrarily. This is fine, except for one thing: if there's a ...
1
vote
3answers
79 views

File missing after fsck

Recently, my HDD crashed and I had to run a fsck command. Many files were moved to the lost+found folder and I've retrieved the important ones using find and grep, but I can't find my SQL databases. ...
5
votes
2answers
193 views

encrypted ext3 damaged; how to proceed?

My home partition on a Debian wheezy install is an encrypted LVM volume. It is ext3. Earlier today, I had a weird message in a terminal window about an attempt to write to a file in my /home tree ...
1
vote
0answers
121 views

Boot time discrepancy using systemd on Debian 7.4

I recently installed systemd on my Debian 7.4 system. The time from pressing the power button to usable desktop is around 42-44 seconds. The BIOS takes 6-7 seconds to load and transfer control to ...
3
votes
2answers
52 views

Stopping e2fsck early

I had some drive errors so I ran e2fsck -cckty to find bad blocks on a 2TB drive. It found some bad blocks at the beginning, but hasn't found any in a day and a half. e2fsck has been running for 40 ...
1
vote
1answer
121 views

Adding badblocks on mounted partition

I tried to move some files to my NAS (ShareCenter DNS-320), but something shows up, when using file managers: Input/Output error or when using rsync on mounted cifs/smb share rsync: close failed ...
2
votes
1answer
769 views

How to force fsck at every boot - all (relevant) filesystems?

I'm working with a fanless PC (hundreds of them, in fact) that has debian 6 and 3 partitions( FAT and 2x ext2). The system doesn't have a power button as such so most people tend to yank the plug to ...
2
votes
1answer
93 views

Check `fsck` automatically

I need to run fsck so that it automatically fixes problems (i.e., fsck -y). And because I am using "systemd" instead of "init" in the linux system, I cannot modify the /etc/default/rcS. So what ...
1
vote
1answer
81 views

Problems mounting a disk

I have a disk that has failed to mount on start up. I have commented out the line in fstab to try to diagnose the issue: # /dev/sdc /media/bigdrive ext4 auto,exec,rw,user,async 0 0 Then rebooted. I ...
4
votes
2answers
1k views

Fix EXT4-fs bad geometry (block count exceeds size of device)

I have a micro SD card which has a FAT32 partition and an EXT4 partition. The EXT4 partition will no longer mount. dmesg shows the following error: EXT4-fs (sdb2): bad geometry: block count ...
1
vote
4answers
48 views

targeting a specific block with e2fsck to shorten wait

Recently had a LVM'd CentOS 6.5 install get accidentally cold-shutdown. On bootup, it says that the home partition need fscking: /dev/mapper/vg_myserver-lv_home: Block bitmap for group 3072 is not ...
3
votes
1answer
1k views

Short read while trying to open partition

On my personal home computer running Kubuntu Linux 13.04 I'm having trouble mounting a partition that is very dear to me. My backup policy is to perform a backup about monthly, so I do have a backup ...
0
votes
0answers
81 views

e2fsck -y /dev/sda changed my 6TB disk into 1.8TB

After problems with mount I run e2fsck -y -b BLOCK /dev/sda and it was running for 3 days on 6TB raid 0, when it completed this was the output: /dev/sda: ***** FILE SYSTEM WAS MODIFIED ***** ...
3
votes
1answer
5k views

How do I fix btrfs? [closed]

I've trawled mailing lists and finally finished up on Ubuntu's btrfs page, and am left feeling that btrfs still does not have a full fixing utility (as indicated on their home page). Even though ...
2
votes
2answers
117 views

fcsk died with status code 4

During boot my laptop says: fsck died with status code 4 The man page tells me: The exit code returned by fsck is the sum of the following conditions: [..] 4 - File system errors ...
2
votes
1answer
343 views

Temporary files problem

Recently my server started to behave weird and I have two issues which I believe to be related. In Vi : When I try to save a file I get : E509: Cannot create backup file and I need to save ...
1
vote
0answers
35 views

Superblock for /dev/sdb1 is wrong size: won't boot

I installed Red Hat as a VM and while it shows files for /dev/sda1 there are no files for /dev/sdb1. When booting I enter a recovery login and a statement that "the /dev/sdb1 Superblock can not be ...
0
votes
0answers
115 views

What's the problem with fsck.ext3?

It seems there is some problem with my HDD in my satellite box. The box records to and plays video from the HDD, but occasionally it hangs (it was stable before). It's Linux version ...
2
votes
2answers
957 views

After crash, e2fsck fails with weirdly high block numbers/sizes

After a breaker trip a Raspberry Pi of mine started to halt boot with kernel panic (same message as here). This is a Raspberry Pi running Raspbian, so it runs from a SD card, from a main ext4 ...
1
vote
3answers
395 views

fsck -cc /dev/sdb1 gives this result. Is everything okay?

root@host [/]# fsck -cc /dev/sdb1 fsck from util-linux-ng 2.17.2 e2fsck 1.41.12 (17-May-2010) Checking for bad blocks (non-destructive read-write test) Testing with random pattern: done /dev/sdb1: ...
2
votes
1answer
236 views

I/O errors on Linux LVM

I have a CentOS 6 box with LVM setup and one of the PVs is a USB disk (I know). One of them is getting the error: Oct 30 10:57:07 alpha01 kernel: lost page write due to I/O error on dm-3 Oct 30 ...
1
vote
1answer
160 views

fsck ext4 on ssd: max mountcount and checkinterval

I'm using an ssd as the only drive in my laptop (Debian stable). It seems that SuSE sets mountcount to -1, disabling fsck at boot. The thread linked says that ext4 needn't be fsck'd anyway. Is that ...
2
votes
3answers
474 views

Safe to disable boot fsck on read-only ext3 file system?

I have a large, frequently read, ext3 file system mounted read-only on a system that is generally always hard power cycled about 2-3 times per day. Because the device is usually powered off by ...
1
vote
2answers
290 views

Is fsck -N mounted file system dangerous

I've read to never run fsck when the file system is mounted. What about running fsck -N to only identify but not repair the file system when mounted? Is that dangerous? Is fsck -N known to overload a ...
0
votes
1answer
65 views

Drive keeps rebooting and wait for manual fsck [closed]

This is what my datacenter says I've connected monitor to your server and it looks like it was rebooting and is waiting for manual fschk again. Have you rebooted your server? Then fdcservers ...
1
vote
4answers
4k views

What does “mounting fs with errors” mean in dmesg and what to do after that?

I run dmesg and this is what I see: EXT4-fs (sda1): warning: mounting fs with errors, running e2fsck is recommended EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: Here is the ...
1
vote
1answer
1k views

What's the difference between e2fsck and fsck and which one I should use?

I got this error message when running dmesg EXT3-fs (sdd1): using internal journal EXT3-fs (sdd1): mounted filesystem with ordered data mode EXT4-fs (sda1): warning: mounting fs with errors, running ...
2
votes
0answers
80 views

Problems with USB goflex 2 TB

I am using CentOS 5.5 and have been using cpio to write backups to a 2 TB GoFlex USB drive. This drive worked great for over a year, but am now running into a problem and not sure what to do. When ...
5
votes
3answers
418 views

Can one scan with fsck a read-only partition?

I have a file system that has some "unlinked inodes" and for this reason it was mounted as read-only. As I understood, to get this device into rw-mode, I need to perform partition check with fsck. All ...
1
vote
1answer
2k views

Extremely long time for an ext4 fsck

The problem that I am having is the extremely long time that fsck is taking. I have thoroughly made searches on Google, but I could not find anything that would resolve the problem. The command that ...
0
votes
1answer
101 views

Safest way to run ext4 fsck on external drive

I have an external drive formatted in ext4 that throws this error message when is plugged in EXT4-fs (sdd2): error count: 8 initial error at 1366215273 last error at 1366215527,it generally works just ...
0
votes
2answers
444 views

If “fsck -n /PATH” says errors, then it's 100% true that the FS has errors?

HOSTNAME:~ # fsck -n /FSMOUNTPOINT fsck 1.38 (30-Jun-2005) e2fsck 1.38 (30-Jun-2005) Warning! /dev/vgname/lvname is mounted. Warning: skipping journal recovery because doing a read-only filesystem ...
3
votes
0answers
278 views

Confusion with how to restore corrupt ext3 files if power outage occurs during a file write

I am running a small embedded system. Because the system will never be gracefully shutdown and will just have the power cable unplugged, I am running an initramfs but mounting an ext3 partition on a ...
0
votes
3answers
627 views

Automatically run kpartx during boot

I'm running Debian Wheezy on an SSD, and in addition I have two 500GB hard disks in Intel software RAID 0 (fakeraid). Both the SSD and the RAID array have GPT partition layouts. I have set up my fstab ...
2
votes
1answer
244 views

Why was -F removed from /sbin/shutdown?

I used to be able to run /sbin/shutdown -r -F now but in recent Ubuntu and Fedora releases there is no -F option and if I want to force an fsck I need to do touch /forcefsck; /sbin/shutdown -r now. ...
0
votes
1answer
250 views

Fedora 17-15 old lvm partition reporting incorrect size

After years i decided to upgrade from Fedora 15 to 18, but as per the guidelines only 2 versions can be jumped, so i decided to settle with Fedora 17 and ran preupgrade , all was going fine, till ...
2
votes
1answer
72 views

Can e2fsck be suspended?

I have a large hard disk partition. I would like to launch e2fsck on it so that i shall suspend its progress, be able to reboot and resume e2fsck from where it was suspended.
1
vote
1answer
415 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
297 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
227 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
310 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 ...