Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [e2fsck]

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

4
votes
1answer
223 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) ... (...
1
vote
2answers
233 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 ...
1
vote
1answer
90 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
0answers
46 views

fsck says that i_blocks is double the size it should be

I've got lines like this in my ext4 /home partition (no backups, stupid stupid me, though I don't think there's any data loss): Inode 6031335, i_blocks is 16, should be 8. Fix(y)? yes Should I be ...
0
votes
1answer
109 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
1answer
188 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 ...
2
votes
1answer
1k views

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 ...
1
vote
2answers
566 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
0answers
44 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 ...
4
votes
2answers
1k 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
2answers
300 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
0answers
225 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
1answer
721 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
1answer
389 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
1answer
93 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
0answers
493 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
1answer
180 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
1answer
303 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: ` ...
5
votes
3answers
410 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
1answer
266 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
0answers
107 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
1answer
1k 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
1answer
2k 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 ...
1
vote
0answers
524 views

Syntax of `offset` option of `e2fsck`

In this answer the user @psusi shows a use of e2fsck that I could not find in the documentation: e2fsck /dev/sdc1?offset=2048. I am trying to use it to check a device (manually failed and removed) ...
4
votes
1answer
2k views

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 ...
1
vote
1answer
690 views

Resized partition to too small value after shrinking filesystem

I shrinked an ext4 filesystem with resize2fs: resize2fs -p /dev/sdn1 3500G (FS is used for 2.3 TB) Then I resized the partition with parted and left a 0.3% margin (~10 GB) when setting the new end: ...
1
vote
1answer
1k views

How can I tell when my file system was last fsck-ed at all?

I know of various ways in which to check when the last fsck occurred on a file system. e.g. $ sudo dumpe2fs -h /dev/sda1 | grep 'Mount count' -A3 dumpe2fs 1.42.12 (29-Aug-2014) Mount count: ...
1
vote
0answers
154 views

External USB drive fsck fails on boot

Yesterday I tried setting the fsck flag on fstab to 2 for the external USB HDD I use in my Raspberry Pi, so that it would be checked on boot, like: proc /proc ...
21
votes
2answers
15k views

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 ...
4
votes
3answers
1k views

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 ...
1
vote
0answers
629 views

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 ...
3
votes
4answers
7k views

How do I use yes with e2fsck?

I have tried the following with both LinuxMint 13 Cinnamon 32 bit and Trisquel 7.0 Gnome 32 bit and get the same error message: $ yes | sudo e2fsck /dev/sdax e2fsck 1.42 (29-Nov-2011) e2fsck: need ...
2
votes
2answers
2k views

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 ...
3
votes
2answers
5k views

Stopping e2fsck early

I had some drive errors so I ran e2fsck -cckty to find bad blocks on a 2TB drive. It found some bad blocks at the beginning, but hasn't found any in a day and a half. e2fsck has been running for 40 ...
7
votes
2answers
12k views

Can't resize lvm volume “lv_home is in use. e2fsck: Cannot continue, aborting” [closed]

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 ...
0
votes
0answers
505 views

e2fsck -y /dev/sda changed my 6TB disk into 1.8TB

After problems with mount I run e2fsck -y -b BLOCK /dev/sda and it was running for 3 days on 6TB raid 0, when it completed this was the output: /dev/sda: ***** FILE SYSTEM WAS MODIFIED ***** /dev/...
8
votes
4answers
6k views

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, ...
0
votes
1answer
435 views

e2fsck giving some error

I am playing with LVM and while doing lvreduce. I now get this error: [root@localhost raja]# e2fsck -f /dev/vg1/lvol2 e2fsck 1.41.12 (17-May-2010) e2fsck: Superblock invalid, trying backup blocks... ...