Questions tagged [fsck]
fsck - check and optionally repair a file system.
346
questions
0
votes
0
answers
17
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 ...
0
votes
0
answers
27
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
0
votes
0
answers
37
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 ...
-9
votes
1
answer
92
views
Linux Kali Debian initramfs due to disk inconsistency [closed]
When i started UTM (Virtual Box) it opened BusyBox with (inittramfs)
0
votes
0
answers
55
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 ...
0
votes
1
answer
679
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
...
0
votes
1
answer
98
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 ...
0
votes
0
answers
16
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 ...
0
votes
2
answers
131
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 ...
1
vote
0
answers
88
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,...
1
vote
0
answers
251
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 ...
1
vote
1
answer
107
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/...
0
votes
1
answer
155
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 ...
0
votes
0
answers
73
views
Trying to recover my Ubuntu VM. initramfs prompt
Last time I used my ubuntu VM, it didn't shut down properly.
Now the VM is no more booting up properly.
Booting it with default setting gives journal errors (sorry I'm not able to have captures)
...
1
vote
0
answers
106
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 ...
0
votes
0
answers
66
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 ...
1
vote
1
answer
94
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: ...
0
votes
0
answers
71
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....
2
votes
1
answer
233
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\...
1
vote
1
answer
512
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 ...
-1
votes
1
answer
1k
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 ...
0
votes
0
answers
292
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%...
0
votes
1
answer
419
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 ...
2
votes
1
answer
655
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 ...
0
votes
0
answers
362
views
Debian system unstable after force shutdown, jellyfin service won't start back
My system became unresponsive for more than 24 hours with the HDD LED on non-stop. Not sure what happened but I could not SSH to it so I had to unplug the power and start it back. I suspect some files ...
0
votes
1
answer
385
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 ...
1
vote
1
answer
484
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 ...
3
votes
1
answer
371
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 ...
1
vote
0
answers
95
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 ...
2
votes
0
answers
911
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: /...
0
votes
0
answers
166
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 ...
1
vote
1
answer
170
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 ...
1
vote
1
answer
781
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 ...
0
votes
1
answer
83
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 ...
0
votes
0
answers
232
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 !
1
vote
0
answers
292
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 ...
0
votes
1
answer
859
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,...
1
vote
0
answers
638
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 ...
0
votes
0
answers
333
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 ...
0
votes
2
answers
184
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 ...
2
votes
1
answer
945
views
Why is it necessary to run fsck regularly?
Some systems run fsck on every boot, after so many days, or after so many mounts. For example, in How often should I reboot Linux servers? - Server Fault they discuss a variety of strategies for doing ...
2
votes
2
answers
5k
views
What are common causes of ext4 file system corruption?
I'm dealing with regular corruption of an ext4 non-root filesystem holding a data cache. The cache is specifically of images cut into pieces for easier processing later.
The error in the application ...
1
vote
1
answer
1k
views
fsck.ext4 consumes all memory and gets killed
I have a probably corrupted external hard disc that I need to check for errors and fix them. I can't create any new directory on it and get the following errors:
2216505.217508] EXT4-fs (sda1): ...
0
votes
0
answers
755
views
what are the causes for "checksum does not match inode" HD problem, even if it says the inode check passed?
Root became RO after some minutes using the PC.
On reboot it required manual fsck.
Then this problem happened:
it said the inode check passed fine ok, but said this problem: "checksum does not ...
0
votes
0
answers
400
views
Boot is long because fsck.exfat spends time because exfat volume was not unmounted cleanly
I have a SDD partition in exFat in order to have a common partition between macOs and Linux Manjaro and Linux Mint.
The Manjaro boot and the Linux Mint boot are very long because fsck of exFat take ...
0
votes
0
answers
32
views
Is my old HP laptop preventing Linux from running smoothly?
I have an older HP laptop. I don't know all the specs but I believe it is a G60 notebook with a dual core intel pentium processor. It used to have Windows Vista on it. I don't remember the exact hard ...
-2
votes
2
answers
1k
views
/dev/sda2 unexpected inconsistency run fsck manually
I'm getting the following error:
/dev/sda2 unexpected inconsistency run fsck manually
The boot process stops here and there is no way to input any commands.
See this error message:
0
votes
0
answers
156
views
ERROR: too long label (226 chars). fsck
I did an fsck on exFAT, but it ends up with 19 files that can't be fix.. label too long..
I want to fix it manually, but since it didnt' report where are the files and which files are they.. how can i ...
2
votes
0
answers
564
views
Unable to run fsck on boot Archlinux
I'm running Archlinux on ODROID-N2+ with Petitboot (based on Uboot) bootloader. I followed the archlinux wiki to enable fsck on boot, but it still never runs.
I have fsck set as the last hook in ...
1
vote
1
answer
6k
views
How to run fsck on boot with BTRFS?
Although this is very similar to many closed questions, I believe this is not a duplicate, as the only answers I can find seem to be specific to ext4.
Is this possible?