fsck - check and optionally repair a file system.

learn more… | top users | synonyms

1
vote
1answer
13 views

How can I tell when my file system was last fsck-ed at all?

I know of various ways in which to check when the last fsck occurred on a file system. e.g. $ sudo dumpe2fs -h /dev/sda1 | grep 'Mount count' -A3 dumpe2fs 1.42.12 (29-Aug-2014) Mount count: ...
1
vote
1answer
2k 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 ...
0
votes
0answers
14 views

Files not showing after restoring partition with testdisk and fixing with fsck

Long story short: I have the same problem as in here: http://askubuntu.com/questions/151232/all-files-gone-after-running-fsck-how-can-i-recover-my-files I used fsck on /home partition and it worked ...
0
votes
2answers
41 views

How to fsck root file system before boot or on reboot

Today I went through my desktop stations running Linux Mint 17.3 Cinnamon and did a file system check of root partitions with Ext4 file systems as follows: # fsck.ext4 -fn /dev/sdb2 The problem is ...
1
vote
1answer
98 views

Where is the log file for fsck on Kali v2.0?

I am testing Kali Linux v2.0, and I am not able to locate the log file for fsck scans. On Ubuntu v14 I found it here: luis@Terminus:~$ locate mountall.log /var/log/upstart/mountall.log.1.gz ...
-1
votes
1answer
27 views

repair ext4 after squashfs thrown error & gparted move failed

i was: merging (sda9) unused space with sda10 moving (sda10) to right to be able to move free space (from merged sda9 to sda14) on hdd with gparted gui on ubuntu started from usb and i encounter a ...
0
votes
0answers
248 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 ...
4
votes
3answers
2k 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" ...
1
vote
0answers
31 views

External USB drive fsck fails on boot

Yesterday I tried setting the fsck flag on fstab to 2 for the external USB HDD I use in my Raspberry Pi, so that it would be checked on boot, like: proc /proc ...
3
votes
0answers
3k 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 ...
0
votes
1answer
41 views

fsck.vfat failed to fix USB

Background Last year, while copying large video files of over 600MB using Ctrl-C and Ctrl-V in Window's File Explorer from a desktop to my USB stick, I forgot that my USB stick has only 4GB storage. ...
1
vote
1answer
75 views

How can fsck be so fast?

Is it normal, that fsck on an SSD takes a second or two? I am on Linux Mint 17.3 and I called sudo touch /forcefsck EDIT: ext4 filesystem
8
votes
3answers
20k 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 ...
1
vote
1answer
51 views

Skip fsck at boot

I know it is not recommended, but is there a way to skip fsck checking the file system mounted at / if it was not cleanly unmounted? I want to do this in single instances, while or before booting. I ...
0
votes
1answer
37 views

fsck seems to show different result between multi user mode and single user mode

I'm a programmer using java and ruby usually, and a beginner as server admin. Now I'm using CentOS6.7 as a guest OS with vagrant and virtual box; the background of the question the terminal emulator ...
0
votes
2answers
64 views

fsck doesn't write changes

I'm trying to repair a SD card with FAT, but fsck doesn't write changes — even the magic -w option doesn't help $ sudo fsck.fat -aw /dev/sda1 fsck.fat 3.0.26 (2014-03-07) 0x41: Dirty bit is set. Fs ...
1
vote
0answers
32 views

Why could I need to fsck check the root file system?

This could sound like a rather obvious question, but we all know that soft-checking of any partition is sometimes a need, and we perform it in cases like unstabilities found, lost files or ...
0
votes
1answer
25 views

How can I know if fsck was performed on the operating system partition?

I use to order fsck by doing: # touch /forcefsck On Ubuntu Linux v14 I have found this method to check if, after rebooting, it was performed: luis@Terminus:~$ sudo dumpe2fs /dev/sda7 | grep ...
0
votes
0answers
40 views

e2fsck progress bar after writing output to file

I ran: fsck.ext4 -yvf -C0 /dev/vg1/volume_1 > /home/layke/dump.txt Unfortunately, I realised after the fact that I have no idea how long this is going to take. I have no idea what would happen ...
1
vote
0answers
38 views

FSCK doesn't run automatically

My /etc/fstab for my main OS parition: UUID=5ee65c50-5672-42a6-9dcf-8bdba30c38aa / ext4 defaults,noatime,nodiratime,data=writeback,errors=remount-ro 0 1 One of the options is set to ...
1
vote
2answers
3k views

fsck problem when booting Debian stretch

I tried to boot my PC and I had this problem fsck from util-linux 2.26.2 /dev/sdb6 contains a file system with errors check forced. /dev/sdb6: Unconnected directory inode 1076721 (/var/tmp/???) ...
1
vote
1answer
40 views

Which is the best way tu run fsck.hfsplus before mounting an external disk (HFS+)?

I'm using a Raspberry with an external hard disk formatted in HFS+ and sometimes, for example after a power failure, the external hd is mounted only in read-only mode. In this case I run manually the ...
0
votes
1answer
61 views

Don't know if fsck failed or not

I just ran fsck on my newly bought SD card for my Raspberry Pi and it shows the following output: fsck from util-linux 2.25.2 fsck.fat 3.0.27 (2014-11-12) /dev/mmcblk0p1: 75 files, 2539/7673 clusters ...
0
votes
1answer
44 views

fsck will update inode or not in read only filesystem

I have custom am335x board with read only file system. I want to use fsck with auto repair broken packages and inode in read only file system. Will fsck auto update inode and broken packages in read ...
2
votes
2answers
50 views

