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]

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

0
votes
0answers
33 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 ...
0
votes
0answers
4 views

Bad magic number in super-block; re-partioned, tried e2fsck, etc. What next? [migrated]

I've got a 512GB SSD (M.2) drive in my laptop. It was originally the boot drive, until I dropped in a standard-size 1TB SSD to be the main drive. I planned to use the other drive as a data drive for ...
1
vote
0answers
27 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 ...
0
votes
1answer
31 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 ...
-3
votes
1answer
76 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 ...
-2
votes
1answer
55 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. ...
0
votes
1answer
144 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.....
0
votes
1answer
99 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 ...
0
votes
1answer
72 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 ...
0
votes
1answer
366 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 ...
-1
votes
1answer
131 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 ...
-2
votes
2answers
450 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 ...
2
votes
0answers
95 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. ...
0
votes
0answers
282 views

How to repair corrupted filesystem from old disk

An old Debian 6 dedicated server we still use stopped working. Going to rescue mode using a live Ubuntu image, we quickly realized the filesystem is corrupt and disk is now read-only, with even ...
1
vote
1answer
483 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......
1
vote
1answer
337 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 ...
1
vote
4answers
319 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 ...
0
votes
1answer
564 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 ...
2
votes
2answers
323 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 ...
0
votes
1answer
291 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 ...
0
votes
2answers
165 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 ...
0
votes
1answer
107 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 ...
0
votes
1answer
3k 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 ...
2
votes
1answer
353 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 ...
0
votes
1answer
330 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:...
0
votes
1answer
185 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 ...
0
votes
1answer
35 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 ...
35
votes
3answers
6k 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 ...
2
votes
1answer
1k 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 ...
13
votes
2answers
42k 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 ...
0
votes
1answer
32 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 ...
1
vote
1answer
114 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 ...
3
votes
2answers
2k 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 [...
1
vote
1answer
323 views

Fsck finds errors in OS, but not using LiveCD

Running fsck on a booted machine yields errors on the root file system. In an attempt to fix this, I booted from a LiveCD - but fsck on the LiveCD instance doesn't find any errors at all. I also tried ...
0
votes
1answer
22 views

what does fsck.ext3 do on a partition that contains a portion of unformatted space?

I always thought fsck operated on the filesystem level only, but recently I came across the following procedure for growing an ext3 partition: https://www.howtoforge.com/...
1
vote
0answers
3k views

How to repair multiply-claimed blocks?

I get a lot of the following logs in dmesg: [26159.277230] EXT4-fs error (device sdb1): ext4_iget:3875: inode #394497188: comm mv: bad extended attribute block 22794025699896 [26219.914802] EXT4-fs ...
2
votes
2answers
806 views

How to run fsck on software raid's real hard disks?

When and how should this be run? Is it better to boot from a DVD-ROM and run fsck on each real hard drive? Or can this be done automatically after X number of mounts?
0
votes
1answer
156 views

Ubuntu - Folder replaced by lost+found/ on raid1 disks

Running Ubuntu Server 12.04 LTS I have setup a RAID1 on disks sdb & sdc (md0) following strictly this tutorial which I guess is very classical. I loaded data on my disk for archive purposes. A ...
1
vote
0answers
580 views

How to add a partition to CentOS without losing data on it

we had a CentOS 6.4 server with two RAIDs. One RAID-1 and the other RAID-5 RAID-1 had multiple partitions with OS installed on it. RAID-5 had two partitions with some data on it. In order to ...
0
votes
1answer
133 views

After doing an fsck of a partition, the partition is now empty

I'm sorry if the title is misleading however I did not know how to ask the question in a better way. At work I had to install windows on a machine that had debian. I has three partitions one for root,...
-1
votes
1answer
808 views

Disaster recovery. MDADM/LVM2 Some advance but stuck on final mount

We made a stupid upgrade on a running server using wrong repositories and the system became totally unbootable. The system, a SLES 11 we used a openSuse repository to upgrade, and everything went ...
0
votes
2answers
136 views

How to use fsck? Never have used it but have to check the filesystem

My server crashed several times with rcu_sched self-detected stall on CPU errors. Now after restart it can not repair MySQL tables, some services start, some not. What command I have to issue to ...
1
vote
1answer
836 views

How to fsck a partition that is part of a software Raid that again is part of a LVM volume group?

The faulty partition is /dev/sdb3. from /proc/mdstat: md2 : active raid1 sda3[2] 2896184639 blocks super 1.2 [2/1] [U_] says /etc/fstab: # /dev/md/2 belongs to LVM volume group 'vg0' /dev/...
4
votes
1answer
140 views

serviceable ext3 partition ruined by fsck

I've got several systems with an ext3 lv / that work just fine until fsck'd — then they are unrecoverably corrupted. What hope do I have of repairing these systems, and, separately, what went wrong? ...
1
vote
2answers
160 views

server maintenance to prevent fsck failures

once in a while after a reboot I found fsck would fail on OS disk and booting becoming impossible on many of my servers. and then I had to reinstall OS and do data migration from the failed OS disk. ...
1
vote
2answers
6k views

OpenVZ containers will not start after a reboot

vzctl start 192 Dump file /vz/dump/Dump.192 exists, trying to restore from it Restoring container ... Opening delta /vz/private/192/root.hdd/root.hdd Data cluster 1112 beyond EOF, vsec=47137... FATAL ...
2
votes
2answers
777 views

How can I check /dev/xvda1 if the command 'touch /forcefsck' doesn't work? [duplicate]

On login to EC2 (Ubuntu) instance, I see *** /dev/xvda1 should be checked for errors *** I can't fsck /dev/xvda1 because it is mounted, and sudo umount /dev/xvda1 fails because it is in use. So I ...
59
votes
3answers
32k views

How can I check /dev/xvda1?

On login to EC2 (Ubuntu) instance, I see *** /dev/xvda1 should be checked for errors *** I can't fsck /dev/xvda1 because it is mounted, and sudo umount /dev/xvda1 fails because it is in use. lsof ...
-1
votes
1answer
2k views

How to access a system with write permission after file system check fails?

I created three new partitions, but after a reboot, the system is being dropped to a shell: /dev/mapper/group-newpartition: clean, 11/655360 files, 276620/2621440 blocks [FAILED] An error occurred ...
-3
votes
1answer
2k views

My production server has bad blocks, now what?

My server has crashed for Nth time in a couple of months, so I decided to do a badblocks test. I have used fsck to detect and mark badblocks, and it has indeed detected some. If I am correct, this ...