fsck - check and optionally repair a file system.

learn more… | top users | synonyms

0
votes
0answers
12 views

Image file and filesystem errors

Since several weeks I'm working on an image file of a file-system. It is composed of three partition (boot, rootfs, home). I did a lot of work inside with chroot and external tools. Then I used ...
1
vote
0answers
22 views

Can skipping `fsck` on boot impact serial-port communication?

I have a bizarre serial-port (RS-232) communications issue (it appears that some data is being dropped, though I'm not sure if it's outgoing, incoming, or both) that I'm observing sporadically. I've ...
1
vote
1answer
32 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: ...
0
votes
0answers
16 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
66 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
votes
1answer
42 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 ...
1
vote
0answers
34 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 ...
0
votes
1answer
62 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
82 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
1
vote
1answer
69 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
45 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
74 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
34 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 "mount"...
0
votes
0answers
47 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
43 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
1answer
58 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
66 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
51 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
122 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 /var/...
2
votes
2answers
56 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
161 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
195 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
1k 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
39 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
207 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 ...
1
vote
2answers
4k 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
73 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
91 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
185 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
149 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
59 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
279 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
64 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
84 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
390 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
573 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 /dev/disk/by-uuid/45544ef5-118c-478f-a3e8-...
0
votes
1answer
50 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, UUID=...
2
votes
0answers
201 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
188 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
190 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 fsck....
1
vote
0answers
77 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
577 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
277 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
222 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 ...
2
votes
1answer
3k 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
1k 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
211 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 ...