A tool used to check the ext2, ext3 and ext4 file systems.
Questions tagged [e2fsck]
65 questions
30
votes
3 answers
Connection problem with USB3 external storage on Linux (UAS driver problem)
On Ubuntu 15.10, when I want to format using the NTFS file system an external 4TO disk connected by USB3 (on a StarTech USB/eSATA hard disk dock), I have a lot of I/O errors, and the format fails.
I tried GParted v 0.19, and GParted on the latest…
reyman64
- 163
- 1
- 4
- 11
17
votes
1 answer
Should I answer yes to "Clone multiply-claimed blocks?" 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 #221446305, mod time Tue Feb 20 19:48:32 2018)
...…
john test
- 173
- 1
- 1
- 4
9
votes
4 answers
Ext4 - How to enable extra sanity, checksums, validations, tests of any kind?
I'm running Ext4 on a harddrive, and to be perfectly honest, I don't really trust the drive because it's old and has a few badblocks. I have nonessential data on the drive, so if it died tomorrow, then no big deal.
However, I would like to know…
Rucent88
- 1,850
- 4
- 24
- 33
7
votes
1 answer
Resize2fs keeps asking me to run e2fsck -f
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 Used Avail Use% Mounted…
trollken
- 71
- 1
- 1
- 3
7
votes
2 answers
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 reasons to be aware of?
May 03 11:52:34 alan-laptop…
sourcejedi
- 48,311
- 17
- 143
- 296
7
votes
2 answers
Can't resize lvm volume "lv_home is in use. e2fsck: Cannot continue, aborting"
I would like to shrink my logical volume for home directory, so that I can extend volume for root.
df -h
/dev/mapper/vg_mitoscomp-lv_root 50G 33G 15G 70% /
/dev/mapper/vg_mitoscomp-lv_home 53G 180M 51G 1% /home
lsblk
─sdc2 …
Tomi S
- 71
- 1
- 1
- 2
6
votes
2 answers
Run fsck automatically when calling mount from command line
I have a backup script that mounts and unmounts a USB drive.
I just noticed that its warning me:
EXT3-fs warning: maximal mount count reached, running e2fsck is recommended
My question:
How can I get it to run e2fsck automatically when the mount…
user92979
- 175
- 1
- 5
5
votes
3 answers
ext4 reported as clean by fsck after hard reset: Is that normal?
My root-partition is formatted as ext4-filesystem.
I notice that, whenever my machine crashes and I have to hard-reset it, when booting up again and the root filesystem is checked this step takes a bit (like one to two seconds) longer than when…
Golar Ramblar
- 1,771
- 1
- 18
- 28
4
votes
1 answer
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.
Then I ran the following code trying to see if…
indianaken 7
- 43
- 5
4
votes
3 answers
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 /dev/sdb1
but
~# e2fsck /dev/sdb1
e2fsck 1.44.5…
Red Science
- 181
- 2
- 3
- 16
4
votes
3 answers
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 ‘file.to.delete’: No such file or…
deanresin
- 432
- 1
- 5
- 22
4
votes
1 answer
after fs crash and running fsck, some files were recovered but not place in lost+found?
I had a I/O error on an external hard drive partition sdb4 (its usual mountpoint being /run/media/yan/data).
The partition was non responsive, couldn't be accessed and refused to unmount. I did not know what to do but unplug the disk and replug it.…
Yann
- 211
- 3
- 6
3
votes
1 answer
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 upon the disk, I'm able to subsequently mount it,…
Stribog
- 31
- 4
3
votes
2 answers
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 am using an USB hard drive with an Ext2 filesystem…
Jürgen
- 662
- 5
- 14
3
votes
0 answers
e2fsck block bitmaps
What exactly are block bitmaps? Why would I get the following error:
The filesystem size (according to the superblock) is 1219824640 blocks
The physical size of the device is 731447296 blocks
Either the superblock or the partition table is likely to…
Mark D
- 1,155
- 2
- 13
- 29