Questions tagged [fsck]

a tool to check the consistency of and repair a file system for Unix-like operating systems

Filter by
Sorted by
Tagged with
0 votes
0 answers
106 views

Repair a forced fsck-ed LUKS volume

In a moment of distraction, I'v managed to run: # fsck -Ty /dev/sda1, where /dev/sda1* was a LUKS encypted volume. I don't have a recent backup, so I can't restore. And the backup I have is for the ...
adi8fego's user avatar
0 votes
0 answers
98 views

How to rebuild the filesystem of a recovered partition

I managed to ruin a server drive by trying to clone it to another drive with dd. In the process, the original boot and sda1 partitions were overwritten. I immediatly stopped using the drive,I made an ...
Expired's user avatar
0 votes
1 answer
2k views

Why does fsck not working when I try to repair the filesystem

I try to mount /dev/nvme0n1p1. Disk /dev/nvme0n1: 465.76 GiB, 500107862016 bytes, 976773168 sectors Disk model: Samsung SSD 980 PRO 500GB Units: sectors of 1 * 512 = 512 bytes Sector ...
CrazyDuck's user avatar
1 vote
0 answers
235 views

What is the safe way to run fsck or badblocks on a XenServer local storage repository?

I have a XenServer host with six large local disks as storage repositories, which are mounted in pairs in three VMs, and NFS shared from the VMs to provide backup volumes for multiple hypervisors of ...
Pyromancer's user avatar
0 votes
0 answers
968 views

mkfs + any solution for “could not read block” or disk replacing

we doing mkfs on the disk sda as the following mkfs.ext4 -j -m 0 /dev/sda -F mke2fs 1.42.9 (28-Dec-2013) Warning: could not erase sector 2: Attempt to write block to filesystem resulted in short ...
King David's user avatar
1 vote
1 answer
114 views

replace phases of fsck in fstab

I'm searching some way to replace fsck phases in my fstab file but only for line which contains specific path. currently fstab looks like that: /dev/mapper/vgroot-root / xfs defaults ...
MiK's user avatar
  • 13
2 votes
1 answer
5k views

linux + disk apears from lsblk but blkid not give the UUID

we have rhel 7.6 server with sdb and sdc and sdd disks the machine is physical machines with disk of 1.7T each of them we notice the sdd disk displayed from lsblk as lsblk | grep data sda ...
sheffadmin's user avatar
2 votes
1 answer
344 views

fsck raid10 ext4 partition currupted, restore data

there is a volume in raid10 /dev/md3 it has a GPT partition /dev/md3p1 in ext4 with a size of 16TB. I accidentally ran fsck -y /dev/md3 causing the filesystem in /dev/md3p1 to get corrupted. fsck -b ...
user607743's user avatar
0 votes
1 answer
1k views

Hang on FDISK New Partition

I am attempting to reformat a drive. Was originally formatted for Solaris with a ZFS filesystem. I am reformatting for my Linux (debian). I used fdisk to remove all existing partitions. Both fdisk and ...
Dorothy's user avatar
  • 179
0 votes
1 answer
108 views

fsck on disk while Linux machine is up with runlevel N 5

we have linux machine , and we did the disk repair as the following umount /grid/sde fsck.ext4 /dev/sde e2fsck 1.42.9 (28-Dec-2013) /dev/sde: clean, 103867/1310720 files, 4725204/5242880 blocks this ...
King David's user avatar
0 votes
1 answer
6k views

FSCK run and unmount issue

A partition /dev/sdb in web my server has failed FSCK check but I can't seem to figure out a way to repair it. OS is CentOS 6.8. In /etc/fstab, I have commented out this partition. I used the ...
fountain-radar's user avatar
0 votes
1 answer
3k views

`fsck` does some work, then aborts/stops. How to make it continue to run?

I have a filesystem on a LVM device which suffered a disk failure. Some data was lost (since one of the 4 disks which had data is gone). I am trying to mount this filesystem so as to recover as much ...
Amandasaurus's user avatar
  • 32.3k
