fsck - check and optionally repair a file system.

learn more… | top users | synonyms

-2
votes
0answers
45 views

Fsck error from util-linux

Loading, please wait... fsck from util-linux 2.25.2 /dev/sda2: clean, 36964/3055616 files, 469877/12207104 blocks And I can't start Debian. OS: Debian 8.3.0.
1
vote
1answer
12 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
34 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
26 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 ...
1
vote
1answer
38 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 ...
2
votes
2answers
22 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 ...
2
votes
1answer
93 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 ...
-1
votes
1answer
92 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 ...
2
votes
3answers
247 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
31 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
97 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
32 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 ...
1
vote
2answers
2k 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/???) ...
0
votes
1answer
46 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
57 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
87 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
80 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
41 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
1answer
145 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 ...
0
votes
1answer
43 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
57 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
199 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 ...
1
vote
1answer
365 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 ...
0
votes
1answer
38 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
745 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
140 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 ...
2
votes
1answer
135 views

do I need fsck.ext4 before mounting a filesystem?

I have a script that mounts /dev/sdc1 to /home. I do not know the state of /dev/sdc1 in advance, it could possibly be "dirty". Do I need to run fsck.ext4 before mounting the filesystem, or has mount ...
1
vote
1answer
147 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
69 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
316 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
181 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
178 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 ...
1
vote
1answer
1k 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
824 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
187 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
291 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
161 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
197 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
398 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
1k 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
2k 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
161 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
509 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
15 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
2k 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
1k 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 ...
3
votes
1answer
2k 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
1k 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
180 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
227 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 ...