Questions tagged [fsck]

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

29 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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
4 votes
1 answer
160 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? ...
pilcrow's user avatar
  • 459
3 votes
1 answer
768 views

Recover JFS partition with duplicate block references

After a nasty server crash I was unable to mount a JFS partition on Linux. The jfs_fsck tool returns Duplicate block references have been detected in Metadata. CANNOT CONTINUE. processing terminated:...
Dima Chubarov's user avatar
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
2 votes
0 answers
795 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
1 vote
0 answers
244 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
1 vote
1 answer
599 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 ...
Jon Skarpeteig's user avatar
1 vote
0 answers
7k 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 ...
basilikum's user avatar
  • 217
1 vote
0 answers
1k 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 ...
Mubashir Abbas's user avatar
1 vote
0 answers
1k views

Directory index full, is this fsck result OK?

I found these in my /var/log/messages: kernel: EXT4-fs warning (device md2): ext4_dx_add_entry: Directory index full! kernel: EXT4-fs warning (device md2): ext4_dx_add_entry: Directory index full! ...
adrianTNT's user avatar
  • 1,149
1 vote
1 answer
755 views

CentOS default never fsck root partition on start up?

Most documentation or sites will say use "tune2fs -l " to check if the system will do fsck on the system partitions on next boot, in particular, should look at "Mount count" and "Maximum mount count" ...
wwwpanda's user avatar
1 vote
0 answers
645 views

e2fsck miserably aborts: memory allocation failed on 64 bit OS and scratch directory

After an unsuccessful Virtualbox VDI drive resize following the instructions here, the primary ext4 partition became of unknown type. I fixed this with testdisk and then boot-repair, which made it be ...
Erwin Mayer's user avatar
1 vote
1 answer
169 views

Can't seem to fsck remote server drive with ubuntu server 10.04 LTS

I've been getting a lot of crashes on my remote dedicated server - after they occur (in all sorts of different processes) the server becomes unresponsive and I have to reboot it. They all look ...
Andrew Lancaster's user avatar
0 votes
0 answers
122 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
101 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
0 answers
986 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
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
0 votes
1 answer
2k 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
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
0 votes
1 answer
828 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
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
0 votes
1 answer
42 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/...
Michael Martinez's user avatar
0 votes
1 answer
368 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 ...
eleven's user avatar
  • 1
0 votes
1 answer
526 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,...
aarelovich's user avatar
0 votes
1 answer
476 views

force fsck to fail on boot

I am working on a embedded debian linux device. Owing to the power being pulled at any time resulting in a sudden power loss, we have set FSCKFIX from "no" to "yes" in the /etc/default/rcS file. ...
othane's user avatar
  • 101
0 votes
1 answer
571 views

fsck.ext3: Unable to resolve UUID but gparted shows the correct UUID

I'm running CentOS6 on a PowerSpecG211 with a RAID level 1 array (2x2TB) and a couple of SSD's Yesterday afternoon the partition for /var ran out of space while I was doing some stuff in mysql and ...
Jeff's user avatar
  • 113
0 votes
1 answer
7k 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
-1 votes
1 answer
660 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
-1 votes
1 answer
2k 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 ...
Marius Jensen's user avatar