Skip to main content

Questions tagged [fsck]

fsck - check and optionally repair a file system.

Filter by
Sorted by
Tagged with
0 votes
1 answer
44 views

Is my SSD dead? can't mount. I/O errors, 29k+ fsck errors

So I work with a couple of people and we ssh into a Linux server for work. There are several SSDs, and one of the non-boot Samsung 870 SSDs crashed the other day in the morning. This led to an ...
Derek Xiao's user avatar
0 votes
1 answer
27 views

Fix IO errors during startup - fsck not helping

observe the below error - How to get past this? Ran fsck -y, fsck -a and fsck -f on nvme0n1p1, nvme0n1p2, etc. Initially I recall seeing some "ignore error" prompts which were automatically ...
vishvAs vAsuki's user avatar
0 votes
0 answers
30 views

When does file system error "Superblock last mount time is in the future" occur? [duplicate]

At one of our customers we have a debian 7.8 system running that sometimes doesn't boot. The system is then waiting for user input to run fsck manually. The boot screen halts with following info: /...
svh's user avatar
  • 1
0 votes
2 answers
51 views

Check of "noauto" EXT4 FS at startup time : Conditions for declaring it clean

I have a couple of (clean) filesystems declared in my fstab with the noauto mount option set and fs_passno set to 2. For whatever reason (power failure, kernel panic, hard reset…), those filesystems ...
MC68020's user avatar
  • 8,239
-1 votes
1 answer
74 views

/dev/mapper/vg_myserver-lv_home: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. (i.e., without -a or -p options) tried everything almost

ve encountered a problem with my logical volume lv_home on a CentOS system. After an attempt to resize this LV from 50GB, it seems something went wrong, and now I'm facing filesystem issues. Here's ...
user3265051's user avatar
9 votes
2 answers
1k views

Cutting machine with Linux: fsck died with status code 4

We have a cutting machine which is working with Linux. I don't know a lot about Linux, so I attach a photo of the error which we get. I will be happy if someone can help.
R P K's user avatar
  • 91
4 votes
0 answers
117 views

How can I get Plymouth to display FSCK messages when the system is booting?

I have created a custom Plymouth theme (based on MIB Ossigeno) configured to process fsck's messages coming from systemd-fsckd by implementing the communication protocol whose message has the ...
Gustavo's user avatar
  • 61
0 votes
0 answers
80 views

System not booting after resizing /dev/sda2 and creating a swap partition

Error Message: dev/sda2: The filesystem size (according to the super) is 31126889 blocks The physical size of the device is 29884416 blocks Either the superblock or the partition table is likely to ...
SatoruGojo's user avatar
0 votes
1 answer
75 views

How to repair this problematic hard drive?

I have a WD 1.3 TB hard driver, it might have some bad sectors. I plug it in the Raspberry Pi and partition the disk with following commands sudo fdisk -l /dev/sdb, then g, n, w to create the new ...
Kejing Gu's user avatar
0 votes
0 answers
240 views

Recover exFAT filesystem after bad fsck operation

I spotted a message in dmesg: "Volume was not properly unmounted. Some data may be corrupt. Please run fsck.", and so I ended up running a command: doas fsck /dev/sda. This produced some ...
Ernest Izdebski's user avatar
0 votes
1 answer
84 views

Ubuntu file system read-only after Windows system restore at previous point

I am running Ubuntu 18-04 via WSL on a Windows Virtual Machine in Azure. I needed to restore the machine to a previous point, and what happened was that the Ubuntu file system is now read-only.  When ...
Eliseo Di Folco's user avatar
0 votes
0 answers
188 views

fsck: error 2 (No such file or directory) while executing fsck.ext2 for /dev/sda5

I'm new to Linux, I was trying to install Ubuntu using a 16gb usb. I install Ubuntu and all was fine, then after to install Ubuntu in my pc, it appears a message that a new version of Ubuntu is ...
Gmon3467's user avatar
0 votes
0 answers
49 views

Initramfs Issues

Ok, so I'm running a full Kali distro from a USB. It's been working fine for years, with one previous initramfs error a while back that eventually went away after I stopped using the USB for a few ...
Lee's user avatar
  • 97
0 votes
0 answers
39 views

error when starting Linux (unable to set superblock flags on /dev/sda6) [duplicate]

I had a problem starting my Linux, it shows this error. I've tried different ways and it still doesn't work
Flayrys Alves Pariz's user avatar
0 votes
0 answers
42 views

Recurring disk-related issues when booting virtual machine

I'm experiencing a recurring issue with my virtual Ubuntu server. Every three days, this problem occurs exclusively on this particular virtual machine. The server requires a journal recovery, followed ...
Egis's user avatar
  • 1
-9 votes
1 answer
168 views

Linux Kali Debian initramfs due to disk inconsistency [closed]

When i started UTM (Virtual Box) it opened BusyBox with (inittramfs)
jaja's user avatar
  • 1
0 votes
0 answers
228 views

Is there a way to predict corrupted orphan inodes before the filesystem becomes read-only?