fstab pass value for non root partitions

If I open /etc/fstab on an up to date Amazon Linux Server (using init, not systemd) I see the following: LABEL=/ / ext4 defaults,noatime 1 1 tmpfs /dev/shm ...
1
vote
1answer
522 views

RHEL7 boot logs show systemd-fsck errors, referencing fsck.ext2, when trying to run on an XFS file system

I get these errors when trying to boot CentOS 7: Jul 6 13:20:15 systemd-fsck: fsck: error 2 (No such file or directory) while executing fsck.ext2 for ...
2
votes
1answer
148 views

Can I skip a forced file system check?

From time to time, a file system check is forced when booting. This can take a long time. While I normally want these checks to happen, they can come at a bad time sometimes. Is there anything I can ...
5
votes
1answer
5k 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 ...
6
votes
3answers
3k 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
votes
1answer
175 views

Getting out of Emergency Shell after fsck failure

After re-arranging some hard drives across my SATA ports (this is a desktop machine), I get the following error after trying to boot up Arch: What could have caused this? Did I accidentally turn ...
3
votes
3answers
911 views

How to stop filesystem check (fsck) on boot?

Once in a while (every 30-th boot) my linux system decides to check filesystem for errors. I am ok with this - what needs to be done needs to be done. But sometimes I need my laptop to boot fast. I ...
0
votes
0answers
38 views

`cp -iprv` from UFS to NTFS panics FreeBSD and reboots

My nas4free OS seems to be dead, so I mounted its 2GB UFS data partition on my FreeBSD machine, and my 1TB external USB NTFS HDD (using ntfs-3g /source /mnt/dest). I tried the casual cp -iprv /SOURCE ...
1
vote
0answers
153 views

How to run full SSD disk check with `fsck` command on system reboot (Debian)?

Please advice how to run full SSD disk check with fsck command on system reboot? (Debian) sdb2 is root, sdb1 is boot partitions. What is recommended options and where to find check report? I would ...
0
votes
0answers
35 views

Linux hanging at fsck

Apologies for the bad photo but it's a big hassle to type it out as a dualboot user: http://i.imgur.com/1aMfwLy.jpg (it won't let me post images due to low rep) It hangs there for ages, no matter ...
0
votes
1answer
67 views

Increasing partition of a SD card

I have a SD card that has two partitions /dev/sdb1 that holds the boot sector, and /dev/sdb2 that holds the OS. The card still has unpartitioned free space. How can I take all the unpartitioned free ...
0
votes
0answers
86 views

Debian 8.1 with Uboot bootloader cannot run FSCK on reboot

I am running Debian 8.1 on an SD card on a Banana PI with U-boot bootloader. I'm trying to force my system to run fsck on reboot, but no matter what I do, nothing happens. Here are what I have tried ...
1
vote
2answers
156 views

ext4 reported as clean by fsck after hard reset: Is that normal?

My root-partition is formatted as ext4-filesystem. I notice that, whenever my machine crashes and I have to hard-reset it, when booting up again and the root filesystem is checked this step takes a ...
0
votes
0answers
141 views

Does converting raw dd-image to VDI touch the filesystem?

I have a raw dd-image of a harddrive from a Mac, and I need to extract the files from it. The problem is that the filesystem (HFS+) is corrupt, and from what I've been able to google is that it's ...
1
vote
1answer
52 views

Is it possible to resume fsck.ext4 using offset X?

I was fscking my HDD, when I had to stop because I needed to get somewhere within an hour. The whole session took quite a while (lasted much longer than I thought!). My question is, is it possible to ...
0
votes
0answers
4k 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. ...
7
votes
1answer
4k 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 ...
11
votes
4answers
13k 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 ...
0
votes
1answer
246 views

How do I pass options to forcefsck?

I am trying to run a one time disk check at bootup by using /forcefsck but I would like to pass some of the FSCK options such as y, c, f, and v. I have tried inserting these in the file but I seems to ...
4
votes
1answer
3k 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 ...
0
votes
1answer
60 views

dosfsck of pendrive taking too long

I have started running sudo dosfsck -a in a 512 GB flash drive and it's already been running for almost 2 days. Is this at all normal? This is happening in a relatively new i5 laptop. I am running ...
0
votes
1answer
78 views

fsck and checking external drives on reboot also

I know about shutdown -rF now that will check the drive on reboot but how can I also have it check all external drives also on reboot?
0
votes
1answer
356 views

How to force a file system check on the next boot of the root file system on Gentoo running systemd?

I want to force a fsck run on my root filessystem on my Gentoo system running systemd. I've tried adding an empty forcefsck file at the root of the filesystem which I want to check, e.g. touch ...
0
votes
1answer
49 views

Where does Knoppix store the location of hard drives/

I've been looking on the web and through the few Knoppix books I have. I cannot see where to locate the hard drives for a CentOS server I've booted with Knoppix. I am booting the CentOS server with ...
3
votes
1answer
1k views

ext4: Can a clean filesystem need journal recovery?

I always thought "clean" is a synonym of does not need journal recovery. However that does not seem to be the case $ sudo file -s /dev/sdc4 /dev/sdc4: Linux rev 1.0 ext4 filesystem data, ...
2
votes
0answers
180 views

fsck.hfsplus cannot repair keys out of order

My MacBook pro suddenly was no longer able to boot. Going into the disk utility from the recovery boot I tried to repair the drive and it failed saying that keys were out of order. I then made a copy ...