2 votes
1 answer
1k views

RedHat server not booting: "The superblock could not be read"

After restarting a RedHat server, it fails to boot into the operating system. It says "an error occurred during the file system check". After doing a fsck, it says The superblock could not ...
Olumide Alabi's user avatar
0 votes
1 answer
176 views

trouble with fsck on raid - abort or not abort

I have a problem. While I was a away, a server with a 50 TB hardware raid (I think 5) apparently for some reason kicked out two drives. A collegue just put them back in by just adding them back in the ...
Arpton's user avatar
  • 11
2 votes
1 answer
4k views

EC2 does not boot, goes to "Press enter for maintenance mode"

Environment EC2/T2 Ubuntu 18.04 I have several instances in this environment; all are built off the same Ubuntu AMI. Sometimes, some instances get stuck on the boot console with a message "Press ...
JDS's user avatar
  • 2,628
20 votes
3 answers
11k views

How long can fsck take on a 30 TB volume?

In mid-November, a VPS that I am renting from a hosting company stopped responding. When I contacted support, they explained that a power outage in the datacenter caused a forced reboot and fsck. ...
Brian Bi's user avatar
  • 347
0 votes
1 answer
557 views

How to force Google Compute Engine ubuntu instance to do fsck?

I have an instance in Google Compute Engine (cloud server) running ubuntu 16.04. I noticed filesystem corruption on the root filesystem as follows: ==>ls -l data/vocabulary/ ls: cannot access '...
Igor Chudov's user avatar
0 votes
1 answer
1k views

Error in My Hard Disk on Debian (OSSIM)

I have a Problem with my Debian (OSSIM), after a three days I can't create or edit any files, because of this issue: root@ossim:~$ mkdir test mkdir: cannot create directory `test': Read-only file ...
Seyed M's user avatar
  • 11
7 votes
1 answer
13k views

Every startup i need to manually run fsck /dev/mapper/ubuntu--vg-root

Hi every day when I start my ubuntu 18.04, then it's not starting and gives a below error. (initramfs) exit /dev/mapper/ubuntu--vg-root contains a file system with errors, check forced. Inodes that ...
Subhash's user avatar
  • 171
0 votes
1 answer
393 views

ext4 mysterious "No space left on device" error

Im having trouble with my ext4 filesystem. Im using this with NFS to make it available to remote machines. Now its showing a mysterious "No space left on device" error when im trying to mkdir $name ...
Nico's user avatar
  • 135
2 votes
0 answers
3k views

fsck.ext4 complaining that the device is in use. Can't find what exactly is using it

Our setup is a 3-node RHEL 7.3 bare-metal Kubernetes cluster running on Docker. We have a multipath FC SAN block device discovered on all three nodes. This device is used as a Kubernetes Persistent ...
Bernard Halas's user avatar
0 votes
1 answer
80 views

Impact of disabling automatic fsck on reboot

I have a client on cloud hosting with some sizable drives on the vps. Twice in the past year after a forced reboot the server was down for a few hours because fsck ran automatically when the server ...
Michael VanDeMar's user avatar
-3 votes
1 answer
455 views

fsck -n /dev/nandb giving errors . how to solve fsck errors [closed]

I want to know how to solve this error? help me out!! INPUT "fsck -n /dev/nandb" OUTPUT fsck from util-linux 2.25.2 e2fsck 1.42.12 (29-Aug-2014) Warning! /dev/nandb is mounted. /dev/nandb ...
niranjan pawar's user avatar
-1 votes
1 answer
344 views

FSCK while booting Centos [closed]

I want to do fsck check while booting. my centos, not booting and kernel panic error showing. so how to use fsck in kernel command line to do a file system check. please do let me know as its urgent. ...
data centre's user avatar
6 votes
1 answer
4k views

Vagrant up not working, it requires a manual fsck

