Questions tagged [fsck]

The system utility fsck (from "file system check" or "file system consistency check") is a tool used to check the consistency of a file system in Unix and clones.

Filter by
Sorted by
Tagged with
1 vote
1 answer
50 views

Drive changed mapping during e2fsck process

I'm unsure if "mapping" is the right term. Short: I ran the following command: $ sudo e2fsck -b 32768 /dev/sde1 e2fsck 1.46.3 (27-Jul-2021) /dev/sde1 was not cleanly unmounted, check forced. ...
user avatar
0 votes
0 answers
23 views

e2fsck to external drive, possible harm?

My 3 year old external drive that contain backup of my project recently started behaving strange, upon investigating— I found one offending directory that caused this problem. $ ls -lr ls: cannot ...
user avatar
  • 51
0 votes
1 answer
275 views

fsck not running on root partition, despite max time reached

My raspberry pi complains in /var/log/syslog "kernel: [ 19.931374] EXT4-fs (sda2): warning: checktime reached, running e2fsck is recommended". So, fsck should run at boot, but it does not. ...
user avatar
  • 21
0 votes
2 answers
71 views

fsck from initramfs console with 'f' key not working

My ubuntu laptop is dropping to initramfs console due to file system errors. I need to do 'fsck' manually. But the letter 'f' is not working in my keyboard. Right now I can't get a new keyboard. Is ...
user avatar
  • 105
1 vote
1 answer
378 views

Manual fsck stuck and no progress during disk check

