Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [e2fsck]

A tool used to check the ext2, ext3 and ext4 file systems.

Filter by
Sorted by
Tagged with
0 votes
1 answer
28 views

Fix IO errors during startup - fsck not helping

observe the below error - How to get past this? Ran fsck -y, fsck -a and fsck -f on nvme0n1p1, nvme0n1p2, etc. Initially I recall seeing some "ignore error" prompts which were automatically ...
vishvAs vAsuki's user avatar
5 votes
2 answers
268 views

What can cause “multiply claimed blocks” on an ext4 drive?

“Multiply claimed blocks” is an error reported by fsck when blocks appear to belong to more than one file. This causes data corruption since both files change when one of the files are written. But ...
PetaspeedBeaver's user avatar
0 votes
0 answers
55 views

Used e2fsck on my Synology NAS and lost all my data .. possible to recover?

I had some file system issues after a power loss that I wasn't able to fix using anything suggested in DSM. Anyway, I stupidly followed advise found online to run e2fsck in terminal to check and ...
mrsmith's user avatar
0 votes
0 answers
55 views

files disappear upon umount

I have a mystery ... a reproducibile one, but still a mystery. My ideapad 100s has a SD card reader which I use to store stuff while I work on it, as its built-in drive is super tiny. Its really just ...
Rho Phi's user avatar
  • 319
0 votes
0 answers
705 views

How to resolve dd error reading?

I have dd error reading # sudo dd if=/dev/sda1 of=backup.img bs=4M status=progress 16478679040 bytes (16 GB, 15 GiB) copied, 154 s, 107 MB/s dd: error reading '/dev/sda1': Input/output error 3928+1 ...
Dims's user avatar
  • 3,295
1 vote
1 answer
307 views

RAID6 unable to mount EXT4-fs: bad geometry: block count exceeds size of device

On my server, I had an SSD as the boot drive with 11 6TB HDDs in a RAID6 setup as additional storage. However, after running into some issues with the motherboard, I switched the motherboard to one ...
jameszp's user avatar
  • 53
0 votes
0 answers
704 views

How can I make e2fsck non interactive?

When I run "e2fsck" command through cli it asks for options like asking for abort, force rewrite etc, and the process get completed successfully. But I want to run "e2fsck" command ...
Amit Singh's user avatar
0 votes
0 answers
2k views

Recover ext4 partition superblock `Free blocks count wrong for group #0`

I have a broken ext4 partition which I want to recover. The problem occurred because of a sudden power loss. The partition is an encrypted luks partition. Opening the luks container works. Say I open ...
student's user avatar
  • 18.5k
0 votes
1 answer
630 views

FSCK Failing to fix e2fs on LVM disk image or original SSD

I have a Sandisk 1TB SDD that is in SMART Pre-fail as my boot disk on a machine running Ubuntu 22.04. Recently this disk failed to boot the machine, and is no longer mountable when removed and mounted ...
Jason's user avatar
  • 1
3 votes
1 answer
691 views

e2fsck deletes many inodes, recovers too little data from a disk image. Are there better methods?

I imaged a failing SSD as best I could using ddrescue or dd (it's been too long to recall which). With the resulting .img, I've burnt a disk which is not recognised as mountable. Using e2fsck -fyvC 0 ...
Stribog's user avatar
  • 31
5 votes
3 answers
38k views

How to fix "Bad magic number in super-block"

I try to move all data from one SSD to another SSD. The old SSD is 500 GB, and the new SSD is 1000 GB. Firstly I've created a backup: dd if=/dev/nvme0n1 | gzip -c /media/ubuntu/local/backup1.img.gz ...
Mikhail's user avatar
  • 51
0 votes
3 answers
656 views

Cannot mount RAID 5 array on server, "Unable to read superblock"

I am an novice to servers and RAID arrays, but I am trying to restore a raid 5 array that has recently started to have problems with mounting onto our server. Full disclosure, I was not the one who ...
Schmidt's user avatar
3 votes
0 answers
1k views

Can't run fsck manually - "/etc/default/rcS: No such file or directory"?

I wanted to run disk check on my Ubuntu 22.04 boot partition, so I rebooted the machine into recovery mode and tried to run fsck. However, I got this error: /lib/recovery-mode/recovery-menu: line 80: /...
Danijel's user avatar
  • 186
0 votes
0 answers
275 views

How to change permissions of a write protected drive to repair it?

My raspberry pi will no longer boot up due to the following error: End Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2) I've tried fsck and I'm unable to get it to fix ...
user3486773's user avatar
4 votes
1 answer
423 views

Is it possible to run e2fsck in a way that'll give false results?

I have this 6 months old 5TB external hard drive. I started to experience a lot of I/O errors recently, so I backed up my data then used gparted to create a new partition table, a new main partition. ...
indianaken 7's user avatar
1 vote
0 answers
396 views