A few servers with 6 months old SSDs are going read-only. Some are going to rescue shell with the error Inodes that were part of a corrupted orphan linked list found. I know I can run fsck and fix the ...
rocky_alpine's user avatar
0 votes
1 answer
4k views

fsck:error 2 (no such file or directory) while executing fsck.ext2 for /dev/sda2

/dev/sda2: warning:filesystem still has errors fsck exited with status code 12 The root filesystem on /dev/sda2 requires a manual fsck Enter help for a list of built-in commands. (initramfs) fsck ...
user586542's user avatar
0 votes
1 answer
240 views

Recovering an ext4 partition

I have an external drive with an ext4 partition /dev/sda1 I use for my local borg backups. It is simply plugged in via usb port, and, mounted with an fstab generated systemd automount entry. I ran a ...
lyndhurst's user avatar
0 votes
0 answers
28 views

Disk failure in LVM, One drive keeps disconnecting

I built a NAS with LVM running Ubuntu Desktop. It worked fine for almost two years until a disk started to fail. Initially, it would spew out a lot of errors on a boot fsck check from one drive. After ...
Oritro Ahmed's user avatar
0 votes
2 answers
271 views

I'm trying to check the filesystem at boot, but I'm encountering an error that prevents fsck from completing

While attempting to resolve issues related to a seemingly full disk, I'm trying to check the filesystem on the root of my ASUS Tinkerboard 2S (Debian 10). I encountered the following errors in the ...
Dzseti's user avatar
  • 121
1 vote
0 answers
132 views

LVM on RAID 5: LV does not mount at boot, need fsck

I am using Debian 11. I have a mdadm RAID 5 array of 5 disks (4 active, 1 spare) used as a PV for a VG in which 2 LVs have been created : one for home, one for backup. The home LV mounts at every boot,...
Vartaghan's user avatar
1 vote
0 answers
519 views

In btrfs-check, how to automatically or manually fix the error "errors 2000, link count wrong"

I run btrfs-check and got the following errors: $ sudo btrfs check --progress --force /dev/nvme0n1p7 Opening filesystem to check... WARNING: filesystem mounted, continuing because of --force Checking ...
tribbloid's user avatar
  • 153
1 vote
1 answer
226 views

external HDD drive become Read-only file system with wrong file system type

I have a Toshiba HDD with an ext4 file system that I have been using extensively until yesterday. Suddenly, it has become a read-only file system, and when I run fdisk -l, it shows the type as HPFS/...
iago's user avatar
  • 135
0 votes
1 answer
436 views

Internal mechanisms of mounting an ext2 file system image and managing changes

For a OS project, I am creating a ext2 file system image and mounting it. This means that I am writing out a 1 MB file with block information and then using it as the mount target. For example, assume ...
user129393192's user avatar
1 vote
0 answers
210 views

Temporarily bypass a forced fsck check

I have some RAM that I know for sure is faulty: Memtest86+ reports this as such. Unfortunately this means that, when I'm forced to restart the machine for an unrelated reason, Linux sometimes ...
Migwell's user avatar
  • 417
0 votes
0 answers
304 views

How to rebuild the filesystem of a recovered partition

I managed to ruin a server drive by trying to clone it to another drive with dd. In the process, the original boot and sda1 partitions were overwritten. I immediatly stopped using the drive,I made an ...
Expired's user avatar
1 vote
1 answer
158 views

Unable to boot SunOS 5.8

I had to hard reboot a SunOS 5.8 server due to a networking fault. On giving 'boot' command on OK prompt, I get the following messages Can't read disk label. Can't open disk label package Boot device: ...
najarajar's user avatar
0 votes
0 answers
80 views

GParted fs check wiped disk - possible to undo?

