fsck - check and optionally repair a file system.

learn more… | top users | synonyms

0
votes
0answers
12 views

Force mounting, bypassing fsck

When I try to mount some SD card, it fails and dmesg displays: [ 124.121735] FAT-fs (sdb1): Volume was not properly unmounted. Some data may be corrupt. Please run ...
1
vote
0answers
36 views

ETX4-fs error on startup

Hi everybody, today I run dmesg and at the bottom I found some error lines about the device mmcblk0p2. Everything works fine even with those errors but I'd like to understand the problem. I've ...
0
votes
2answers
55 views

How to you force fsck at reboot on FreeBSD10?

I need to force a file system check on reboot to try and fix my mounted file system. All the commands/methods I find are obsolete in FreeBSD10 [\u@vader:/root] # tune2fs -c 1 /dev/vtbd0p2 tune2fs: ...
1
vote
1answer
22 views

How to setup boot scripts to save orphan inodes after improper shutdown?

after abnormal shutdown in dmesg I have [ 16.107445] EXT4-fs (dm-1): INFO: recovery required on readonly filesystem [ 16.107450] EXT4-fs (dm-1): write access will be enabled during recovery [ ...
1
vote
0answers
48 views

fsck single disk from Raid 0 lvm

My NAS (Seagate Blackarmor) is refusing to connect to the network after a fsck. I assume the root filesystem (stored on flash) might have been corrupted somehow after running fsck. The setup was a ...
0
votes
1answer
70 views

What is the issue due to which debian hangs at fsck /dev/sda? What is the solution?

What is the issue due to which debian hangs at fsck /dev/sda? What is the solution? This is the screenshot of Debian in normal mode: This is the screenshot of Debian in recovery mode:
2
votes
1answer
94 views

How to manually set the dirty bit on a FAT32 partition

For some debugging purposes, I'd like to be able to manually set the dirty bit of a FAT32 partition to true. I found tons of information on how to use fsck.vfat to remove the dirty bit, but none on ...
0
votes
0answers
64 views

Live shrinking of root partition has failed on Linux Mint

Steps taken: *Used fdisk to delete the existing root partition and created a new root partition (PV) starting on the same block *Added the 'a' flag using fdisk to make it bootable as /boot is under ...
0
votes
1answer
33 views

Disparity between output of `fsck` and `df`

fsck shows /dev/sda1 is okay, and uses 3811/49152 inodes and 105570/171776 blocks. df -i and df show that /dev/sda1 uses 443/239944 inodes and 0/959776 KiB. GParted shows /dev/sda1 uses ...
1
vote
1answer
46 views

What does `clean, x/y` mean in fsck output?

When I run fsck, I see output like: fsck from util-linux 2.25.2 e2fsck 1.42.12 (29-Aug-2014) /dev/sda1: clean, 3811/49152 files, 105570/171776 blocks Which I understand means everything is okay ...
0
votes
1answer
92 views

Mounting a Partition & recovery

To keep the story short, i am taking the easy way out and now trying to mount a partition to recover a few text documents. I tried to 'sudo mount -t ext4 /dev/sda4 /mnt' but received this error sudo ...
1
vote
0answers
243 views

Arch Linux boot failure: Fsck check on LVM /var mount fails

I recently installed Arch Linux on an older laptop that I am using as a personal workstation and machine to better learn how to administer Linux. I have a persistent boot failure that has started ...
2
votes
3answers
251 views

Restore from lost+found

There was a problem on an EXT4 FS/memorycard and after and fsck all the files were put in the lost+found. Question: how can I restore the old filename/hierarchy from the lost+found? Or it is ...
2
votes
0answers
495 views

How can I reset an unknown root password if a file system check interrupts the startup sequence?

This morning I was helping a fellow admin with a crash that occurred on a CentOS 5.8 VM. Earlier in the day, the underlying SAN hosting various VMs experienced an issue and ultimately caused some ...
1
vote
0answers
62 views

Error file system check

I enabled the package e2fsprogs and always when the system starts it return the following error (when partition mounting): Jan 01 00:00:03 xxxx systemd[1]: Found device /dev/mmcblk0p3. Jan 01 ...
2
votes
2answers
193 views

Run fsck automatically when calling mount from command line

I have a backup script that mounts and unmounts a USB drive. I just noticed that its warning me: EXT3-fs warning: maximal mount count reached, running e2fsck is recommended My question: How can I ...
1
vote
0answers
14 views

fsck.ext4 is running in the background at 0% CPU. Is it done? [duplicate]

Is there a way to check if fsck is completed? I sent it to the background but don't know how to get it back. I'm on a Raspberry Pi.
6
votes
2answers
985 views

What happens if I run fsck on /dev/sda instead of /dev/sda1?

When I have run fsck in the past I have always run it on what I thought was a filesystem partition, ie. fsck -yf /dev/sdaN, where N is the partition number on disk A. A friend of mine recently ran ...
2
votes
1answer
385 views

How do I check the progress of Badblocks if it's running in the background?

I'm running a drive check on my unmounted USB3 drive with: sudo fsck.ext4 -cDfty -C 0 /dev/sda1 & However, I sent it to the background and would like to check its progress. It's been running on ...
2
votes
1answer
715 views

How to fix invalid map node linkage?

My drive is formated to hfs+ and it is not clean. In example when I'm trying to mount the drive by mount -f -o rw, dmesg displays the error: hfs: Filesystem was not cleanly unmounted, running ...
0
votes
2answers
489 views

How to check SSD disk for errors from a Live CD?

Debian on SSD. How to check SSD disk for errors from a Live CD? Additionally, to save results to a txt file. Partitions are sdb1 /boot ext2 sdb2 root ext4 sdb3 swap Should I unmount partitions ...
2
votes
1answer
138 views

How creating forcefsck file triggers file system check on reboot?

What is the significance of the file /forcefsck? I understand by creating this file the file system check is enforced during the next reboot. But how does this work?
1
vote
1answer
122 views

archlinux check disks on boot

How can I check and mark bad blocks on Linux startup? There are a number of options available and most of them require accessing hardware and running live CD's. But I would like to avoid and perform ...
0
votes
0answers
59 views

impossible to make fsck

I'm trying to make a fsck to a pendrive and it says me: e2fsck 1.42.8 (20-Jun-2013) Pass 1: Checking inodes, blocks, and sizes Error reading block 40402759450689 (Invalid argument). Ignore error? ...
0
votes
0answers
113 views

ext4 data recovery from gparted error

During resizing and moving 2.7TB partition in Gparted, I encountered an error that froze the whole program. (I dont have a screenshot or output from it, as fas as I remember, it was something about ...
2
votes
2answers
823 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 ...
0
votes
0answers
2k 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
84 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 ...
4
votes
4answers
236 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 ...
3
votes
1answer
215 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 ...
1
vote
2answers
1k views

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

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" ...
4
votes
1answer
287 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 ...
1
vote
3answers
582 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
330 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
286 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
558 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
903 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 ...
5
votes
3answers
9k 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
165 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 ...
2
votes
1answer
650 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 ...
1
vote
4answers
82 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 ...
4
votes
3answers
5k 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 ...
4
votes
2answers
6k 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
239 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
2answers
1k 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 ...
5
votes
1answer
2k 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
1answer
1k 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 ...
1
vote
0answers
77 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
179 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
2k 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 ...