Questions tagged [e2fsck]
A tool used to check the ext2, ext3 and ext4 file systems.
65
questions
0
votes
0
answers
266
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 ...
1
vote
1
answer
160
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 ...
0
votes
0
answers
320
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 ...
0
votes
0
answers
846
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 ...
0
votes
1
answer
379
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 ...
3
votes
1
answer
369
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 ...
2
votes
3
answers
16k
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
...
0
votes
3
answers
444
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 ...
2
votes
0
answers
905
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: /...
0
votes
0
answers
164
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 ...
4
votes
1
answer
399
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.
...
1
vote
0
answers
291
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 ...
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 ...
1
vote
0
answers
632
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 ...
1
vote
2
answers
21k
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:
...
0
votes
0
answers
151
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 ...
0
votes
1
answer
555
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 ...
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/...
1
vote
0
answers
4k
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 ...
0
votes
2
answers
3k
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 ...
0
votes
2
answers
145
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 ...
1
vote
1
answer
250
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 (...
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
...
2
votes
1
answer
93
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>...
4
votes
3
answers
56k
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 /...
1
vote
0
answers
987
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 ...
1
vote
1
answer
186
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 ...
-2
votes
1
answer
415
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 ...
17
votes
1
answer
11k
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 #...
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 ...
2
votes
1
answer
720
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 ...
0
votes
1
answer
662
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
...
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 ...
7
votes
1
answer
14k
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 ...
2
votes
2
answers
3k
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 ...
0
votes
0
answers
168
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 ...
7
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 ...
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 ...
0
votes
0
answers
586
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 ...
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 -...
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 )
...
2
votes
1
answer
136
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 ...
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 ...
1
vote
1
answer
426
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/...
0
votes
1
answer
756
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:
`
...
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 ...
0
votes
1
answer
494
views
What does e2fsck do during bootup?
Please assume I'm using a recent version of Debian Linux, on ext4, on a 2 TB Seagate Momentus hard drive, with all the default settings.
A) What does e2fsck do during a normal bootup? (And what is ...
1
vote
0
answers
162
views
Drive errors/superblock problem?
I'm trying to get snapraid to do it's first sync, but about a minute in it always hits a sparseimage from one of my drives and spits out a bunch of 'Input/Output error in file' errors. The weird part ...
1
vote
1
answer
3k
views
e2fsck: bad blocks disapearing!
Gentlemen,
I need some fatherly advice about e2fsck: I have a disk that has been getting cranky, and "e2fsck -ccv" was indeed showing bad blocks. However, I repartitioned the disk, and now the same ...
1
vote
1
answer
7k
views
Ctrl-D prompt ,unable to boot the Linux system, after block-device shrink without file-system shrink beforehand
I wanted to shrink the file-system and unfortunately I have missed one step:
Without resizing the file-system before, I reduced the logical volume.
The result was that the system is not booting any ...