My setup: My OS is Ubuntu 18.04 Vagrant 2.0.0 VirtualBox 5.2.18 r124319 Ubuntu installed into vagrant/virtualbox (version uknown) sudo vagrant up was always working, suddenly it has stopped working.....
cawecoy's user avatar
  • 273
0 votes
1 answer
1k views

XFS fs does not mount on boot but mounts ro ok from cli

I have a server with a LSI raid controller. The server shows two devices sda and sdb. sdb is not partitioned but has a xfs fs formatted directly (i don't know why) into it. We decide to reboot it ...
panitaxx's user avatar
0 votes
1 answer
818 views

ext4 corruption leading to unbootable disk. Partition is mountable, but grub detects unknown filesystem

I'm trying to recover from a system disk corruption issue without having to reinstall the OS, which would be super-painful currently. I'm using Ubuntu 18.04, the affected partition is ext4 and on a ...
user3121424's user avatar
1 vote
1 answer
9k views

Is there any way to mount an EXT4 file system with errors?

I may have been somewhat foolish, but kept putting off the warning signs about the impending failure of my EXT4-on-LVM Ubuntu machine (like the partition remounting itself R/O, SMART errors, etc.) and ...
JonTheNiceGuy's user avatar
-1 votes
1 answer
656 views

Recover RAID 1 after unclean unmount

I have two drives in my desktop in RAID 1. My computer locked up on me yesterday, so I used SysRq REISUB for a "safe" restart. When the machine booted back up, I realized there was no data on my RAID ...
Chris's user avatar
  • 99
-2 votes
2 answers
3k views

redhat 6 version + xfs_repair or fsck.xfs in order to fix corrupted file-system

we have redhat machines version - 6.x all disks that mounted have xfs files system as: UUID=198s5364-a29c-429e-b16d-e772acd /data_SA xfs rw,noatime,inode64,allocsize=16m 1 2 we ...
shalom's user avatar
  • 501
2 votes
0 answers
790 views

Partition mounted and unmounted simultaneously

Edit: Narrowed this down to virtfs mounts. To jump to the question, mount says the partition is already mounted and umount says that the partition is already unmounted, and fsck agrees with mount. ...
Adam's user avatar
  • 196
2 votes
1 answer
3k views

how to fix filesystem of a LXC container

This container doen't start anymore with these errors messages : # lxc-start -n deb7 -F INIT: version 2.88 booting Using makefile-style concurrent boot in runlevel S. Cleaning up temporary files......
Matthieu's user avatar
  • 185
1 vote
1 answer
2k views

file system corrupt in a virtual machine

I have a virtual machine hosted by vmware esxi. It has been started for over 80 days. And about ten days ago, its file system got corrupted. Although I can use fsck to fix this file system, I am ...
Sraw's user avatar
  • 47
1 vote
4 answers
1k views

How to responsibly avoid "fsck forced"?

So I just swapped out a RAID HDD on a server. I got the "hasn't been checked for X days, fsck forced" message, and am patiently waiting right now. This got me wondering: how can I responsibly avoid ...
Moritz von Schweinitz's user avatar
0 votes
1 answer
2k views

linux + how to identify disk health

we have linux redhat server version 7 we are suspects that one of the disks (/dev/sdc ) in the machine HW ( dell ) is in bad state, ( and that because required to do fsck from dmesg ) but we not ...
shalom's user avatar
  • 501
2 votes
2 answers
823 views

EXT4 md raid show negative value in df -h, fsck failing

I have md raid ext4 with 20 devices, All the devices are in good condition. now, when ever I do df -h I see a negative value under 'Available'. I tried to remount the raid with umount & mount but ...
Shlomi's user avatar
  • 331
0 votes
1 answer
738 views

Linux RHEL5.2 VM Won't boot - Cannot fsck to repair [closed]

I have a redhat 5.2 VM which will not boot on VMWare... I've tried logging into maintenance mode and adding a file 'forcefsck' to /, which forced a check on next boot... that didnt get me anywhere ...
John's user avatar
  • 541
0 votes
3 answers
1k views

e2fsck takes lot of time to run

I am running e2fsck on one of my disk partitions (ext4) but it seems to take eternity. It is already running now for almost 10 hours or so and it is still at 42%. The size of the partition is around ...
DivKis01's user avatar
  • 103
0 votes
1 answer
593 views

Could reserved block count of zero hinder `fsck`?

I am considering setting the reserved block percentage to 0% (tune2fs -m 0 /dev/sdb1) for an ext4 partition. The partition is only used by non-privileged users anyway. Let's say I mistakenly fill up ...
Ztyx's user avatar
  • 1,405
1 vote
1 answer
7k views

Repair FAT filesystem on image

I've got a USB pen drive with a corrupted FAT filesystem. Now I try to repair it. So to first try what I can get from it without endangering the original hardware further, I've created an image with ...
white_gecko's user avatar
2 votes
1 answer
717 views

fsck.ext4 error after re installing iptables

I removed iptables, installed it again and rebooted my centos server ; after that my access to the domains on server has denied. When I checked console There was an error: fsck.ext4: No such file ...
SAM's user avatar
  • 123
0 votes
1 answer
1k views

Unable to execute linux commands after fsck

I'm new on this but I'm stuck. I have a small virtual machine running nagios. Today it started to fail and I saw some errors on the messages log. @someone~]# tail /var/log/messages Aug 31 02:25:...
Dan Sanchez's user avatar
0 votes
1 answer
313 views

