Questions tagged [fsck]
a tool to check the consistency of and repair a file system for Unix-like operating systems
208
questions
0
votes
0
answers
17
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 ...
0
votes
0
answers
38
views
Linux console is not prompting for root p/w after detecting "RUN fsck MANUALLY" - how to proceed?
Last night our datacenter host had issues filling up their storage (again!!!) and caused all our VMs to drop to r/o. After the admins allocated some more storage, a simple reboot on most of our VMs ...
0
votes
0
answers
39
views
fsck last check for vfat and other filesystem (other than ext)
Is it possible to find the last check for vfat or other filesystem. since tune2fs can only be used for ext file system. Can someone address me with this?
Advanced Thanks..
0
votes
1
answer
860
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 ...
1
vote
0
answers
119
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 ...
0
votes
0
answers
31
views
My server went into read-only mode due to a php-sessions bug, should I put it back into read/write and fix it, or use fsck?
After a large ddos attack on one of my websites, my debian server went into read only mode to prevent further damage. It seems from my searches online that I should run fsck -y -f to fix this, and I ...
0
votes
0
answers
680
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 ...
1
vote
1
answer
82
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 ...
2
votes
1
answer
2k
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 ...
2
votes
1
answer
280
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 ...
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 ...
0
votes
1
answer
87
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 ...
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 ...
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 ...
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 ...
0
votes
1
answer
123
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 ...
2
votes
1
answer
3k
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 ...
20
votes
3
answers
10k
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. ...
0
votes
1
answer
513
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 '...
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 ...
7
votes
1
answer
8k
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 ...
0
votes
1
answer
339
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 ...
1
vote
0
answers
2k
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
1
answer
73
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
1
answer
422
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 ...
-1
votes
1
answer
219
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.
...
6
votes
1
answer
3k
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
1
answer
876
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
1
answer
660
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 ...
1
vote
1
answer
7k
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
1
answer
565
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
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 ...
2
votes
0
answers
666
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. ...
2
votes
1
answer
2k
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
1
answer
1k
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
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 ...
0
votes
1
answer
1k
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
2
answers
745
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
1
answer
684
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
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 ...
0
votes
1
answer
479
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 ...
1
vote
1
answer
6k
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
1
answer
703
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
1
answer
984
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
1
answer
292
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
1
answer
118
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 ...
38
votes
3
answers
13k
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
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 ...
28
votes
2
answers
109k
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
1
answer
67
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 ...