A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [fsck]

fsck - check and optionally repair a file system.

Filter by
Sorted by
Tagged with
2
votes
0answers
42 views

fdisk says the partition I'm trying to recover is “unknown” type. Is there anyway to mount this?

I have a corrupt HFS partition that I'm trying to recover data from. >>sudo fdisk -l Device Start End Sectors Size Type /dev/sda1 40 409639 409600 200M EFI ...
1
vote
1answer
23 views

Can't mount encrypted disk from old cryptsetup

I've got a very old USB disk, on which there's a very old encrypted partition. It mounts as /dev/sdb1 On a newish box (with cryptsetup 1.7.3), I can attach to it with: cryptsetup -c aes-plain -s ...
0
votes
1answer
34 views

Linux fsck while boot

If the file systems are meant to do fsck while booting, why is Linux not able to do fsck sometimes, and going into maintenance mode?
1
vote
2answers
52 views

Best practice run a filesystem check on lvm volume?

Have many systems with ext4 directly on the block device and others on lvm. I routinely create new systems with ext4 directly on the block device and use tune2fs to have automatic filesystem checks. ...
0
votes
1answer
46 views

*** /dev/sda1 will be checked for errors at next reboot *** but it never is; remedy?

System: Linux Mint 19 "Tara" - Cinnamon (64-bit), based on Ubuntu 18.04, kernel 5.3.0-24-generic Problem duration: 1 month. Problem description: since this computer malfunctioned before my ...
0
votes
0answers
39 views

My computer says “/dev/sda2 contains a file system with error, check forced”

I have followed the instructions below but with no positive results in return: fsck /dev/sda2 Fixed and blocked all the corrections done by running Reboot I can't run any application on my desktop (...
0
votes
1answer
28 views

tune2fs -l /dev/nvme0n1p1, Couldn't find valid filesystem superblock

I'm following https://wiki.ubuntu.com/DebuggingKernelSuspend to debug a kernel suspend bug. There's a section which asks me to get the current fsck settings for a partition. I think my partition is /...
0
votes
0answers
15 views

Recover files listed by fsck, but nothing in drive

I am trying to determing the contents of an EBS volume, as it may have been important data that was accidentally deleted. To check if anything is there, I ran file -s /dev/xvdf and get /dev/xvdf: ...
0
votes
0answers
35 views

fsck exited with status code 4 - causes?

I restarted my computer (normally, through menu) on Linux Mint recently. Upon restart, the Mint splash screen showed (past the UEFI/BIOS settings menu), but then it only got a terminal with input ...
2
votes
1answer
26 views

How can I see if this fsck operation corrected any filesystem errors?

After doing a fsck on a filesystem, someone asked me if the fsck resolved any problems. I'm not sure how to interprete the following results. Do you see anything important to notice ? root@server1>...
1
vote
0answers
48 views

How to check for file system consistency after power outage [duplicate]

What can I do to check if a file system (data in files and the hardware) is intact or corrupt after a computer is shutdown abruptly due to power outage? My home desktop computer was shut down by ...
0
votes
1answer
95 views

Is there a way to automatically restore system files from lost+found

I am running Debian Buster, and out of nowhere the file system of the root partition got corrupted. I wasn't doing anything out of the ordinary, just surfing the net basically, and at some point i ...
1
vote
1answer
42 views

All superblocks corrupt, mismatched start sector on extended and logical partitions

While running Linux Mint 19 Cinnamon normally, the drive went into lockdown mode preventing disk writes indicating possible corruption. Upon shutdown and reboot I was met with ACPI errors. Following ...
0
votes
0answers
45 views

File system errors. Is my hard disk failing? Or this error is because of me?

My machine is Dell 7559 i5 with a GTX960m graphics card. I have a problem when I install GNU/Linux (any distribution) on my machine, after some days it crashes and has file system errors. I ...
0
votes
1answer
74 views

Stuck in tty after fsck error on boot

I have Ubuntu 16.04 running on my laptop. After starting the laptop, I got /dev/sda8: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY According to this link I am fixing the error with fsck -f /dev/sda8 ...
-1
votes
2answers
74 views

fsck exit status “System should be rebooted”

The fsck(8) manpage on Linux includes the following table of exit codes: The exit code returned by fsck is the sum of the following conditions: 0 No errors 1 ...
2
votes
0answers
64 views

Run fsck in the background on boot

Running openSUSE 15.1 with systemd, when it determined the need, the boot processes will invoke fsck on a particular disk. By default, this check will run in the foreground, blocking the completion of ...
0
votes
1answer
184 views

Kensington SD I/O Read Error, not recognised on Ubuntu 19.04?

I have two Kensington SD cards that will not be recognised on my ubuntu 19.04 OS. They are definitely working though, when I plug them into my windows 10 computer they register. I also have an old ...
0
votes
2answers
447 views

Cannot chroot due to “Input/output error” - file and disk seem OK

I am trying to repair a non-booted Arch installation after a computer crash during an update (worst of times). However, chroot fails. Tried this: # mount /dev/sdb2 /mnt/arch # cd /mnt/arch # mount -...
0
votes
0answers
19 views

Root FS goes into ReadOnly Mode in 2 days after clean Reboot

I have a Suse OS machine. The root FS goes into RO mode by itself. After a clean reboot it is back in RW mode but does not stay there. After 2 days it goes back to RO mode. I performed FSCK on ...
1
vote
1answer
76 views

Fsck ask for repairs during boot

At Raspbian, there is a /boot/cmdline.txt file where the option fsck.repair can be defined. As far as I know, the valid values are: yes (always repair) no (never repair) preen (default; repair if it ...
0
votes
2answers
412 views

fsck in recovery mode does not work

When I run fsck in recovery mode, it says that sda3 is mounted. /dev/sda3 is mounted e2fsck: cannot continue, aborting. However, when I try to umount sda3, it is busy. umount: /: target is ...
-2
votes
1answer
103 views

How to clean and reboot HDDs pulled from LVM groups (showing bad super blocks)?

I have 2x 4TB HDDs that were put in an LVM group last year, ended up not really using this server due to huge issues around installing nextcloud. At some point it started giving me boot problems so I ...
4
votes
2answers
531 views

Why swap space doesn't get filesystem check at boot time?

As I was checking the /etc/fstab I noticed that the swap space has attr pass=0, which means its filesystem is not checked at boot time. Can anyone please tell me why is this behavior for?
2
votes
1answer
497 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
39 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 ...
-1
votes
1answer
200 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
44 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
78 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
463 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: ...
7
votes
1answer
2k 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
727 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
88 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
236 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
6k 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,  ...
2
votes
1answer
125 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
39 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
44 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
1k 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
310 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, ...
4
votes
2answers
9k 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
525 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
450 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
65 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
504 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
432 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
65 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
1answer
112 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. ...
5
votes
2answers
3k 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
2k 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 ...