Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [fsck]

fsck - check and optionally repair a file system.

1
vote
1answer
25 views

How to show journal messages from all `fsck` units

Is there a reasonable procedure for a system administrator to view all the fsck messages? On my current Fedora 29 system, I can view all the fsck messages from my current boot like this: sudo ...
0
votes
0answers
13 views

Fsck on encrypted home folder, do I need to decrypt first?

I would like to run btrfs check on /dev/sda3 partition that have encrypted home folder. If I decrypt folder that partition became mounted. The check requires it be unmounted, thus encrypted. Is it ...
1
vote
1answer
26 views

Reboot with faulty drive, devices names change, server does not boot

I have had this problem on 2 servers and I want to know how should I handle the problem. My server has an SSD (/dev/sda) and two SATA drives (/dev/sdb and /dev/sdc). The second drive (/dev/sdb) has ...
0
votes
1answer
43 views

systemd-fsck failed with error code 8. Unable to repair disk on bootup

I have two partitions, one for the RO root filesystem (mmcblk3p1), and the other is the RW home partition (mmcblk3p2). I can't figure out why systemd-fsck is unable to fix my partition when I manually ...
0
votes
0answers
24 views

Can't mount second hdd due to error /dev/mapper/backup--mint--vg-root: can't read superblock

I'm trying to mount a second hdd. I don't know where I'm going wrong. First, I set up a partition with cryptsetup: sudo cryptsetup open /dev/sdb5 backup sudo vgdisplay I got two identical vg names, ...
0
votes
0answers
15 views

Does fsck.f2fs not support loopback image files?

I had a micro SD card that I had "adopted" so the Android phone I had could use the storage as apart of the total storage for applications and data. This worked for sometime till the micro SD failed. ...
-1
votes
2answers
385 views

Ubuntu recovery says “fsck from util-linux” and exits

I booted Ubuntu in recovery mode to try and fix a disk error. However, when I run: fsck I just get: fsck from util-linux 2.31.1 And nothing else happens. Any fsck command is simply printing '...
0
votes
0answers
30 views

Get fsck to work with pam_mount

I've been trying to get luks volumes mounted at login with pam_mount fscked on mount, but without success. fstab provides the sixth field, where one can set a flag to determine whether the volume ...
0
votes
0answers
27 views

How to troubleshoot system freeze with a corrupted filesystem afterwards?

I have had a couple of nasty freezes recently when the system becomes unresponsive to the point that I need to hold down the power button to shut it down forcefully. As a result, I get corrupted ext4 ...
0
votes
1answer
156 views

btrfs check /dev/loop0 -> ERROR: cannot open file system

I have a file formatted as a btrfs filesystem. I can loop mount it and use it normally. I'd like to run btrfs check on this file, but an error is generated. First I tried with just the file: $ ...
0
votes
1answer
220 views

“No space left on device” despite 70GB free; can't create any files larger than 8.0MiB on iPad [closed]

OK so this is on an iPad Pro but I'm asking you guys because this is about the underlying Unix system behind iOS/OS X, not really iPad specific. (And yes I spent hours reading all relevant ...
0
votes
1answer
30 views

What would happen if you zeroed out a certain group of blocks in the EXT4 filesystem?

Basically, the EXT4 filesystem has chunks of data in size of 128MiB (by default), and this chunk is called a "group" or "group of blocks", which basically looks like this on the disk: The bigger the ...
6
votes
2answers
249 views

Where is fsck run?

I was reading through all the things that are run during bootup and have seen that after mounting the rootfs, /sbin/fsck.ext4 is run and after that systemd is run. I was wondering where or how fsck is ...
0
votes
0answers
130 views

disk in use in-spite we perform umount and lsof is empty

we want to perform fsck -f on /dev/sdc but without success umount -l /var/hadoop/zookeper lsof /var/hadoop/zookeeper/ fsck -f /dev/sdc fsck from util-linux 2.23.2 e2fsck 1.42.9 ...
-3
votes
1answer
54 views

Unmounting Linux [duplicate]

I have a problem with hashcat in Kali Linux and someone on the Internet suggested to do fsck. I check and it says to unmount the device before using the fsck command. I am using Kali Linux in dual ...
0
votes
0answers
67 views

Right way to fsck the root filesystem on an appliance?

Before going ahead, I'd like to make sure I understand how to perform a file check on the root filesystem that's installed on a USB keydrive on a Sheevaplug appliance running Debian 9. I was thinking ...
0
votes
1answer
31 views

Understanding USB message logs to troubleshoot USB automounting

