People who code: we want your input. Take the Survey

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

Trying to correct the file system of Debian10 Compact Flash Card (CFast) using VirtualBox Debian10

I am very new to this community and Linux. I am stuck in a situation where we in the company are using CFast (Compact Flash) card to install a Debian10 based software on a customer appliance. A ...
1
vote
0answers
8 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 -...
1
vote
3answers
171 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 ...
0
votes
0answers
22 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 ...
0
votes
1answer
64 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 ...
1
vote
1answer
43 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 ...
0
votes
0answers
13 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: ...
0
votes
0answers
26 views

NO MATCH strange message when checking disk with fsck_hfs on macOS

On an external disk mounted in macOs High Sierra: Performed fsck_hfs -fy -S /dev/disk2s2 on a newly formatted disk. It did not mention any bad sectors, but it did spit out many messages with "...
0
votes
1answer
166 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. ...
0
votes
0answers
2k 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 ...
2
votes
2answers
10k 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 ...
1
vote
1answer
3k views

OS/X fsck_hfs: “operation not permitted NO WRITE” for external drive in single-user mode [SOLVED]

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 ...
0
votes
0answers
5k 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 ...
0
votes
1answer
110 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 ...
0
votes
1answer
33 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 ...
2
votes
0answers
157 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 ...
1
vote
0answers
398 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 (...
0
votes
1answer
130 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 ...
1
vote
2answers
169 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: [...
0
votes
1answer
335 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 ...
0
votes
1answer
148 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 ...
1
vote
2answers
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....
1
vote
1answer
986 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 ...
0
votes
1answer
539 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 ...
2
votes
1answer
92 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 ...
0
votes
0answers
629 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/...
0
votes
1answer
2k 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 ...
0
votes
2answers
708 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. ...
0
votes
1answer
48 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 ...
0
votes
1answer
497 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 ...
6
votes
2answers
765 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 ...
5
votes
1answer
17k 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 ...
1
vote
0answers
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 /...
-1
votes
1answer
1k 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 ...
0
votes
1answer
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 ...
0
votes
2answers
314 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 ...
2
votes
0answers
95 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 ...
0
votes
1answer
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 ...
1
vote
1answer
270 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 ...
2
votes
0answers
841 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: ...
0
votes
1answer
212 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 ...
2
votes
2answers
679 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.) ...
1
vote
1answer
3k 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 ...
4
votes
1answer
4k 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 ...
1
vote
2answers
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 ...
1
vote
1answer
569 views

Repeated Unexpected Inconsistency errors…hard drive gone bad?

I have gotten a Unexpected Inconsistency error for the fourth time on my laptop in the last couple of weeks. The first three times was when I was running Ubuntu 16.04. fsck managed to fix the corrupt ...
0
votes
1answer
1k views

Badblocks and fsck say HDD is clean but Linux marks it as read-only

I'm relatively new to Linux so I'm not sure why this is happening. I have this one drive that Linux always marks it as read-only partition. At first I thought it was just the OS so I did a clean ...
0
votes
0answers
355 views

Test if filesystem was cleanly unmounted

My problem is that a device might be mounted by a suspended virtualbox VM. If so I don't want to change the device under the virtualbox VM. The most obvious check is if the filesystem is cleanly ...
1
vote
1answer
460 views

Some file permissions have '??????????' under LxC - Is this a feature, or a sign of a corrupt file-system?

I ran into the following listing quite by chance: [root@myhost /root]# cd /var/lib/lxcfs/cgroup/devices/ [root@myhost /var/lib/lxcfs/cgroup/devices]# ls -l ls: cannot access 'devices.allow': ...
3
votes
1answer
809 views

Remove broken EXT4 inode without debugfs

I have broken filesystem inside qnap. When I'm trying to fsck, it going into endless loop on one inode. Unfortunately qnap haven't debugfs command. Is this possible to remove (clear) inode via dd?