Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

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

Bad magic number in super-block; re-partioned, tried e2fsck, etc. What next?

I've got a 512GB SSD (M.2) drive in my laptop. It was originally the boot drive, until I dropped in a standard-size 1TB SSD to be the main drive. I planned to use the other drive as a data drive for ...
0
votes
2answers
314 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
74 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
42 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
93 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
173 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 ...
3
votes
1answer
933 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
150 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
111 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
1k 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
0answers
6 views

Recover data after fsck.ext4 [duplicate]

First of all I will tell that how this problem happened. I am using Windows and Ubuntu as dual boot. So when I use Windows I use ext2fs program to manage ext4 disk on Windows. When I switch again to ...
0
votes
0answers
28 views

How to Force fsck for all other non-root partitions

We have the following disks and there mount point: /dev/sdb /appTdb/sdc ext4 defaults,noatime 0 0 /dev/sdc /appTdb/sdd ext4 defaults,noatime 0 0 /dev/sdd /appTdb/sde ext4 defaults,noatime 0 0 /dev/...
0
votes
0answers
25 views

Wrap or proxy a system command to add a parameter

Can I use an alias or symlink, or otherwise wrap the OS X command fsck_hfs to always add a -c parameter (to allocate cache memory) when diskutil calls fsck_hfs? Since diskutil (and the GUI Disk ...
0
votes
0answers
82 views

recovering filenames from ext4 when there is no root inode or journal?

The root inode and journal have both been wiped from my ext4 filesystem accidentally when I zeroed the first few megabytes of my partition. My data, however, has all been successfully recovered with ...
0
votes
2answers
61 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
68 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
68 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
1k 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 ...
0
votes
1answer
86 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 ...
1
vote
0answers
392 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
76 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
242 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
1k 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 ...
1
vote
1answer
1k 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
1k 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
223 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
623 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
201 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
316 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
474 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
502 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
410 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). ...
0
votes
1answer
711 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 ...
0
votes
0answers
468 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 ...
0
votes
2answers
3k views

OSX doesn't boot, keys out of order, rebuild catalog b-tree

I have a MacBook pro '11 with SSD drive. I have installed an update from app store, and my computer won't boot. In single mode I see errors: Checking catalog Keys out of order ..... .... Missing ...
1
vote
0answers
161 views

Accessing files/directories in 'lost+found' following fsck of partially-dd'ed-over EXT4 filesystem

I'm trying to recover data from a 3TB EXT4 partition in an LVM setup of which I hosed the first ~1GB with dd and am having trouble accessing files which have been placed in lost+found due to ...
0
votes
1answer
147 views

Server lock-up, fsck after reboot

After locking up for whatever unknown reason, my dedicated server shows the following after rebooting: It has been stuck on this for about 2.5 hours now. It shows no progress indicator of any sort ...
1
vote
2answers
613 views

Root user can't remove folder

There is a folder /mnt/shared which root user can't access/modify or remove. # ls -lai /mnt total 4 16662 drwxr-xr-x 3 root root 0 Mar 27 14:30 . 2 drwxr-xr-x 23 root root 4096 Mar 27 14:26 ....
0
votes
0answers
59 views

Running fsck.ext3 removes symlink to device

I have an external usb drive for which I have udev create the symlink /dev/externalbackup when it is plugged in via the following rule: KERNEL=="sd?1", ATTRS{idVendor}=="0c0b", ATTRS{idProduct}=="...
1
vote
1answer
494 views

Why is fsck working so inconsistently?

Okay, this is hard to describe, so I'll take it point by point. I got a Linux server, it's running the latest version of Ubuntu. I ran fsck read only to check the hard drive. Here's the output: ...
0
votes
2answers
2k views

Mac OSx Yosemite trouble to boot

My MacBook Pro doesn't start suddently. After following lot of posts i tried single user login, Disk Utility etc * Disk utility shows no errors its always successful. * fsck -fy gives me the ...
0
votes
2answers
129 views

Unable to access or analyze external HDD

a friend gave me a corrupted HDD. He said, his laptop crashed during a formatting process with a BSOD. Now from time to time (on Windows) it's being detected but if you try to access it, it prints ...
-1
votes
1answer
217 views

EXT4 partition didn't get any free space after expansion

I have expanded the root partition on my Banana Pi using the following script: fdisk /dev/mmcblk0 <<EOF p d $PART_NUM n p $PART_NUM $PART_START p w EOF After a reboot I got a 32 GB partition ...
1
vote
1answer
589 views

What does fsck mean with “Filesystem has n clusters but only space for n-m FAT entries. (m>0)”?

I started a long time copy action onto my external HD. I went away, and somehow the energy saving mechanism must have realized that the user was idle and suspended the machine. (BTW, what exactly is ...
1
vote
0answers
601 views

Force check all file systems in Ubuntu

How to force check all file systems under Linux/Ubuntu? My newly installed Ubuntu 15.04 Vivid stops booting after the suspend/resume failed. Is there any easy way to force check all the file systems ...
0
votes
1answer
144 views

Can the Vboxfs mount point be formatted?

As I am working on the Oracle XE 11g database installation on virtualbox guest os: CentOS 7. Installed all the prerequisite libraries. when I have run the rpm command it is not able to execute that ...
1
vote
0answers
214 views

fsck scheduled for reboot - ignored?

Recently my server had a power failure which obviously led to hard drive corruption: sudo fsck -n fsck from util-linux 2.20.1 e2fsck 1.42.9 (4-Feb-2014) Warnung! /dev/mapper/pdc_gahfdjcb2 ist ...
0
votes
1answer
737 views

btrfs check: “Couldn't open file system”

When I run btrfs check /dev/sda1, it returns "Couldn't open file system," whether /dev/sda1 is mounted or not. Why? (cf. this)