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
1answer
88 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
324 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 ...
1
vote
1answer
3k 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
629 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
478 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
62 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
27 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
82 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
133 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
55 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
116 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
0answers
24 views

Checking mounted filesystem

Is it possible to check a mounted filesystem for errors? I have an embedded device with RootFS on SD which may experience "unwanted shutdowns" (i.e.: power-out). Doing an fsck.ext3 -fy /dev/...
0
votes
1answer
130 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
0answers
20 views

fsck on a read-only emergency boot Pi3 b [duplicate]

After being cut from power the Pi booted into a read-only emergency/recovery mode. I cant run fsck nor make any changes not even if I plug the SD card into a different PC. Also SSH wont work on the Pi,...
0
votes
1answer
128 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
576 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
413 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
360 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
65 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
467 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
1k 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
551 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
0answers
2k views

Every startup i need to manually run fsck /dev/mapper/ubuntu--vg-root

Hi every day when I start my ubuntu 18.04, then it's not starting and gives a below error. (initramfs) exit /dev/mapper/ubuntu--vg-root contains a file system with errors, check forced. Inodes that ...
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
458 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
510 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
11k 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
909 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
658 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
4k 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
192 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 ...
0
votes
0answers
79 views

Hello a lot of broken inodes appear every minute on Linu Mint aka Ubuntu 18.3. what kind of antivirus should i use

I have got following errors and running FSCK to fix inodes on my Linux. Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: ...
2
votes
0answers
88 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
216 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
731 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
183 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
561 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 ...
2
votes
1answer
3k 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 ...
0
votes
1answer
2k views

Explain me fsck_hfs output

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 bad ...
1
vote
1answer
469 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
323 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
428 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': ...
1
vote
1answer
730 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?
0
votes
1answer
712 views

Is tune2fs -l /dev/mmcblk0pN reliable for checking file system error?

We have BBB based custom board, It has 256MB ram and 4GB or eMMC. We are using Linux-3.12 and on eMMC we have ext4 partitions. I am writing a script which runs periodically and checks for file ...
1
vote
1answer
586 views

fsck on root partition on BBB based custom board

We have BeagleBone Black based custom Embedded Linux Board. It has Linux-3.12, 256MB RAM and 4GB eMMC with ext4 file system on it. Sometimes we run into file system errors(rare but not impossible). ...
1
vote
1answer
2k views

SMART Failure Predicted on Hard Disk

The other day I rebooted my laptop and found I was unable to log back in or even boot my regular (HDD installed) OS. Now I'm getting the following error at boot-time/startup: SMART Failure Predicted ...
0
votes
0answers
691 views

Unable to successfully boot to the desktop after forced shutdown

I am running Raspbian Wheezy. Since yesterday I was unable to boot my RPi after a forced shutdown (unplugging the power chord). Since then it starts as follows: http://pastebin.com/QiEbda2y Note the ...