Skip to main content

Questions tagged [fsck]

tool for file system check

Filter by
Sorted by
Tagged with
388 votes
7 answers
981k views

fsck error on boot: /dev/sda6: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY

I dual boot Ubuntu and Windows 7. I was browsing on FireFox in Ubuntu and all of a sudden I get some error message, so I rebooted. Now when I try to boot into Ubuntu I get this message: fsck from ...
Jordy's user avatar
  • 3,981
138 votes
4 answers
392k views

How to repair a corrupted FAT32 file system

I'm using the FAT32 file system for my pen drive. It frequently has file/data corruptions. In Windows, I used the scan disk utility to fix the FAT32/NTFS file systems. How can I do this in Ubuntu?
Chalitha's user avatar
  • 1,383
123 votes
12 answers
640k views

Fix corrupt NTFS partition without Windows

MY NTFS Partition has gotten corrupt somehow (it's a relic from the days when I had Windows installed). I'm putting the debug output of fdisk and blkid here. At the same time, any OS is unable to ...
Nemo's user avatar
  • 9,500
97 votes
16 answers
432k views

"Welcome to emergency mode!" Think it is a fsck problem

My computer booted to a black screen with this error message. Welcome to emergency mode! After logging in,type "journalctl -xb" to view system logs, "systemctl reboot" to reboot, "systemctl ...
Kim André's user avatar
  • 1,175
52 votes
7 answers
59k views

Where are fsck results logged at boot time, after /forcefsck?

When working remotely, I set a server to force an fsck at boot time with the command: sudo touch /forcefsck and rebooted. After it restarted, I checked in /var/log/fsck for the results of the disk ...
Bart Silverstrim's user avatar
46 votes
1 answer
113k views

/dev/sda1 contains a file system with errors, check forced [duplicate]

After booting into Ubuntu this shows up /dev/sda1 contains a file system with errors, check forced. Inodes that were part of a corrupted orphan linked list found. /dev/sda1: UNEXPECTED ...
Jatin Thakur's user avatar
36 votes
9 answers
151k views

fsck can't find fsck.ntfs

On several machines that I've upgraded from Natty to Oneiric, I get an error every boot (one for every NTFS partition): Serious errors were found while checking the disk drive for /windows/c. Press ...
Scott Severance's user avatar
34 votes
1 answer
20k views

What's lost+found and where did it come from?

I reformatted a hard drive to ext4, planning to use it as a backup drive. After mounting the freshly-formatted drive, I discovered a single empty directory inside it: lost+found. What's the purpose of ...
Evan Kroske's user avatar
  • 2,058
33 votes
4 answers
419k views

How to fix the hard-drive Bad Sector

I tried to fix my hard drive using Ubuntu but I encountered an error message and didn't know how to proceed. I need to fix my bad sectors fsck /dev/sdb fsck from util-linux 2.20.1 e2fsck 1.42.5 (...
user122095's user avatar
33 votes
6 answers
227k views

e2fsck: Cannot continue, aborting

I got this output: fsck from util-linux 2.20.1 e2fsck 1.42.9 (4-Feb-2014) /dev/mapper/ubuntu--vg-root is mounted. e2fsck: Cannot continue, aborting. after I used the fsck command. Any answers?
Shew Jia Hao's user avatar
27 votes
3 answers
54k views

/dev/sda1: Inodes that were part of a corrupted orphan linked list found

I was using my Ubuntu 2015.04 (with ecryptfs-encrypted user home) laptop normally when suddenly, the hard drive became read-only. I rebooted and now it is stuck on this: [ 0.703206] ACPI PCC ...
Nicolas Raoul's user avatar
26 votes
4 answers
37k views

How do I find out if there will be a fsck during the next boot?

Is there a way to find out if a filesystem check is scheduled for the next boot? Maybe it's similar to a forced check, which gets triggered by the existence of the file /forcefsck?
htorque's user avatar
  • 65.1k
24 votes
6 answers
96k views

Force fsck.ext4 on reboot, but really "forceful"

One of my Ubuntu 10.04 servers is giving me trouble. When I run fsck.ext4 -n /dev/sda5 it tells me there are errors in the free inode count, free block count, and more. I have tried: touch /...
UrkoM's user avatar
  • 1,365
24 votes
3 answers
31k views

Persistent "disk will be checked..." in the message of the day (motd) even after reboot

I see that there are some other threads that mention this error, but I have tried the solutions with no luck. When I log into my 12.04 Server, I get the message: /dev/sdb1 will be checked for errors ...
dpbklyn's user avatar
  • 855
23 votes
3 answers
43k views

How can I make fsck run non-interactively at boot time?

I have a headless Ubuntu 12.04 server in a datacenter 1500 miles away. Twice now on reboot the system decided it had to fsck. Unfortunately Ubuntu ran fsck in interactive mode, so I had to ask someone ...
Nelson's user avatar
  • 706
22 votes
4 answers
42k views

My Ubuntu is running fsck on every bootup

On every bootup it's the same: /dev/sda1: clean, 908443/38690816 files, 44176803/154733312 blocks Is it some kind of option Ubuntu uses to ensure filesystem consistency or is there something wrong ...
s3lph's user avatar
  • 14.4k
22 votes
2 answers
222k views

Recover from a corrupted filesystem when fsck do not help

Something went wrong with my filesystem, Ubuntu set it to read-only and now under Ubuntu Live Disc, fsck can't fix it. I'm running 13.04 and it won't boot - at startup, it just shows the grub rescue ...
Adam's user avatar
  • 1,101
20 votes
7 answers
177k views

How to fix read-only file-system on 18.04

Today, after several uninterrupted weeks of happily using my Ubuntu machine again, I ran into another error, this time just after okaying a typical software update. Instead of giving me a successful ...
Kaleb's user avatar
  • 223
20 votes
2 answers
79k views

Trying to repair LVM disk with fsck

I'm on Ubuntu 16, and I'm trying to repair my startup disk. I have followed the instructions here, but once I'm at the root access of Recovery mode, it still says that the disk is mounted and it can't ...
benwiggy's user avatar
  • 253
19 votes
3 answers
42k views

How to force fsck on reboot for Ubuntu 20.04

I am running Ubuntu 20.04 on an embedded device. I will like to ask how to force automatic fsck on bootup? In older Ubuntu versions, this can be achieved by editing the /etc/default/rcS and setting ...
ablan's user avatar
  • 305
18 votes
3 answers
79k views

How to use fsck in Ubuntu?

I intend to use fsck for checking my Linux partition of the main disk, because its file system is suspicious of being not unmounted cleanly by shutting down the system. I have searched in my ...
Tomáš Pečený's user avatar
16 votes
4 answers
150k views

How to delete/edit files from readonly filesystem

I am having problem with my memory device (actually a memory card that act external memory device like pendrive). experimentx@workmateX:/var/www/zendtest$ sudo rm /media/A88F-8788/python-2.7.1-...
S L's user avatar
  • 1,919
15 votes
1 answer
50k views

Can I run fsck or e2fsck when Linux file system is mounted?

I mean I'm already here right. If not, why?
wojox's user avatar
  • 11.5k
14 votes
1 answer
40k views

How do I do a manual fsck?

My pc doesn't want to start saying: /dev/mmcblk0p2p cointais a file system with errors, check forced. Inodes that were part of a corrupted orphan linked list found. /dev/mmcblk0p2: UNEXPECTED ...
Rizio A.'s user avatar
  • 611
14 votes
3 answers
17k views

Fsck gets mad when the file system is mounted

When I run fsck -fy in a terminal it says something similar to: WARNING!! FILE SYSTEM MOUNTED!! You will cause seviere damages. Why is that? This might be a little off-topic but I ran that ...
alexyorke's user avatar
  • 3,599
13 votes
2 answers
52k views

How to check a mounted filesystem for errors in a reliable way

Following this question: Force fsck.ext4 on reboot, but really "forceful" Apparently the output of e2fsck -n is not reliable when you use it on a mounted filesystem, so its output should ...
UrkoM's user avatar
  • 1,365
12 votes
1 answer
19k views

Automatically force fsck -fy when encountering "UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY."

I have FSCKFIX=yes in /etc/default/rcS, however, when I drove down to the site and connected a monitor to this server today, I saw this: I ran fsck.ext4 -fy /dev/sda1 and rebooted and now the server ...
Roman Gaufman's user avatar
12 votes
2 answers
35k views

FSCK reports that filesystem still has errors [duplicate]

I'm learning a little about fsck on the fly, but what I am finding so far doesn't seem to do very much when I apply it. What would be the next step from this prompt to repair the errors I am having ...
Cssulliv's user avatar
  • 121
12 votes
2 answers
38k views

fsck e2fsck: Cannot continue, aborting [duplicate]

When I tried to run fsck on Ubuntu 18.04 recovery-mode I got the following message. Can anyone tell me why? /lib/recocery-mode/recovery-menu: line 80: /etc/default/rcS: No such file or directory fsck ...
William Mills's user avatar
11 votes
1 answer
12k views

Main differences between fsck and chkdsk?

What are the important differences between fsck and chkdsk, and which command will reduce and correct the most hard disk errors?
Raja G's user avatar
  • 103k
11 votes
2 answers
8k views

Undeletable directory in lost+found

How can I delete this directory? I did fsck and it has found some garbage, I looked through these files and there wasn't something important. So I've tried to delete the contents of /lost+found and ...
Grief's user avatar
  • 483
11 votes
1 answer
74k views

I'm running fsck and getting "ext2fs_open2: Bad magic number in super-block"

I'm running: fsck -n /dev/sdb2 and I'm getting: fsck from util-linux 2.31.1 e2fsck 1.44.1 (24-Mar-2018) ext2fs_open2: Bad magic number in super-block fsck.ext2: Superblock invalid, trying backup ...
BlueSkies's user avatar
  • 2,175
9 votes
3 answers
13k views

File system has become read-only after updating to 15.04?

I stupidly decided to update from 14.04LTS to 14.10 and then 15.04. Since doing that, my website has gone down and file system has become read only. I have no idea what has gone wrong, as the updates ...
Lewis Lebentz's user avatar
9 votes
3 answers
9k views

How can I get rid of the motd message "*** /dev/sdb1 will be checked for errors at next reboot ***"? [duplicate]

My motd persistently has: *** /dev/sdb1 will be checked for errors at next reboot *** The problem is that I don't have /dev/sdb1 on my system. I only have /dev/sdb2 (mouted as /) and /dev/sda1 ...
kmm's user avatar
  • 189
9 votes
4 answers
19k views

Ubuntu stuck on boot, won't get past fsck!

This is the second time this has happened. I have disabled mouse acceleration on Ubuntu by following these instructions. Immediately after that I tried to log out but the system got hung at the fsck ...
Lucas D'Abate's user avatar
9 votes
2 answers
4k views

Black screen during boot after TTY1 login

I've got a weeks-young install of 13.04 (3.8.0.29) and the computer has been powered on for a week. I turned it off for the night and now it freezes during boot. I have already checked this ...
Torben Gundtofte-Bruun's user avatar
9 votes
1 answer
11k views

Why does my root filesystem keep becoming read-only?

I've lately been having an issue with my root filesystem becoming readonly. It happens some amount of time after boot. I don't know exactly when it happens, as I don't usually notice it until ...
Scott Severance's user avatar
8 votes
1 answer
15k views

How to disable fsck run on Ubuntu 16.04 boot?

FSCK is running every boot on Ubuntu 16.04. How can I prevent this from happening? I've searched boot parameters and don't see any parameter setting this to be run on boot. Also, there is no /...
Thiago Rider Augusto's user avatar
8 votes
1 answer
13k views

How can I safely fsck my root partition?

There's a new problem in 18.04 and later. I just discovered that the way I've always used fsck at the root access in recovery mode no longer works. It used to be fsck -f /, but now it tells me that ...
heynnema's user avatar
  • 71.3k
8 votes
2 answers
2k views

Is my boot process normal? It takes 50 seconds boot

Here's my boot.log resume: libgcrypt version: 1.5.0 fsck from util-linux 2.19.1 fsck from util-linux 2.19.1 fsck from util-linux 2.19.1 /dev/sda5: clean, 668102/3276800 files, 4449436/13107200 blocks ...
Muneeb's user avatar
  • 233
7 votes
2 answers
25k views

Force fsck safe?

My ubuntu system just froze, and I was forced to run the REIUSB commands. Now, in windows, you can run chdsk. I've read about "touch /forcefsck", but I have also read that's is dangerous to check a ...
DevRandom's user avatar
  • 404
7 votes
3 answers
10k views

Fsck on every bootup, slow bootup, moved /

Today I started experiencing an annoying issue. When I boot to Ubuntu 15.04, it runs fsck on one disk every time. I've located the cause to this problem on my /home partition, which is located at /dev/...
ollpu's user avatar
  • 259
7 votes
1 answer
585 views

Why does Ubuntu start file checking on every reboot?

I have disks with UUID in the below; pc@User:~$ sudo blkid | grep UUID= /dev/sda2: UUID="1337da3f-187f-4d2a-b3d9-a6997bba783b" TYPE="ext4" PARTUUID="3bb046df-4be2-4148-a039-...
Bahtiyar Bayram's user avatar
7 votes
1 answer
8k views

fsck shows ext4 file system errors, but only when booting from system partition

I'm having a problem with my ext4 system partition. I'm running 17.04 (upgraded from 16.10), but the problem was already present in 16.10. Occasionally (most commonly after waking the system from ...
Maeher's user avatar
  • 173
7 votes
2 answers
40k views

how to do I force-yes on fsck

I have bunch of headless ubuntu server instruments. When various hardware changes happen sometimes we get this error. I'm guessing it was a motherboard replacement that had a slightly different RTC ...
richmb's user avatar
  • 173
7 votes
4 answers
26k views

Stuck at fsck "/dev/sda1: clean xxx/xxx files [...] " after upgrade to Ubuntu 16 from 14

I've updated my Ubuntu distro, and since then everytime I boot the system I am stuck at the fsck screen /dev/sda1: clean xxx/xxx files, xxx/xxx blocks I`ve already trying accessing tty and ...
GennSev's user avatar
  • 181
7 votes
1 answer
36k views

cannot remount /dev/sda2 read-write, is write-protected [duplicate]

I'm using ubuntu 16.04LTS on intel Core i3-6006U, 2.0GHz Asus pc.When I boot the pc I realized that there are some hard drive problems and it's not able to boot on ubuntu. I tried the answer mentioned ...
Slim's user avatar
  • 255
6 votes
2 answers
9k views

Superblock set in the future, fixing system clock

I keep getting errors messages about my Superblock mount time being in the future, and insisting on doing fsck on every boot and I have to go in from the recovery options to do this every time. Here ...
Bob R's user avatar
  • 203
6 votes
2 answers
5k views

dosfsck "Unable to create unique name"

I have an Archos 605 media player that seems to have become corrupted, so I'm trying to run fsck on it. It mounts as a FAT32 hard drive, so I ran sudo dosfsck -a and this is what I got: ...
Morgan May's user avatar
6 votes
1 answer
21k views

Help with corrupted NTFS partition

My Ubuntu isn't able to mount a partition. It suddenly became unreadable because of a corrupt Master File Table. chkdsk /f is unable to correct it, saying: Windows will now check the disk. Corrupt ...
virilo's user avatar
  • 181

1
2 3 4 5
11