I connected a fat32-formatted USB drive to my system. dmesg showed: [ 4057.783200] sd 6:0:0:0: [sdd] Optimal transfer size 33553920 bytes not a multiple of physical block size (4096 bytes) ... [ 4064....
Peregrino69's user avatar
  • 2,467
2 votes
1 answer
291 views

40 seconds `fsck` of some drive at boot

On my Linux Mint 21.1 Cinnamon I just experienced very slow boot, which never happened before: $ systemd-analyze blame 40.890s systemd-fsck@dev-disk-by\x2duuid-c5da2d40\x2d42ce\x2d4193\x2d9f21\...
Vlastimil Burián's user avatar
1 vote
1 answer
1k views

Metasploitable file system error (fsck); and msfadmin root password not working

encountered this on Metasploitable 2 Give root password for maintenance (or type Control-D to continue): The default root password of msfadmin isn't working. It keeps saying login incorrect. Please ...
Uzosike Daniela's user avatar
1 vote
1 answer
3k views

Ubuntu gives message "Welcome to emergency mode !", fsck just says "clean"

There were 3 disk drives on the server, but one failed with input/output error and is not recoverable. When trying to boot with the remaining 2 drives, I get: Welcome to emergency mode! After logging ...
BsAxUbx5KoQDEpCAqSffwGy554PSah's user avatar
0 votes
0 answers
607 views

How to auto-recover after unclean shutdown?

I have an embedded system that I do not have very easy access to. Although in retrospect, I shouldn't have built it this way, but the only way to shut down the system is to kill power. This works 99.9%...
dberm22's user avatar
  • 113
0 votes
1 answer
740 views

blk_update_request: I/O error, dev vda, sector on KVM QEMU virtual machine

Following my System76 Debian laptop battery drained and the computer shut down, I could not boot the device that I could solve with a live cd and fsck -y but the QEMU/KVM virtual machine it contained ...
Lajos's user avatar
  • 145
2 votes
1 answer
1k views

fsck does not repair FAT32 partition correctly

I have a flash drive formatted with a FAT32 partition. When I pull it out before unmounting it naturally has the dirty bit set and when I use the flash in a Windows machine, Windows complains that the ...
DEKKER's user avatar
  • 968
0 votes
1 answer
625 views

FSCK Failing to fix e2fs on LVM disk image or original SSD

I have a Sandisk 1TB SDD that is in SMART Pre-fail as my boot disk on a machine running Ubuntu 22.04. Recently this disk failed to boot the machine, and is no longer mountable when removed and mounted ...
Jason's user avatar
  • 1
1 vote
1 answer
786 views

How to (is it possible to) fix Mac drive on Linux?

I have an external USB 4 TB hard drive formatted into Mac OS, which has stopped to be determined in Mac OS. It has 2 partitions, one of which is seen under Windows Disk Management tool, which is ...
Dims's user avatar
  • 3,285
3 votes
1 answer
685 views

e2fsck deletes many inodes, recovers too little data from a disk image. Are there better methods?

I imaged a failing SSD as best I could using ddrescue or dd (it's been too long to recall which). With the resulting .img, I've burnt a disk which is not recognised as mountable. Using e2fsck -fyvC 0 ...
Stribog's user avatar
  • 31
1 vote
0 answers
108 views

Embedded Linux - skip file system check if .mount unit is skipped

I'm working on a custom stm32-based board running a Linux distribution built with buildroot. The system can either boots from an SD card or a eMMC flash. SystemD is installed. The rootfs is mounted in ...
A.G.'s user avatar
  • 113
3 votes
0 answers
1k views

Can't run fsck manually - "/etc/default/rcS: No such file or directory"?

I wanted to run disk check on my Ubuntu 22.04 boot partition, so I rebooted the machine into recovery mode and tried to run fsck. However, I got this error: /lib/recovery-mode/recovery-menu: line 80: /...
Danijel's user avatar
  • 188
0 votes
0 answers
275 views

How to change permissions of a write protected drive to repair it?

My raspberry pi will no longer boot up due to the following error: End Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2) I've tried fsck and I'm unable to get it to fix ...
user3486773's user avatar
1 vote
1 answer
243 views

Disk disappear after fsck

One of my disk is broken after a power failure. When I try to repair my disk by fsck. Firstly it outputs "recovering journal" and "Run journal anyway<y>? After I press y then fsck ...
chenmo2022's user avatar
1 vote
1 answer
1k views

Running fsck on Raid drive

I recently bought an old ix4-300d NAS by Lenovo (obsolete model). It started after some time showing file system error. I tried to run fsck after connecting to the unit with putty through SSH, which ...
Alex's user avatar
  • 21
0 votes
1 answer
96 views

how to combine output values using echo & fsck

I am trying to make a functional script just using Partition Label, get that label, from the Label get the Device, and pass fsck -fy twice on each partition. #!/usr/bin/env bash # Filter partition by ...
Inukaze's user avatar
  • 47
0 votes
0 answers
259 views

I can't boot into my UBUNTU 20.04 LTS

some problem in partition /dev/sda8 and it has logged me into emergency Mode. I tried running fsck command but to any use and also commented the fstab file but none worked. Please help me !
faerizz's user avatar
1 vote
0 answers
393 views

how to locate the root cause of a corrupted ext3 filesystem

I have a 4G Compact Flash card with a 2.5G ext3 partition. The file system has become corrupted. I am not necessarily interested in fixing the file system as identifying exactly what is corrupted in ...
Jared Sanchez's user avatar
0 votes
1 answer
1k views

Fixed filesystem error

I was working on my VM when suddenly I realised all my files have been marked as read-only. I found it strange, so I rebooted, and then I was prompted into "BusyBox". For some unknown reason,...
user1156544's user avatar
1 vote
0 answers
1k views

How did my ext3 superblocks get so messed up? And how to fix them?

I've recently found an old external hard disk and I have no idea what's on it. There was only one partition, encrypted with dm-crypt. Luckily I still remembered some of the passphrases that I used ...
meeque's user avatar
  • 21
0 votes
0 answers
415 views

Ubuntu home is empty after fsck

I have ubuntu 20.04, I ran into initramfs screen, then after some search I executed fsck /dev/sda6 -y when it's done the GUI is up, but I can not login with my user so I decided to use terminal mode ...
rahram's user avatar
  • 117
0 votes
2 answers
287 views

Modifying files on partition mounted both on host and in KVM guest, understanding the caused corruption

I have a server to which I added two SSDs. On the host I created a RAID 1 with both of them by using mdadm. The RAID was created by first creating partitions on the SSDs, and using the partitions to ...
Daniel F's user avatar
  • 887

1
2 3 4 5
8