Skip to main content

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
0 answers
28 views

Is this fsck output good, bad, or indifferent?

I have a Synology fileserver (but this isn't a Synology-specific question) with a 5 TB RAID 5 ext4 volume that had two drives get disconnected at once. The volume "crashed" in Synology's ...
jml's user avatar
  • 1
0 votes
0 answers
268 views

Speed up btrfs check --init-extent-tree

I recently accidentally mounted a btrfs filesystem read-write without knowing a different kernel that also had it mounted read-write was hibernated. When I resumed the hibernated kernel, it mounted ...
wallefan's user avatar
  • 137
0 votes
1 answer
87 views

Breaking down e2fsck

Is e2fsck -cc equivalent to badblocks -nsv -o badblocks.txt; e2fsck -L badblocks.txt? If so, could I potentially speed up the testing by getting badblocks to do a destructive read-write test? Like ...
Dani's user avatar
  • 11
0 votes
0 answers
79 views

What makes e2fsck -cc so slow?

This isn't a complaint or a request for tech support or help! I'm just curious about what's going on behind the scenes :) I'm doing e2fsck -cc to flag bad blocks on an 8TB LVM ext4 filesystem. ...
Dani's user avatar
  • 11
0 votes
1 answer
54 views

Does fsck.mode=force in GRUB overrides 6th column option in fstab?

I set fsck.mode=force fsck.repair=yes against GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub file. Will this option override numbers set in the 6th column of /etc/fstab? For example, will my root ...
Faxopita's user avatar
0 votes
1 answer
589 views

How to read fsck output?

I want to understand the fsck output, I did not find it explained anywhere. The following it's output of the fsck command on a luks encrypted ext4 drive (unmounted). What's the (1993/0/0 errors) ...
Aspiring Dev's user avatar
0 votes
1 answer
6k 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
209 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
1k 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
4k 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
1 vote
0 answers
830 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
  • 121
1 vote
1 answer
450 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
2k 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
  • 51
0 votes
2 answers
421 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
3k 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
5k 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
44 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,228
1 vote
0 answers
445 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
11k 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
304 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
1k 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
620 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
278 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
972 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
4 votes
2 answers
26k 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
8k 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
3 votes
0 answers
16k 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
  • 143
0 votes
1 answer
346 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 ...
speed bump's user avatar
0 votes
1 answer
42 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 ...
speed bump's user avatar
2 votes
0 answers
387 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
829 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
1k 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
222 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: [...
einpoklum's user avatar
  • 9,852
0 votes
1 answer
643 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
4k 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
1k 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
292 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
1k 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
889 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
57 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
613 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
2k 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
27k 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
764 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,533