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.
151 questions
0
votes
2
answers
139
views
Cannot fsck /usr/local FS : e2fsck says it's in use
I cannot fsck /usr/local filesystem even after successful unmount : e2fsck says it's in use :
$ sudo umount -v /usr/local
umount: /usr/local unmounted
$ sudo fsck.ext4 /dev/...
2
votes
1
answer
101
views
What can be done when an exFAT partition can't be fixed by chkdsk nor fsck.exfat, and neither produce meaningful errors?
Update: I found another behavior I didn't see before: Any file created inside the /DCIM/DJI_001 folder disappears after unmounting and re-mounting the disk, while files created inside the /DCIM/...
0
votes
0
answers
82
views
launch fsck from Ubuntu usb to recover PC ssd Ubuntu filesystem
In my PC I had Ubuntu 20.04 installed. After a dist-upgrade gone wrong I tried to uninstall some packages and now partions get corrupted.
I created a bootable USB with the last version of Ubuntu and ...
3
votes
0
answers
117
views
Disk/File Recovery with ddrescue
I have a WD My Cloud 6TB disk full of data, that got corrupted. I extracted the disk from the case and installed it into a PC, booted with Ubuntu.
Then I ran ddrescue to copy what was readable from ...
2
votes
0
answers
2k
views
How to fix APFS errors that Disk First Aid isn't fixing? ("descendants of dir-stats object is greater than expected")
This is occurring on an M1 MacBook Pro 2021, macOS Sequoia 15.1.1.
I've seen some warnings/errors running disk first aid through Disk Utility. I see the same errors running it from the command line. I ...
0
votes
1
answer
1k
views
fsck : Either the superblock or the partition table is likely to be corrupt
So I have a dual boot laptop (Win10 & ubuntu) which is UEFI boot based and has 2 physical ssd's in. After trying to shrink my ubuntu partition (sda6 below) and booting ubuntu, the ubuntu kernel ...
1
vote
1
answer
1k
views
Ubuntu fsck seems to do nothing but chkdsk fixes it
I have a hard drive that frequently gets orphaned index files making it impossible to delete directories on it.
I'm using Ubuntu 22 so I try running fsck (sudo fsck /dev/sdb2) and all it does is ...
0
votes
0
answers
791
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 ...
1
vote
1
answer
506
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 ...
0
votes
1
answer
358
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 ...
0
votes
1
answer
2k
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) ...
0
votes
1
answer
14k
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 ...
0
votes
0
answers
308
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'...
0
votes
0
answers
2k
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 ...
-1
votes
1
answer
5k
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 ...