Stack Exchange Network

Stack Exchange network consists of 175 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.

-3
votes
0answers
17 views

Probably a failing HDD but want to be sure [on hold]

I'm having to manually fsck almost every boot, and am unable to update or install new programs due to a specific error in the process. Don't recall what offhand but can boot and find out. Anyway, I ...
2
votes
1answer
39 views

Repair possible file system corruption in virtual Linux guest OS (Virtualbox)

Background My power went out during some rain recently while I was away from home. When I got back the power was still out and when it came back on, my system seems to have suffered some issues. ...
0
votes
2answers
21 views

If e2fsck says output from a mounted file system isnt to be trusted, then how does systemd generate log messages from fs errors?

man e2fsck says; Note that in general it is not safe to run e2fsck on mounted filesystems. The only exception is if the -n option is specified, and -c, -l, or -L options are not ...
0
votes
1answer
47 views

If a directory is put in lost+found after running fsck, will it contain all of the original contents?

Let's say I have the following directory structure, in an ext4 filesystem: a/b/{1..9} (in other words, a/b/1, a/b/2, ... a/b/9) Suppose I am writing to a/b, and then I lose power. fsck runs and ...
1
vote
1answer
22 views

Recover file list from NTFS formatted (MBR) failing hard drive

My Seagate Backup Plus Ultra Slim 2TB USB hard disk is not detected on Windows(explorer, disk management, safety remove dialog all crashes when I plug in) but on fedora, it takes 2 minutes to ...
1
vote
1answer
34 views

short way to perform efsck when we have huge number of disks

we need to do e2fsck on all our disks ( redhat linux - 7.2 ). Since on each machines we have 22 disks ( ext4 file-system ) it will take time to do it on each disk as all know when doing e2fsck need ...
0
votes
1answer
91 views

Bad magic number in super-block: dm-crypt device

I have a device that is encrypted using dm-crypt. This is a mini SD card that I use on my laptop. I've had some issues with my laptop freezing recently, and in the journal these messages come up: ...
4
votes
1answer
215 views

Should I answer yes to “Clone multiply-claimed blocks<y>?” when running e2fsck?

When running e2fsck -cck /dev/mapper/xxx I am prompted with has 487 multiply-claimed block(s), shared with 84 file(s): ... (inode #221446306, mod time Tue Feb 20 19:48:38 2018) ... (...
-2
votes
2answers
153 views

How can I make `fsck` actually check the healthiness of my disk, partitions, filesystems, and LVs?

I want to check the healthiness of my disk, partitions, filesystems, and LVs. So I run fsck. I heard to use fsck on a filesystem, I need to boot into a live Lubuntu from a bootable flash drive and ...
-1
votes
1answer
38 views

is it possible to `fsck` for badblocks a single LVM logical volume SEGMENT?

why? to resume fsck -fcck while looking for badblocks as it takes humongous time (1TB SATA HD) and I have no no-break on my desktop, so, I could split the logical volume in several segments of 10GB ...
0
votes
1answer
107 views

Long boot time of Debian Stretch

My Debian Stretch system takes nearly a minute to boot up. It usually takes about 15 seconds. My error: Gave up waiting for suspend/resume device fsck: error 2 (No such file or directory) while ...
0
votes
1answer
1k views

Mount: wrong fs type, bad option, bad superblock on /dev/mapper/VolGroup-lv_home

When I mount my /dev/VolGroup/lv_home there get error: [root@localhost VolGroup]# mount /dev/VolGroup/lv_home /home/ Mount: wrong fs type, bad option, bad superblock on /dev/mapper/VolGroup-lv_home,  ...
3
votes
1answer
70 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
16 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
32 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
308 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
182 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
45 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
3k 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
1answer
303 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
265 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
36 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
350 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
219 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
59 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
109 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
33 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. ...
4
votes
2answers
1k 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
1k 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
90 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
296 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
285 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/...
1
vote
1answer
2k 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
2k 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
796 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
1k 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
36 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
982 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
54 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
537 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
372 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 ...
2
votes
1answer
364 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
431 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
35 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
218 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
715 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
209 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
388 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
8k 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
215 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....