I am trying to troubleshoot an issue where on one server my USB automounts whereas on another server it isn't. Comparing the logs for both instances, I am trying to understand what each line means. ...
2
votes
2answers
707 views

Does “recovering journal” prove an unclean shutdown/unmount?

Can we confirm the log message "recovering journal" from fsck should be interpreted as indicating the filesystem was not cleanly unmounted / shut down the last time? Or, are there other possible ...
1
vote
2answers
877 views

how to perform xfs_repair on disk that is actually UUID

we have redhat machines version 6.x we want to fix the file-system on one of our disks UUID=198s5364-a29c-429e-b16d-e772acd /data_SA xfs rw,noatime,inode64,allocsize=16m 1 2 but ...
0
votes
1answer
44 views

fsck not performed during boot in spite fstab configured correctly

today we notice about very strange issue the following partition ( from /etc/fstab) defined with "2" in the end of the line that means that fsck will be activate during boot since the data on that ...
1
vote
2answers
198 views

what is the best approach to fix file-system corruption on huge data

we need to fix filesystem corruption on sdb on redhat 6 version sdb is xfs file system df -h | egrep "Filesystem|/data" Filesystem Size Used Avail Use% Mounted on /dev/sdb 8.2T 7.0T ...
2
votes
1answer
227 views

How to Force fsck for all other non-root partitions

We have the following disks and there mount point: /dev/sdb /appTdb/sdc ext4 defaults,noatime 0 0 /dev/sdc /appTdb/sdd ext4 defaults,noatime 0 0 /dev/sdd /appTdb/sde ext4 defaults,noatime 0 0 /dev/...
0
votes
1answer
1k views

Is it possible to run fsck to only see errors on mounted disk

We have RedHat 7.2 OS. /dev/sdc is mounted to /bla/appLO Is it possible to run fsck on mounted disks (without umount /bla/appLO) and to see only the errors if they exist? Example: e2fsck -n /dev/...
4
votes
1answer
1k views

When can Linux boot with a Read-Only Root Filesystem

I am working on a embedded Linux with u-boot as bootloader and systemd init system. The tools are limited to standard busybox. While analyzing some problems, I figured out the root filesystem is read ...
0
votes
1answer
563 views

Usability is compromised on Ubuntu because of read-only filesystem error

Over the past couple of days Ubuntu has been progressively locking me out of the the system. I can't open some programs and the last straw was a few minutes ago when it refused to save a screenshot. ...
1
vote
2answers
837 views

Do systemd-fsck or fsck generate a status report?

How does one determine whether fsck operations were performed at bootup. I understand the default fsck config and behaviour, but is there a report or status that shows whether any fsck issues were ...
0
votes
0answers
25 views

After moving root partition in Linux Lite (Lubuntu), do I need to run fsck?

I finally migrated from Windows to Linux, and I chose Linux Lite (based on Lubuntu) as my first attempt, through dual-booting my PC. I loved using Linux, so I decided to steal most of the space of my ...
0
votes
1answer
603 views

Fsck on partition inside RAID broke file system AND RAID

What was: RAID 1 with mdadm on whole disks say /dev/md0 from /dev/sda and sdb, GPT with one partition on md0 and ext4 on this partition (md0p1). What I think happens: after changing motherboard linux ...
0
votes
1answer
46 views

Can't mount portable HDD - Cannot run commands on its partitions either

My Imation Apollo M100 portable disk is not mounting. One day I was copying a heavy file to it, the process got stuck and I unplugged it from the computer. When I connected it back to the PC and when ...
1
vote
1answer
412 views

How to pass parameter to fsck at boot time

I want to make fsck to run by default with -y at boot time to try to force automatic repair. Any idea how this can be done under Arch Linux?
4
votes
2answers
329 views

Fsck at boot time for loopback device

I discovered that is not possible to run fsck on a loopback device at boot by the fsck flag inside the fstab file, nor is it possible to accomplish this by manually running fsck when the loop device ...
0
votes
0answers
235 views

Metasploitable 2 fsck dies on boot up

I am running Kali Linux on a usb with persistence, I installed virtual box and I am trying to run metasploitable 2. When I start it everything goes well until fsck dies with exit status 4. It then ...
2
votes
1answer
271 views

Fixing btrfs file extent holes

So, due to what I assume to be a loose ATX connector my system powered down unexpectedly. Which is bad. When I run btrfs check I find a mile long list of extent holes. Fortunately they are limited to ...
1
vote
0answers
386 views

How do I run a fsck on an encrypted LVM partition?

I'm on Fedora 27 and I'm trying to fsck a SSD but the usual things like /forcefsck aren't working. Also tried to set up my /etc/default/grub like so GRUB_CMDLINE_LINUX="rd.lvm.lv=fedora/root rd.luks....
1
vote
0answers
33 views