e2fsck - how do I restore my stuff [closed]

I have explained my situation here. Tl;DR - My partitions were damaged by windows repair tool, my linux ext4 partition for my ubuntu got corrupted, I was in grub, and ls (hd0,gpt5)/ would tell me it's ...
user avatar
0 votes
1 answer
2k views

ssd won't mount: bad superblock but no bad blocks: write errors

just noticed I was using SDD for SSD. Corrected I need help interpreting this situation. /dev/sda is a data disk backed up and with reproducible data so this is not system critical but I'd like to ...
Stephen Boston's user avatar
1 vote
0 answers
1k views

How did my ext3 superblocks get so messed up? And how to fix them?

I've recently found an old external hard disk and I have no idea what's on it. There was only one partition, encrypted with dm-crypt. Luckily I still remembered some of the passphrases that I used ...
meeque's user avatar
  • 21
1 vote
2 answers
29k views

mount can't read superblock on /dev/sda5

Notebook fails to boot. I started it with a live USB Ubuntu 20.04 and tried mount /dev/sda5 but receive this error: mount: /mnt: can't read superblock on /dev/sda5 So I tried the commands below: ...
user avatar
0 votes
0 answers
180 views

Where are my inodes used (advanced, debugfs, etc)

I made a copy of an ext4 volume with many errors and fscked it, before making an extensive comparison in order to make sure no data was lost in the process. since there were all kind of codings in the ...
Camion's user avatar
  • 294
0 votes
1 answer
694 views

Optimize ext4 for 1 giant file

I intend to have a 4Tb ext4 filesystem with only 1 file. The file will fill the entire drive. The file will be an image of another journaled filesystem which I will mount and use. What ext4 tune2fs ...
Rucent88's user avatar
  • 1,880
0 votes
2 answers
3k views

Superblock problem on a crypto_LUKS drive

When I try to boot from my main drive, I get this error: That message says "Inodes that were part of a corrupted orphan linked list found" so I tried this - https://askubuntu.com/questions/...
user468425's user avatar
1 vote
0 answers
5k views

e2fsck error - fsck.ext2: no such file or directory while trying to open /dev/root

I am working with embedded Linux build with Yocto. My goal is to enforce file checking during each system booting. I've modified the /etc/default/rcS file and I've set ENABLE_ROOTFS_FSCK=yes and ...
user1029384756's user avatar
0 votes
2 answers
4k views

How to enforce fsck during booting system and before rootfs is mounted?

I am working with embedded Linux build with Yocto. My goal is to enforce file checking during each system booting. So far I did the following steps: I've modified the /etc/default/rcS file and I've ...
user1029384756's user avatar
0 votes
2 answers
205 views

e2fsck aftercare