Prevent corruption on ext3 Linux Vms running on Xenserver after Equallogic hung for 45 minutes

I face a problem today with my Storage Equallogic PS4000E, they get stucked for 45 minutes then goes up and running normally, no logs, no nothing to help us discover what happens. Well, I run a ...
Luiz Gustavo's user avatar
0 votes
1 answer
173 views

Power loss, hard drive missing on next reboot (?!)

There was a power failure earlier today, and now my system won't boot anymore. It shows the following error message and drops me to a root shell to try and recover the data for myself: Log of fsck -C ...
user306802's user avatar
39 votes
3 answers
14k views

When is fsck dangerous?

Recently I've seen the root filesystem of a machine in a remote datacenter get remounted read-only, as a result of consistency issues. On reboot, this error was shown: UNEXPECTED INCONSISTENCY: RUN ...
0x5C91's user avatar
  • 493
2 votes
1 answer
3k views

How to disable auto fsck in Centos 7?

Is there a way to disable auto fsck while booting up on Centos 7 when it is XFS file system running on it. I know in legacy versions, we use touch /forcefsck, tune2fs -c0 -i0 /dev/FILESXX etc to ...
vjwilson's user avatar
  • 129
28 votes
2 answers
115k views

Proper way to deal with corrupt XFS filesystems

I recently had an XFS filesystem become corrupt due to a powerfail. (CentOS 7 system). The system wouldn't boot properly. I booted from a rescue cd and tried xfs_repair, it told me to mount the ...
Michael Kohne's user avatar
0 votes
1 answer
71 views

Ubuntu ntfsundelete on md0 software raid after fsck

System was failing and the colocation facility ran fsck -y on a raid that had some important data. The result is a lost+found folder with 2 million files in it. It is possible to get any of the ...
Case's user avatar
  • 321
1 vote
1 answer
370 views

Portwell motherboard: Boot-time fsck finds "unexpected inconsistency" due to system time

Although this question involves an embedded motherboard, serverfault seemed to me the best stackexchange forum to post to. My colleagues and I have been investigating this weird Linux boot problem ...
Timothy Miller's user avatar
3 votes
2 answers
3k views

eCryptfs headers errors

I'm getting the following error on a server where a partition is encrypted thru ecryptfs. [3440851.003561] Valid eCryptfs headers not found in file header region or xattr region, inode 22545087 [...
ohe's user avatar
  • 145

1
2 3 4 5