Ubuntu locked up and strange UI changes, serious problem? [closed]

My Ubuntu 16.04 system just locked up out of the blue, I had to hard-reset the machine. Now that's booted back up, the Unity menubar has turned transparent, and the light shading around each icon on ...
0
votes
0answers
181 views

When fsck the `/dev/mapper/VolGroup-lv_web`, there comes error status: { DRDY ERR } error: { UNC }

When I fsck the /dev/mapper/VolGroup-lv_web, there comes a issue: /dev/mapper/VolGroup-lv_web contains a file system with errors, check forced. exception Emask 0x0 SAct 0x3 SErr 0x0 action 0x8 You ...
0
votes
1answer
435 views

is it safe to run e2fsck -y /dev/sdXX on hdfs files

we see the system log on one of the worker machine ( dmesg ) and from the log we saw that: (sdc): warning: mounting fs with errors, running e2fsck is recommended disk - sdc include the HDFS folder -...
1
vote
0answers
146 views

Unable to mount decrypted image

I have an encrypted image (ext4) that can be mounted perfectly on my Raspberry Pi but not on my (L)Ubuntu VM. The following commands work perfectly on the Pi: sudo cryptsetup luksOpen stuff.iso img ...
0
votes
1answer
347 views

e2fsck -n + how to know if need to run e2fsck in order to fix corrupted blocks?

we want to check the filesystem on the disks as /deb/sdc .... /dev/sdg on each linux redhat machine the target is to find what are the disks that required e2fsck ( as e2fsck -y /dev/sdb . etc ) ...
8
votes
1answer
6k views

What should I do to force the root filesystem check (and optionally a fix) at boot?

Yesterday, one of our computers dropped to grub shell or honestly, I am unsure what shell it was when we turned on the machine. It showed that it can't mount the root filesystem or something in this ...
2
votes
3answers
162 views

Is there any way to perform fsck automatically after power failure?

I have a USB HDD with an ext3 file system, (it's a Plex server media drive), connected to my Raspberry Pi, and after power failure it is not mounting automatically and has a superblock reading problem....
0
votes
1answer
415 views

OpenBSD /dev/sd0k unexpected inconsistency - bad super block

i got a big problem when i try to boot my VMware OpenBSD 5.7 i got this : I can see all my data making : cat /root/mydata they have nothing important for me into sd0k (/home) i've try fsck etc, the ...
4
votes
1answer
3k views

“inode extent tree (at level 1) could be shorter IGNORED”

I have a Debian system here. fsck runs from time to time while booting (on an ext4 file system). I get messages like this: inode extent tree (at level 1) could be shorter IGNORED What do they mean?
0
votes
1answer
239 views

RHEL6 / Centos 6 — mounting external USB storage at boot time in /etc/fstab

I wanted to put the mounting of my external USB storage disk into /etc/fstab so that I have it mounted READ/ONLY. LABEL=PN /PN ext3 defaults,ro 1 3 My ...
2
votes
1answer
78 views

What are the conditions that qualify a file as lost and found?

For files that fsck places in lost+found directory, under what circumstances does fsck consider a file to be lost, I have the following in my mind: For regular files: 1) If the inode links count is ...
0
votes
1answer
283 views

/etc/fstab and parallel filesystem check (fsck)

FSCK(8) says: The root filesystem will be checked first unless the -P option is specified (see below). After that, filesystems will be checked in the order specified by the fs_passno (the sixth) ...
1
vote
1answer
442 views

Disk shows wrong size on DF, correct size in gparted and vmware

I created a new backup system and initially tested everything with a 2.5TB disk. Once the idea worked out, I went to increase the disk to 7.5TB. I increase my volume on the SAN, then increased the ...
0
votes
0answers
136 views

Debian fails to boot. Goes to intramfs shell. Matrix numbers on running of fsck

So in essence there appears to be a problem of some sort that is causing my laptop to be unable to boot. As can be seen there is an error in /Dev/mapper/debian--vg-root requiring a manual fsck check ...
3
votes
0answers
236 views

How to find which file is affected by fsck error? [closed]

Running fsck on a freeBSD ufs file system yield some block and sector errors. Usually running it twice or three time would fix and repair the problem. I ran it many times, and the problem persists. ...
0
votes
1answer
645 views

btrfs: Reset `mount -o rw,degraded` count

With btrfs, it seems that there is a single opportunity to use: -o rw,degraded (eg, if there is a missing disk in a RAID1 configuration) How can one force the degraded mount to proceed rw a second ...