I had filesystem errors on /home, an ext4 partition. I was able to reboot into recovery mode and run e2fsck, which found and fixed a long list of errors. (Later I found that periodic checking was ...
A. Donda's user avatar
  • 238
1 vote
1 answer
274 views

diagnose I/O error on WD Blue SSD

I have a 1TB WD Blue SSD. It has two partitions, Disk /dev/sdd: 931.53 GiB, 1000204886016 bytes, 1953525168 sectors Disk model: 2115 Units: sectors of 1 * 512 = 512 bytes Sector size (...
brett stevens's user avatar
2 votes
1 answer
3k views

rhel + efsck + Deleted inode xxxxx has zero dtime

when I try to resize the disk we get that resize2fs /dev/sdb resize2fs 1.42.9 (28-Dec-2013) Please run 'e2fsck -f /dev/sdb' first. so when I try to do e2fsck I get the following e2fsck -f /dev/sdb ...
yael's user avatar
  • 13.4k
2 votes
1 answer
149 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>...
timothepoznanski's user avatar
4 votes
3 answers
66k views

How to resolve e2fsck Superblock problem?

I have a problem like this question How disk became suddenly write protected in spite configuration is read/write? And I used these commands to resolve that umount /dev/sdb1 e2fsck /dev/sdb1 mount /...
Red Science's user avatar
1 vote
0 answers
992 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 ...
norio's user avatar
  • 225
1 vote
1 answer
208 views

SD card unreliable under Linux?

I am having heavy (and repeatable) problems with writing SD cards under Linux. Background: I'm working on an embedded system using an SD card for it's root fs. Often I see fsck errors. I thought we ...
ZioByte's user avatar
  • 880
-2 votes
1 answer
429 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 ...
Larry Cai's user avatar
  • 123
17 votes
1 answer
12k 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) ... (inode #...
john test's user avatar
  • 173
3 votes
2 answers
2k views

What is it that e2fsck does not say?

Abstract: E2fsck found no error with the -n option but with -p (preen). It corrected the error but did not give any error message. The error is only reflected via exit code. How to interpret this? I ...
Jürgen's user avatar
  • 702
2 votes
1 answer
965 views

Can we trust the files in a filesystem that was repaired by e2fsck?

Topic If a filesystem was successfully repaired by e2fsck, it is guaranteed that it is in a consistent (clean) state. However, it is not easy to assess the reliability of the files themselves after ...
Jürgen's user avatar
  • 702
0 votes
1 answer
725 views

Meaning of e2fsck pass 5 output

I'm using e2fsck -B 4096 /path/to/image.dd (of a drive that 'broke') and I know it reached phase 5 in its process, outputting: (lost info preceding (-scrolled-out-of-buffer-space-) the following lots ...
slashmais's user avatar
  • 551
0 votes
1 answer
1k views

LVM not able to be resized or checked with resize2fs and e2fsck

I extended an lvm from the terminal in system rescue live CD using the commands: # pvcreate /dev/sda7 # vgextend fedora /dev/sda7 # lvextend -l +100%FREE /dev/fedora/root The above worked but when ...
bit's user avatar
  • 1,116
8 votes
1 answer
15k views

Resize2fs keeps asking me to run e2fsck -f [closed]

I set-up a server with LVM, and I just recently extended one of my logical volumes from 25TB to 35. root@server:/home/user# df -h /dev/mapper/vg--data-lv--data Filesystem Size ...
trollken's user avatar
2 votes
2 answers
4k views

Issue with orphan inode

I am using a virtual machine on a server I cannot access and I'm having the filesystem mounted in read-only mode: # dmesg .... [2.535658] EXT4-fs (vda): Couldn't remount RDWR because of unprocessed ...
Manu's user avatar
  • 21
0 votes
0 answers
212 views

How to make sure filesystem is mounted rw and not corrupt

During the last year I have deployed around 20 embedded systems to various locations. The last month I have encountered that I was not able to SSH into two of them. Upon going to the actual devices ...
trippelganger's user avatar
8 votes
2 answers
10k 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 ...
sourcejedi's user avatar
  • 51.1k
1 vote
2 answers
2k views

what is the best approach to fix file-system corruption on huge data

we need to fix filesystem corruption on sdb on redhat 6 version sdb is xfs file system df -h | egrep "Filesystem|/data" Filesystem Size Used Avail Use% Mounted on /dev/sdb 8.2T 7.0T ...
yael's user avatar
  • 13.4k
0 votes
0 answers
620 views

e2fsck did no solve the IO error

Unit had observed IO error, hence it was rebooted. As part of the boot-up script, it tries to fix the errors with e2fsck -y option. However, even after reboot it could not correct it. And the error is ...
Ravi's user avatar
  • 759
0 votes
1 answer
2k views

is it safe to run e2fsck -y /dev/sdXX on hdfs files

we see the system log on one of the worker machine ( dmesg ) and from the log we saw that: (sdc): warning: mounting fs with errors, running e2fsck is recommended disk - sdc include the HDFS folder -...
yael's user avatar
  • 13.4k
0 votes
1 answer
1k views

e2fsck -n + how to know if need to run e2fsck in order to fix corrupted blocks?

we want to check the filesystem on the disks as /deb/sdc .... /dev/sdg on each linux redhat machine the target is to find what are the disks that required e2fsck ( as e2fsck -y /dev/sdb . etc ) ...
yael's user avatar
  • 13.4k
2 votes
1 answer
140 views

What are the conditions that qualify a file as lost and found?

For files that fsck places in lost+found directory, under what circumstances does fsck consider a file to be lost, I have the following in my mind: For regular files: 1) If the inode links count is ...
direprobs's user avatar
  • 984
2 votes
0 answers
1k views

fsck fails frequently(after each 3-4 boots)

I have triple boot System(Ubuntu,Kali,Win7) and I mostly use Kali linux(4.6.0-kali1-amd64). After each 3 or 4 successful boots i get this error -> fsck.ext4: Superblock checksum does not match ...
Dirty_Programmer's user avatar
1 vote
1 answer
442 views

Add & execute package to Defrag a fragmented Ext3 Volume under BusyBox in Synology CS407? How?

Add & execute package to Defrag a fragmented Ext3 Volume under BusyBox in Synology CS407? How? Note: Debunking the myth of Linux Filesystems not getting fragmented. http://www.webupd8.org/2010/...
Alex S's user avatar
  • 189
0 votes
1 answer
759 views

Portable HDD not working

I just unplugged my portable WD hard drive without doing safe remove. I think that action of mine just corrupted my hdd. I did the following: sudo fsck /dev/sdb1 and I got the following result: ` ...
Pritam Bohra's user avatar
4 votes
3 answers
2k views

I have a file I cannot delete after a file mv operation was interrupted

I was moving a file with mv but the operation got interrupted. Now I am left with a file I cannot delete on an external NTFS drive. I was moving it from an ext4. rm file.to.delete rm: cannot remove ...
user avatar