I wanted to run an fsck check on my 5TB external hard drive on my raspberry pi after I noticed that cp fails on a couple of files. This is the output: $ sudo e2fsck -c -v /dev/sda e2fsck 1.44.5 (15-...
user avatar
  • 13
-1 votes
2 answers
306 views

What causes a filesystem to get corrupted?

I just went through the following: When rebooting my Ubuntu PC, I got a message that welcomed me to emergency mode. Following the instructions from another stackoverflow post, I ended up running fsck....
user avatar
  • 133
0 votes
0 answers
41 views

Why do ntfs entries in fstab have <pass> (fs_passno) 0? [duplicate]

I notice in my /etc/fstab that my root partition has 1 in the <pass> column, and my home partition has 2 in the <pass> column. This is expected. From man pages: The sixth field, (...
user avatar
  • 1,900
1 vote
0 answers
44 views

Recover Time Machine sparsebundle backup

I have a Time Machine backup from an old computer that I can't open. When I double click on the sparsebundle file, I get "no mountable filesystems". I've next tried this: hdiutil attach -...
user avatar
1 vote
3 answers
4k views

How do I repair an external hard drive with a corrupted catalog?

I'm attempting to mount my nearly filled up 1TB Mac OS Extended External Hard Drive to my MacBook Air 13" which is running MacOS Catalina 10.15.7. When I do this, the media drive mounts onto the ...
user avatar
  • 61
1 vote
0 answers
56 views

Find corrupted files on a partially recovered ext4

I have hard disk that was damaged by impact when it was running. The disk had 6 partitions and some unallocated space too. After the impact, 3 partitions appear to be fine and I am able to read/write ...
user avatar
0 votes
1 answer
162 views

How to recover an ext4 partition with a bad superblock on a dubious 500GB internal hard drive?

I bought this hard drive 6 months ago and it shouldn't be failing like this. It's a 500 GB sata III internal seagate that I have being using on an old ECS G31T-M9 computer with archlinux installed. I ...
user avatar
1 vote
1 answer
142 views

Why does dosfsck truncate files?

I'm having a quite well known issue, but unfortunately I have a little lack of knowledge here and hope to find a better insight here. So, I have a corrupt USB stick with a FAT32 file system. I made a ...
user avatar
  • 13
0 votes
0 answers
37 views

How to run fsck on /etc

It seems that a part of my filesystem is corrupted. vm-rhel7:/home/robert# dir /etc/selinux/targeted/active/modules/100/rhsmcertd ls: cannot access /etc/selinux/targeted/active/modules/100/rhsmcertd: ...
user avatar
  • 113
0 votes
1 answer
352 views

Use of ddrescue - saving a failing EXT4 drive -fsck results in all data in to lost+found

I’ve tried….I’m now out of my depth! Any help is very appreciated 😊 I’m currently trying to rescue some data from old disk drives, from the days before I religiously backed everything up. ...
user avatar
0 votes
0 answers
3k views

Failing to repair an external HFS volume

Trying to repair an external hard drive (Seagate portable 2TB), it had one partition that contained both time machine stuff and some files that i only have one copy of unfortunately. I assume that ...
user avatar
  • 1
2 votes
2 answers
15k views

Running fsck -fy on my mac throws a container write access error. How do I get around this?

My macbook pro is stuck on the Apple logo on booting and after going through most of the alternatives attempts at fixing it, I've finally come to giving the command fsck -fy a try. I've booted into ...
user avatar
2 votes
1 answer
5k views

OS/X fsck_hfs: "operation not permitted NO WRITE" for external drive in single-user mode

I am attempting to repair an external hard drive (backup drive) on OS/X Catalina by booting into single-user mode and executing the following command: fsck_hfs -fyd /dev/disk2s2 (I determined the ...
user avatar
1 vote
0 answers
8k views

Fix corrupted SD card filesystem using fsck [duplicate]

I'm trying to fix a corrupted sdcard vfat filesystem (used in an Android device) using fsck. The sdcard just stopped working one day (the file browser doesn't show it and it's not visible in Android ...
user avatar
  • 123
0 votes
1 answer
159 views

fstab configuration: How to run automatic fsck scan on external harddrive at boot and automate backup to external hard drive

I have an external hard drive (type ext4) to which I make a daily backup of my /home folder and postgresql database via an anacron script. I have run into two problems: 1.) When the computer (Ubuntu ...
user avatar
0 votes
1 answer
36 views

Will anacron backup interfere with automatic fsck diskcheck on Ubuntu 18.04

I have a general question. I have a backup scheduled every day to back up my home folder and postgresql database to an external hard drive (file type ext4). The mount point of my external hard drive ...
user avatar
2 votes
0 answers
194 views

Partition map issues external WD SSD exfat drive, how can I re-add EFI partition?

Partition map issues external WD SSD exfat drive, how can I re-add EFI partition? this week , partial data disappeared on this external drive . Mac's first aid showed that the partition map had ...
user avatar
1 vote
0 answers
548 views

Yes or no (-y or -n) for Clone multiply-claimed blocks while using e2fsck -f

I am trying to shrink EBS Volume from 2TB to 1TB as we are utilizing only 30% of the volume. I have created a new 1TB volume(already partitioned) and attached old 2TB and new 1TB volume as secondary (...
user avatar
0 votes
1 answer
265 views

Disable FSCK on all disks but the OS disk

I have a VM that has 4 disks attached to it, and while it runs there is a program written on C# that attached more random disks to it. I don't know if the randomly attached disks will have interval ...
user avatar
1 vote
2 answers
186 views

How do I diagnose/check USB HDD read breakdowns?

I have a Seagate Backup Plus portable drive. Recently, reading from it has started to break down. It makes tick-like noises, and apparently retries stuff. My dmesg log has this kind of messages: [...
user avatar
  • 7,392
0 votes
1 answer
439 views

dosfsck: how long does it take to repair a 32GB FAT filesystem on a USB drive?

I have a 32 GB USB stick with totally corrupted filesystem and a laptop with Ubuntu. I have run the command dosfsck -w -r -l -a -v -t /dev/sdb1 16 days ago and it is still running. It has been using ...
user avatar
0 votes
1 answer
183 views

Postgres Database is overflow and Postgres Service not Starting

FATAL: the database system is starting up FATAL: the database system is starting up FATAL: the database system is starting up DETAIL: Could not write to file "pg_clog/0007" at offset 49152: No ...
user avatar
1 vote
2 answers
2k views

How to scan boot/system drive for bad sectors on Ubuntu machine?

My workstation, an Ubuntu v14.04 (Trusty) machine, has two system boot options. I can run Windows (for protools and music recording), but more often I boot up into Ubuntu for software development work....
user avatar
  • 111
1 vote
1 answer
1k views

mysql server won't start after running fsck

I had a power outage after which my server didn't start anymore. I ended up running fsck and check the drive using smartctl afterwards. The overall health test passed and everything seems to work ...
user avatar
  • 21
1 vote
1 answer
656 views

Unable to access or format the external hard disk

Just recently got this issue regarding my external hard disk. Few days back it was working absolutely fine and it could be recognized by my system properly but all of a sudden it stopped recognizing ...
user avatar
  • 11
2 votes
1 answer
127 views

Why I can see lot more free disk space as root than as a user?

When I am logged in as a user, I can see free disk space: 1.2 Gb, with Midnight Commander. Surprisingly when I run "sudo mc" then Midnight Commander shows a lot more free disk space: 1.9 Gb. How is it ...
user avatar
1 vote
0 answers
748 views

fsck says a partition is mounted in Ubuntu Recovery Mode

I ran Ubuntu 18.10's Recovery Mode and fsck failed saying dev/sda7 is mounted. I tried unmounting it only to be told that "it is busy". I'd appreciate any hints on solving this. The partition dev/...
user avatar
  • 139
0 votes
1 answer
3k views

Force fsck on read only root partition

For some reason the root partition on my VPS has been remounted in read only mode. I want to force a fsck at reboot and reboot my machine but cannot do this as I cannot create the forcefsck file with ...
user avatar
0 votes
2 answers
761 views

Linux boot fails after booting Windows: root partition in use. How to resolve?

I try to setup a Linux Mint 19 and Windows 10 dual-boot. (both in BIOS mode) Windows is installed on /dev/sdc, Linux is installed to /dev/sdb Besides Linux there is a NTFS partition on /dev/sdb too. ...
user avatar
0 votes
1 answer
55 views

How to identify the health of the new disks after installing new OS

We want to create some sanity about the health check of the disks. For example, we installed around 50 Linux Red Hat machines (Red Hat version 7.2). Each machine have around 7 disks (disks can be ...
user avatar
0 votes
1 answer
547 views

Ubuntu switches to readonly mode but no bad blocks found on HDD

My Dell 3000 has a dual boot of Ubuntu 16.04 and Windows 10, when I boot into Ubuntu it starts off ok but randomly switches to read-only so I cannot do any work. I've done some research and I've run ...
user avatar
6 votes
2 answers
993 views

fsck has been running for more than 30 days on 30TB ext4 partition, can't mount

Given a 30TB partition of disks on hw raid5. LVM is on top and filesystem is ext4. (It's 99,9% full of data.) I wanted to add another 20TB and resize the partition and filesystem. Before resizing, it ...
user avatar
6 votes
1 answer
19k views

How to update e2fsck correctly?

I just migrated a linux system (Ubuntu 16.04) from a failing hard disk. After lots of troubles, it starts up, but always complains /dev/sda2 has unsupported feature(s): metadata_csum E2FSCK: Get a ...
user avatar
1 vote
0 answers
1k views

how to get fsck to work on a LUKS encrypted partition that for some reason will not umount

openSuse 42.3 (KDE) logged in as root LUKS encrypted /home partition (is /sda4 a primary partition no LVM) is not accessible on boot although unlocked. Apparently a bad block exists. fsck.ext4 -nf /...
user avatar
  • 11
-1 votes
1 answer
2k views

Repairing USB drive

I'm attempting to repair a USB drive that I would like to use for booting Linux on my laptop. The drive was removed from the laptop while it was formatting and is unreadable now. However, if I open ...
user avatar
  • 1
0 votes
1 answer
5k views

How do I run fsck manually?

My computer was turned off and on again and again directly not the proper way Now its not booting or starting correctly, this also happened before but at that time it did somekinda auto recovery thing ...
user avatar
0 votes
2 answers
460 views

Why does FSCK run even if you never have unclean shutdown?

AFAIK FSCK checks and repair the file system in an event of an unclean shutdown like power failure (I'm not sure). I have a server that never had unclean shutdowns but still FSCK ran at some point ...
user avatar
  • 5,257
2 votes
0 answers
130 views

unaccessible files in lost+found

(This in principle the same as question 15800742 on Stack Overflow, but the answer that it got, as well as miscellaneous other answers I have found on the Internet, have not worked for me.) After a ...
user avatar
  • 131
0 votes
1 answer
2k views

Ubuntu purple screen on boot and random freezes

I have dual boot Windows 10 and Ubuntu 16.04 LTS on my Thinkpad. Recently I am experiencing strange issues on my laptop. I'll list the issues. I have experienced all of them in past 2 weeks. With ...
user avatar
1 vote
1 answer
311 views

Filesystem recovery of dm-encrypted partition fails

I have a thumb drive that I keep LUKS-encrypted. Recently had a computer crash. I'm able to open the encrypted device without any apparent problems, but when I try to mount the drive (as root) I get ...
user avatar
2 votes
0 answers
946 views

How do I identify the cause of e2fsck abort

After a recent system failure several of my filesystems are broken. And even e2fsck fails to repair them. Surprisingly e2fsck lacks the so called debug or verbose mode and just writes e2fsck: ...
user avatar
  • 346
0 votes
1 answer
236 views

What is the best approach to do fsck on corrupted disk + redhat 7

What is the best approach to do fsck on corrupted disk one from the following options: The first option is to set “1” ( the last character ) on device in /etc/fstab file , so it will check ...
user avatar
2 votes
2 answers
776 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 Red Hat Linux machine. The target is to find what are the disks that require e2fsck ( as e2fsck -y /dev/sdb etc.) ...
user avatar
1 vote
1 answer
4k views

Cant run fsck; e2fsck: aborted

I had two partitions and I needed to expand the root, because it was too small and I couldn't install updates. So I booted in a Live CD, run gparted and started the process. In order to expand, it ...
user avatar
  • 259
4 votes
1 answer
5k views

When will fsck run if maximum mount count is -1?

I am trying to determine if fsck will run on reboot. I run this command dumpe2fs -h /dev/(diskname) and get this result: Mount count: 13 Maximum mount count: -1 AFAIK fsck will run ...
user avatar
  • 5,257
1 vote
2 answers
3k views

What does "NO MATCH" in my fsck_hfs output mean?

I am trying to check external USB 3.5" HDD for bad sectors and fix them if possible. $ sudo fsck_hfs -fy -S /dev/disk2 Gives following output: ** /dev/rdisk2 (NO WRITE) Scanning entire disk for ...
user avatar
  • 183