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
0 votes
1 answer
37 views

How to run fsck on Ubuntu manually?

I switched off my laptop while it was restarting. And when I tried to open it again it asked me to do fsck manually. I don't have any proper understanding of how to do fsck. So I typed yes and pressed ...
Night's user avatar
  • 1
0 votes
0 answers
49 views

USB HSF+ external drive partition won't mount. "(NO WRITE)" & "Resource busy" errors when trying fsck

I was copying a huge file from a USB external drive when it suddenly disappeared from the Finder. I disconnected and connected it back, but the primary partition wouldn't mount. Rebooting the Mac didn'...
Stellar Streams's user avatar
0 votes
0 answers
23 views

how to know if we need to replace the VMDK disk based on dmesg messages

we have RHEL 7.6 server ( VM machine ) , and we noticed about the following kernel messages. [2422507.399218] EXT4-fs (sdd): error count since last fsck: 5 [2422507.399230] EXT4-fs (sdd): initial ...
King David's user avatar
0 votes
0 answers
315 views

Use fsck to fix a corrupted exfat SD card that doesn't work on Android 12 anymore

After my Android phone crashed it brings an Issue with SD card and asks me to reformat it in order to use it again. Luckily, on my Linux computer (Manjaro) the SD card is recognised and read without ...
cale's user avatar
  • 1
-1 votes
1 answer
1k views

Filesystem still has errors

I tried to repair filesystem in my Linux machine with sudo fsck -y /dev/sda but it took too much time and I got error, the error is something about EXT4, so I have an USB in which there is the Kali ...
HakimFerchichi's user avatar
0 votes
0 answers
96 views

How to use "fsck" to repair filesystem error in Linux?

In my Linux machine I am about to check my Hard Drive Disk and repair filesystem Errors. I tried with 'fsck' cmd but it takes much time then I got this error: enter image description here Also I get ...
HakimFerchichi's user avatar
0 votes
0 answers
329 views

External USB hard drive not mounting as expected in macOS

I had this issue with my external 4TB drive in USB docking station that suddenly stopped working on my macOS. I tried connecting it to Windows and Linux machines with same results. I thought the data ...
Wojtek_B's user avatar
  • 111
1 vote
1 answer
304 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. ...
Scott H.'s user avatar
0 votes
1 answer
968 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. ...
Al_'s user avatar
  • 21
0 votes
2 answers
279 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 ...
kiran_g's user avatar
  • 105
1 vote
1 answer
2k 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-...
Deffa's user avatar
  • 13
-1 votes
2 answers
2k 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....
Lara's user avatar
  • 133
0 votes
0 answers
43 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, (...
spraff's user avatar
  • 2,076
1 vote
0 answers
120 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 -...
Jon Roberts's user avatar
1 vote
3 answers
7k 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 ...
Maytha8's user avatar
  • 61
2 votes
0 answers
113 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 ...
ManSamVampire's user avatar
0 votes
1 answer
521 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 ...
Lerian Acosenossa's user avatar
1 vote
1 answer
328 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 ...
Meffy's user avatar
  • 13
0 votes
0 answers
117 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: ...
meolic's user avatar
  • 133
0 votes
1 answer
626 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. ...
Ian Cooper's user avatar
0 votes
0 answers
4k 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 ...
dhadas's user avatar
  • 1
3 votes
2 answers
21k 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 ...
Ben Franklin's user avatar
2 votes
1 answer
6k 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 ...
Mike Robinson's user avatar
2 votes
0 answers
12k 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 ...
Kazarp's user avatar
  • 133
0 votes
1 answer
215 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 ...
Christian Hick's user avatar
0 votes
1 answer
38 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 ...
Christian Hick's user avatar
2 votes
0 answers
279 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 ...
Structure56's user avatar
1 vote
0 answers
677 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 (...
Pritish Pandey's user avatar
0 votes
1 answer
535 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 ...
Ori Wiesel's user avatar
1 vote
2 answers
188 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: [...
ein supports Moderator Strike's user avatar
0 votes
1 answer
535 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 ...
K. Matveev's user avatar
1 vote
2 answers
3k 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....
S. Imp's user avatar
  • 111
1 vote
1 answer
2k 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 ...
muCkk's user avatar
  • 21
1 vote
1 answer
790 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 ...
Tintin's user avatar
  • 31
2 votes
1 answer
196 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 ...
Konstantin's user avatar
1 vote
0 answers
995 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/...
PhantomR's user avatar
  • 139
0 votes
1 answer
4k 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 ...
Fabrizio Mazzoni's user avatar
0 votes
2 answers
821 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. ...
pixelbash's 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 ...
King David's user avatar
0 votes
1 answer
581 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 ...
Stanley Ngumo's user avatar
6 votes
2 answers
1k 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 ...
G Grosschmid's user avatar
7 votes
1 answer
22k 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 ...
Rainer Glüge's user avatar
1 vote
0 answers
2k 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 /...
Adi's 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 ...
defarm's user avatar
  • 1
0 votes
1 answer
6k 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 ...
sadad ali's user avatar
0 votes
2 answers
594 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 ...
IMB's user avatar
  • 5,415
2 votes
0 answers
204 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 ...
toomas's 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 ...
Kanishk Saxena's user avatar
1 vote
1 answer
417 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 ...
Project 9501's user avatar
2 votes
0 answers
1k 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: ...
PF4Public's user avatar
  • 356