Fsck failed with error code 4

During boot my laptop says: fsck died with status code 4 The man page tells me: The exit code returned by fsck is the sum of the following conditions: [..] 4 - File system errors left uncorrec...

During boot my laptop says:

fsck died with status code 4

The man page tells me:

The exit code returned by fsck is the sum of the following conditions:

[..]

4 — File system errors left uncorrected

When I try to repair the errors as root, fsck says that my disk is clean:

$ fsck /dev/sda1
/dev/sda1, clean [and some things about available blocks]

How can I repair my disk?

Community's user avatar

asked Jan 4, 2014 at 20:02

OrangeTux's user avatar

4

Try the -y option.

From fsck manual:

-y For some filesystem-specific checkers, the -y option will cause the fs-specific fsck to always attempt to fix any detected filesystem corruption automatically. Some- times an expert may be able to do better driving the fsck manually. Note that not all filesystem-specific checkers implement this option. In particular fsck.minix(8) and fsck.cramfs(8) does not support the -y option as of this writing.

Community's user avatar

answered Jan 6, 2014 at 20:17

Ketan Maheshwari's user avatar

Ketan MaheshwariKetan Maheshwari

8,8446 gold badges39 silver badges53 bronze badges

Sometimes fsck shows that a filesystem has no errors, but in reality it has. I had a similar issue once, and if you want to check that filesystem, you have to use force. I’m not sure what type of a filesystem you’re using, but let’s assume it’s ext4:

Emergency help:
 -p                   Automatic repair (no questions)
 -n                   Make no changes to the filesystem
 -y                   Assume "yes" to all questions
 -c                   Check for bad blocks and add them to the badblock list
 -f                   Force checking even if filesystem is marked clean
 -v                   Be verbose
 -b superblock        Use alternative superblock
 -B blocksize         Force blocksize when looking for superblock
 -j external_journal  Set location of the external journal
 -l bad_blocks_file   Add to badblocks list
 -L bad_blocks_file   Set badblocks list

So, the line you need is:

# fsck.ext4 -pvf /dev/sda1

answered Jan 5, 2014 at 6:02

Mikhail Morfikov's user avatar

Mikhail MorfikovMikhail Morfikov

10.1k19 gold badges68 silver badges101 bronze badges

1

Содержание

  1. Ошибка при загрузке, кратко: fsck что-то находит, но при загрузке всё-равно exit status 4
  2. Исправляем ошибку: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY
  3. Предварительные действия
  4. Решение проблемы
  5. fsck died with status code 4
  6. 2 Answers 2
  7. Related
  8. Hot Network Questions
  9. Subscribe to RSS
  10. Debian User Forums
  11. (warning). fsck died with exit status 4 failed! (code 4).
  12. (warning). fsck died with exit status 4 failed! (code 4).
  13. Re: (warning). fsck died with exit status 4 failed! (code 4)
  14. Re: (warning). fsck died with exit status 4 failed! (code 4)
  15. Re: (warning). fsck died with exit status 4 failed! (code 4)
  16. Re: (warning). fsck died with exit status 4 failed! (code 4)
  17. Re: (warning). fsck died with exit status 4 failed! (code 4)
  18. Re: (warning). fsck died with exit status 4 failed! (code 4)
  19. Re: (warning). fsck died with exit status 4 failed! (code 4)
  20. Re: (warning). fsck died with exit status 4 failed! (code 4)
  21. Re: (warning). fsck died with exit status 4 failed! (code 4)
  22. Re: (warning). fsck died with exit status 4 failed! (code 4)
  23. Re: (warning). fsck died with exit status 4 failed! (code 4)
  24. Re: (warning). fsck died with exit status 4 failed! (code 4)
  25. Re: (warning). fsck died with exit status 4 failed! (code 4)
  26. Re: (warning). fsck died with exit status 4 failed! (code 4)
  27. Re: (warning). fsck died with exit status 4 failed! (code 4)
  28. Re: (warning). fsck died with exit status 4 failed! (code 4)
  29. Re: (warning). fsck died with exit status 4 failed! (code 4)
  30. Re: (warning). fsck died with exit status 4 failed! (code 4)
  31. Centos fsck failed with error code 4 | How to Fix
  32. How to fix Centos fsck failed with error code 4
  33. Method 1:
  34. Method 2: If you cannot boot into another Linux.
  35. Conclusion
  36. PREVENT YOUR SERVER FROM CRASHING!

Ошибка при загрузке, кратко: fsck что-то находит, но при загрузке всё-равно exit status 4

При загрузке выдаёт:

/dev/sdb1: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY
(i.e. without -a or -p options)
fsck died with exit status 4
failed (code 4)

Гружусь с kubuntu liveCD, там выполняю sudo fsck -fcyv /dev/sdb1
На всякий случай привожу всё, что выводится:

$ sudo fsck -fcyv /dev/sdb1

fsck 1.41.4 (27-Jan-2009)
e2fsck 1.41.4 (27-Jan-2009)
Checking for bad blocks (read-only test): done
/dev/sdb1: Updating bad block inode.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information

/dev/sdb1: ***** FILE SYSTEM WAS MODIFIED *****

94139 inodes used (17.29%)
1561 non-contiguous files (1.7%)
92 non-contiguous directories (0.1%)
# of inodes with ind/dind/tind blocks: 6978/119/0
963168 blocks used (44.25%)
0 bad blocks
1 large file

81193 regular files
7905 directories
55 character device files
25 block device files
2 fifos
405 links
4933 symbolic links (4736 fast symbolic links)
17 sockets
———
94535 files

Причём FILE SYSTEM каждый раз WAS MODIFIED 🙂
Собственно, далее идёт ребут, нифига хорошего не происходит.. 🙁 Система в том же состоянии.

Источник

Исправляем ошибку: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY

Недавно столкнулся с ситуацией, когда сервер, работающий под Ubuntu перестал загружаться, просто зависал на сообщении random: crng init done
Далее я попытался загрузиться в Recovery Mode и увидел вот такую ошибку:

/dev/sda1: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.

Полностью ее текст выглядел так:

fsck from util-linux 2.26.2
/dev/sda1 contains a file system with errors, check forced.
/dev/sda1: Inodes that were part of a corrupted orphan linked list found.
/dev/sda1: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
(i.e., without -a or -p options)
fsck exited with status code 4
The root filesystem on /dev/sda1 requires a manual fsck
Busybox v1.22.1 (Ubuntu 1:1.22.0-15ubuntu1) built in shell (ash)
Enter ‘help’ for a list of built-in commands.
(initramfs) _

Предварительные действия

Хорошим решением будет перед следующим пунктом — сделать клон диска с данными (например с помощью clonezilla live cd), чтобы в случае, если команда fsck отработает неверно — иметь возможность их как-нибудь восстановить. И осуществлять все описание ниже действия уже с клонированным диском, чтобы с случае проблем, просто вернуть на место старый диск или же передать его тому, кто сможет восстановить данные.

Решение проблемы

Как видно из текста ошибки, проблема в том, что команд fsck не смогла корректно отработать в автоматическом режиме. Для устранения ошибки, необходимо запустить эту команду в ручном режиме. Для этого в консоли набираем:

/dev/sda1 — это тот раздел, проблемы с которым показаны в тексте ошибки «The root filesystem on /dev/sda1 requires a manual fsck»
После запуска этой команды, будут выводится различные предложения с исправлением обнаруженных ошибок, на каждом пункте необходимо будет нажать клавишу y на клавиатуре. Либо один раз нажать клавишу a и тогда все обнаруженные ошибки будут автоматически исправлены. После окончания работы fsck, необходимо попробовать перезагрузить компьютер и проверить, что ошибок больше нет и все функционирует как следует.

Источник

fsck died with status code 4

During boot my laptop says:

The man page tells me:

The exit code returned by fsck is the sum of the following conditions:

4 — File system errors left uncorrected

When I try to repair the errors as root, fsck says that my disk is clean:

How can I repair my disk?

2 Answers 2

Try the -y option.

-y For some filesystem-specific checkers, the -y option will cause the fs-specific fsck to always attempt to fix any detected filesystem corruption automatically. Some- times an expert may be able to do better driving the fsck manually. Note that not all filesystem-specific checkers implement this option. In particular fsck.minix(8) and fsck.cramfs(8) does not support the -y option as of this writing.

Sometimes fsck shows that a filesystem has no errors, but in reality it has. I had a similar issue once, and if you want to check that filesystem, you have to use force. I’m not sure what type of a filesystem you’re using, but let’s assume it’s ext4:

So, the line you need is:

Hot Network Questions

To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

Site design / logo © 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA . rev 2023.1.14.43159

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.

Источник

Debian User Forums

(warning). fsck died with exit status 4 failed! (code 4).

(warning). fsck died with exit status 4 failed! (code 4).

#1 Post by TSerzhO_ » 2013-02-19 10:36

First of all, I want to apologize for two things:
1) I am completely noob in Linux and know just nothing at all.
2) My English is very poor; I can read, but to speak, compose and write, express my minds and my thoughts is just hard for me; my mother tongue is Ukrainian.
For that I’m sorry.
So, I will try to maximally use my vocabulary to get You could to understand what I’m saying about. And also to provide You as much the details as I only can.

My system has stopped to boot at all.

Re: (warning). fsck died with exit status 4 failed! (code 4)

#2 Post by TSerzhO_ » 2013-02-19 10:45

Re: (warning). fsck died with exit status 4 failed! (code 4)

#3 Post by dilberts_left_nut » 2013-02-19 10:49

First, don’t apologise for your language, your english is better than my ukranian (but it is good to know)

The filesystem on your root partition needs fixing before it will boot.
enter the root password then run

Re: (warning). fsck died with exit status 4 failed! (code 4)

#4 Post by michapma » 2013-02-19 11:04

Secondly, don’t apologize for being a noob, it’s impossible to start as a guru. You did a good job of describing your problem and providing enough information for someone to provide help.

These forums might be a good place to learn both technical and creative English.

Re: (warning). fsck died with exit status 4 failed! (code 4)

#5 Post by TSerzhO_ » 2013-02-19 11:06

Thanks, dilberts_left_nut. If You ever need a language help (Ukrainian or russian), then I am here for You. And here too.

So, about my debian problem.
I were trying to type my root password in that moment (where is a «_» symbol: <

>), but then I’ve got nothing. Unfortunately, I’m not at home right now and can’t to tell You, what actually happens exactly.

Ctrl+D — all just the same.

Re: (warning). fsck died with exit status 4 failed! (code 4)

#6 Post by dilberts_left_nut » 2013-02-19 11:09

Re: (warning). fsck died with exit status 4 failed! (code 4)

#7 Post by TSerzhO_ » 2013-02-19 11:12

Re: (warning). fsck died with exit status 4 failed! (code 4)

#8 Post by TSerzhO_ » 2013-02-19 11:20

Re: (warning). fsck died with exit status 4 failed! (code 4)

#9 Post by michapma » 2013-02-19 14:54

When you’re entering your message, at the bottom is an area with two tabs: «Options» and «Upload attachment.» Use the second one. Otherwise, you can host the image online using a free site of your choice.

Re: (warning). fsck died with exit status 4 failed! (code 4)

#10 Post by TSerzhO_ » 2013-02-27 14:56

Sorry, guys, for my reply back are takes so long.
I’m just wanted to say ‘a ‘BiG THANK You» to dilberts_left_nut for help. I did all like You said, and my debian now works again. Thank You a lot.
I have and another big problems, but maybe will post it latter, and hope that You could to help me with it too.
Thanks again.

And 2 michapma
Like I said, when I did all the same like You describes, then I’ve got an error message.

Re: (warning). fsck died with exit status 4 failed! (code 4)

#11 Post by llivv » 2013-02-27 15:27

to use the img tags to post an image you first have to post the image at an image hosting site.
here are links to a few free image hosting sites.
http://imgboat.com/
http://imgsrc.ru/
http://freeimagehosting.net/
http://postimage.org/
http://tinypic.com/
http://imageshack.eu

It may take a few tries to figure out how to link to your images,
but most free image hosting sites give Forum url’s
after you post the image so you can copy and paste the images «Forum url»
into your forum post.

Re: (warning). fsck died with exit status 4 failed! (code 4)

#12 Post by prabhu » 2015-02-04 09:34

I not able to give root passowrd to enter to maintaince mode.

Please help me to fix this please ASAP.

Re: (warning). fsck died with exit status 4 failed! (code 4)

#13 Post by Head_on_a_Stick » 2015-02-04 10:24

prabhu wrote: Dear All,

I not able to give root passowrd to enter to maintaince mode.

Please help me to fix this please ASAP.

Please start a new thread for your problem — be sure to give it a descriptive title both to attract the attention of users who know about the subject and also to help users who have the same problem and are searching for a solution.

Also, read this post to increase your chances of getting help:
http://forums.debian.net/viewtopic.php?p=550848

Re: (warning). fsck died with exit status 4 failed! (code 4)

#14 Post by prabhu » 2015-02-04 12:31

i have the problem similar to mr TSerzhO_

but i not able to provide the root password/

Re: (warning). fsck died with exit status 4 failed! (code 4)

#15 Post by Head_on_a_Stick » 2015-02-04 12:48

Re: (warning). fsck died with exit status 4 failed! (code 4)

#16 Post by prabhu » 2015-02-04 15:57

Thanks for the update,

Its promoting for root password, but from vcenter we are not able to provide the root password.

Is there any other option to fix the issue?

This server is hosted on the EXSi VM server

Re: (warning). fsck died with exit status 4 failed! (code 4)

#17 Post by prabhu » 2015-02-04 16:45

Thanks, i am not able to provide the root password from vcenter server.

Re: (warning). fsck died with exit status 4 failed! (code 4)

#18 Post by mahboobehd » 2016-01-27 23:05

I have the same problem, but when I run fsck /dev/sda1, I get this message:
«Error reading block 5539406 (Attempt to read block from filesystem resulted in short read) while reading indirect blocks of inode 1376394. Ignore error ?»

I am running debian_squeeze_i386_desktop.qcow2, and it was working properly before I tried to make a bridge between host system and qemu.

Thank you in advace for the help,
Mahboobeh

Re: (warning). fsck died with exit status 4 failed! (code 4)

#19 Post by kiyop » 2016-01-28 11:23

mahboobehd wrote: but when I run fsck /dev/sda1, I get this message:
«Error reading block 5539406 (Attempt to read block from filesystem resulted in short read) while reading indirect blocks of inode 1376394. Ignore error ?»

I am running debian_squeeze_i386_desktop.qcow2, and it was working properly before I tried to make a bridge between host system and qemu.

Your debian_squeeze is booting as the host system, isn’t it?

I wonder if /dev/sda1 has bad sector(s).
I suggest you backing-up important data to a safe place such as a partition in an USB media (removable media).
Can you unmount /dev/sda1?
After backing up all the important data, unmount the partition which contains the copied data, and remove the USB media. Then, you can check /dev/sda1 like

Источник

Centos fsck failed with error code 4 | How to Fix

by Ashwini BS | Nov 21, 2022

Let’s have closer look at how to resolve Centos fsck failed with error code 4, with help of Server management support services. We Bobcares respond with details to all your queries no matter how minor.

How to fix Centos fsck failed with error code 4

In this case /dev/sda2 is my root partition and since it’s mounted even in maintenance mode, attempting to run fsck on it would output:

Running fsck on a mounted file system will most damage to it.

Method 1:

Your best option simply is to boot into another Linux as a different partition. Run fsck manually on the faulty partition. This can easily unmount because no OS is using it.

Method 2: If you cannot boot into another Linux.

Run fsck in dry-run mode. Next pipe the output to make reading more practical:

From there, there will be no critical files damaged and it’s always a gamble to use a corrupted file system. Next proceed to boot for the system to make some backups. Forcing the system to boot, by creating a file named forcefsck and writing “Y” to it. echo y > /forcefsck.

At root no longer works and adding fsck.mode=force on the kernel command line, did not fix the problem as fsck will not fix errors without authorization. ie: if someone enters Yes on the keyboard.

Further, it is possible to fix errors on a read-only file system which can also be used to boot into. Here is the technique:

  • Put the root partition into read-only mode. This can be done by modifying the faulty partition’s line on /etc/fstab. But remember your old settings:
  • If you’re already in maintenance mode. You may able to remount your file system in read-only mode by running “mount -o remount,ro /” and skipping the reboot.
  • Switch to run level1 to minimize the amount of interfering processes. You can skip this step if you’re running the session over SSH: init 1
  • Fix the file system by replacing /dev/sda2 with the partition’s device, this should now work. Because the root partition will be in read-only: fsck /dev/sda2.
  • Make the root file system readable/writable: mount -o remount,rw /dev/sda2
  • Restore your /etc/fstab to its original state.

[Looking for a solution to another query? We are just a click away.]

Conclusion

To sum up, your system is now safe to use again. If errors keep occurring, it’s probably a sign that your hard drive is failing and before you lose it completely. You should copy your data to a new one.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

Источник


Linux, Ubuntu

  • 14.06.2019
  • 49 627
  • 52
  • 29.05.2020
  • 266
  • 263
  • 3

Исправляем ошибку: UNEXPECTED INCONSISTENCY RUN fsck MANUALLY

  • Содержание статьи
    • Предварительные действия
    • Решение проблемы
    • Комментарии к статье ( 52 шт )
    • Добавить комментарий

Недавно столкнулся с ситуацией, когда сервер, работающий под Ubuntu перестал загружаться, просто зависал на сообщении random: crng init done
Далее я попытался загрузиться в Recovery Mode и увидел вот такую ошибку:

/dev/sda1: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.

Полностью ее текст выглядел так:

fsck from util-linux 2.26.2
/dev/sda1 contains a file system with errors, check forced.
/dev/sda1: Inodes that were part of a corrupted orphan linked list found.
/dev/sda1: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
(i.e., without -a or -p options)
fsck exited with status code 4
The root filesystem on /dev/sda1 requires a manual fsck
Busybox v1.22.1 (Ubuntu 1:1.22.0-15ubuntu1) built in shell (ash)
Enter ‘help’ for a list of built-in commands.
(initramfs) _

Предварительные действия

Хорошим решением будет перед следующим пунктом — сделать клон диска с данными (например с помощью clonezilla live cd), чтобы в случае, если команда fsck отработает неверно — иметь возможность их как-нибудь восстановить. И осуществлять все описание ниже действия уже с клонированным диском, чтобы с случае проблем, просто вернуть на место старый диск или же передать его тому, кто сможет восстановить данные.

Решение проблемы

Как видно из текста ошибки, проблема в том, что команд fsck не смогла корректно отработать в автоматическом режиме. Для устранения ошибки, необходимо запустить эту команду в ручном режиме. Для этого в консоли набираем:

fsck /dev/sda1

/dev/sda1 — это тот раздел, проблемы с которым показаны в тексте ошибки «The root filesystem on /dev/sda1 requires a manual fsck»
После запуска этой команды, будут выводится различные предложения с исправлением обнаруженных ошибок, на каждом пункте необходимо будет нажать клавишу y на клавиатуре. Либо один раз нажать клавишу a и тогда все обнаруженные ошибки будут автоматически исправлены. После окончания работы fsck, необходимо попробовать перезагрузить компьютер и проверить, что ошибок больше нет и все функционирует как следует.

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 util-linux 2.26.2
/dev/sda6 contains a file system with errors, check forced.
/dev/sda6: Inodes that were part of a corrupted orphan linked list found.

/dev/sda6: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
        (i.e., without -a or -p options)
fsck exited with status code 4
The root filesystem on /dev/sda6 requires a manual fsck

Busybox v1.22.1 (Ubuntu 1:1.22.0-15ubuntu1) built in shell (ash)
Enter 'help' for a list of built-in commands.

(initramfs) _

How can I fix this?

Zanna's user avatar

Zanna

68.2k55 gold badges210 silver badges320 bronze badges

asked Nov 12, 2015 at 13:53

Jordy's user avatar

2

Try this:

fsck /dev/sda6

(where /dev/sda6 is the partition mentioned)

And enter Yes (y) to for each error. Or press a one time for always-yes.

Then reboot and it should be fine.

Zanna's user avatar

Zanna

68.2k55 gold badges210 silver badges320 bronze badges

answered Nov 12, 2015 at 14:01

Nikolay Nikolov's user avatar

Nikolay NikolovNikolay Nikolov

5,8151 gold badge13 silver badges16 bronze badges

22

I have noticed that even if you do a fsck on the disk the problem may occur again in a few days.

I have found that the problem is worse on SSD disks than the regular HDD disks. I have found some steps that may fix the problem temporarily.

fsck -fy /dev/sda1 

if sda1 is the right partition — the prompt will tell you exactly which one requires fsck.

After that if the systems boots up you may have another problem with the package management system, so if you open a terminal and type sudo apt-get update you may get an error. Do not worry. Run these commands:

sudo apt-get update
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade

My opinion is that there is serious problem in Ubuntu with regard to SSD disks. The community should fix it.

I have found a possible cause of this problem: Probably the system did not shutdown normally.

Zanna's user avatar

Zanna

68.2k55 gold badges210 silver badges320 bronze badges

answered Sep 8, 2016 at 9:44

farmuel Angel's user avatar

farmuel Angelfarmuel Angel

1,1211 gold badge7 silver badges4 bronze badges

5

UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY means there is some file system error in the disk. Run the fsck command manually. After that it will ask some more questions — just answer y and press enter and finally reboot the server.

enter image description here

answered Dec 8, 2016 at 14:13

GNK's user avatar

GNKGNK

2,7692 gold badges12 silver badges17 bronze badges

Type exit into the prompt, and it should tell you which partition has an error, e.g. /dev/sda6. Type fsck /dev/sdaX -y where X is the partition mentioned in the error. The -y flag answers yes to all the prompts it would otherwise have given you — you don’t have to use it but it is recommended. Once it has finished, type reboot into the prompt, and if prompted, select to continue normal startup.

answered May 21, 2020 at 14:29

O A's user avatar

O AO A

1581 silver badge10 bronze badges

3

fsck -y /dev/sda

eg:

fsck -y /dev/sda1
fsck -y /dev/sda2

αғsнιη's user avatar

αғsнιη

34.6k39 gold badges126 silver badges189 bronze badges

answered Jul 11, 2021 at 8:13

Amal's user avatar

AmalAmal

715 bronze badges

In (initramfs) prompt, type the command «fsck» then the path to your hard drive, for example «fsck /deb/sda2» , after add «-y» in order to accept all the fixing errors, for example «fsck /dev/sda2 -y», then the computer will check the errors on the filesystem to repair them.

answered Feb 9, 2022 at 3:56

Sir. ACHRAF SELLAM's user avatar

2

TSerzhO_

Posts: 6
Joined: 2013-02-18 13:17

(warning). fsck died with exit status 4 failed! (code 4).

#1

Post

by TSerzhO_ » 2013-02-19 10:36

First of all, I want to apologize for two things:
1) I am completely noob in Linux and know just nothing at all…
2) My English is very poor; I can read, but to speak, compose and write, express my minds and my thoughts is just hard for me; my mother tongue is Ukrainian…
For that I’m sorry…
So, I will try to maximally use my vocabulary to get You could to understand what I’m saying about… And also to provide You as much the details as I only can…

My system has stopped to boot at all…

Code: Select all

done.
Setting parameters of disc: (none).
Setting preliminary keymap...done.
Activating swap...done.
Checking root file system...fsck from util-linux-ng 2.17.2
/dev/sda1 contains a file system with errors, check forced.
Inodes that were part of a corrupted orphan linked list found.

/dev/sda1: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
        (i.e., without -a or -p options)
fsck died with exit status 4
failed (code 4).
An automatic file system check (fsck) of the root filesystem failed. A manual fsck must be performed, then the system restarted. The fsck should be performed in maintenance mode with the root filesystem mounted in read-only mode. ... failed!
The root filesystem is currently mounted in read-only mode. A maintenance shell will now be started. After performing system maintenance, press CONTROL-D to terminate the maintenance shell and restart the system. ... (warning).
Give root password for maintenance
(or type Control-D to continue): _

For now, I just don’t know what I should to do next to my system has started to work again…


TSerzhO_

Posts: 6
Joined: 2013-02-18 13:17

Re: (warning). fsck died with exit status 4 failed! (code 4)

#2

Post

by TSerzhO_ » 2013-02-19 10:45

I have a ScreenShots, but can’t to attach it, because of:

Code: Select all

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, forum-admin[at]forums[dot]debian[dot]net and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Apache Server at forums.debian.net Port 80



User avatar

michapma

Posts: 544
Joined: 2008-05-04 20:49
Location: Prague

Re: (warning). fsck died with exit status 4 failed! (code 4)

#4

Post

by michapma » 2013-02-19 11:04

Secondly, don’t apologize for being a noob, it’s impossible to start as a guru. You did a good job of describing your problem and providing enough information for someone to provide help.

These forums might be a good place to learn both technical and creative English…


TSerzhO_

Posts: 6
Joined: 2013-02-18 13:17

Re: (warning). fsck died with exit status 4 failed! (code 4)

#5

Post

by TSerzhO_ » 2013-02-19 11:06

Thanks, dilberts_left_nut… :-) If You ever need a language help (Ukrainian or russian), then I am here for You… And here too… :)

So, about my debian problem…
I were trying to type my root password in that moment (where is a «_» symbol: {

Code: Select all

...
Give root password for maintenance
(or type Control-D to continue): _

}), but then I’ve got nothing… Unfortunately, I’m not at home right now and can’t to tell You, what actually happens exactly…

Ctrl+D — all just the same…

Last edited by TSerzhO_ on 2013-02-19 11:09, edited 1 time in total.





User avatar

michapma

Posts: 544
Joined: 2008-05-04 20:49
Location: Prague

Re: (warning). fsck died with exit status 4 failed! (code 4)

#9

Post

by michapma » 2013-02-19 14:54

TSerzhO_ wrote:By the way, don’t You accidentally know, why can’t I to attach an image files onto this forum?.. Because I have an another problems with my debian too, but without attaching the screens it’s will be really hard to explain it for me…

http://forums.debian.net/faq.php#f3r3

When you’re entering your message, at the bottom is an area with two tabs: «Options» and «Upload attachment.» Use the second one. Otherwise, you can host the image online using a free site of your choice.


TSerzhO_

Posts: 6
Joined: 2013-02-18 13:17

Re: (warning). fsck died with exit status 4 failed! (code 4)

#10

Post

by TSerzhO_ » 2013-02-27 14:56

Sorry, guys, for my reply back are takes so long…
I’m just wanted to say ‘a ‘BiG THANK You» to dilberts_left_nut for help!.. I did all like You said, and my debian now works again… :-) Thank You a lot!..
I have and another big problems, but maybe will post it latter, and hope that You could to help me with it too…
Thanks again!..

And 2 michapma
Like I said, when I did all the same like You describes, then I’ve got an error message…









mahboobehd

Posts: 4
Joined: 2016-01-27 22:53

Re: (warning). fsck died with exit status 4 failed! (code 4)

#18

Post

by mahboobehd » 2016-01-27 23:05

Hi,

I have the same problem, but when I run fsck /dev/sda1, I get this message:
«Error reading block 5539406 (Attempt to read block from filesystem resulted in short read) while reading indirect blocks of inode 1376394. Ignore error<y>?»

I am running debian_squeeze_i386_desktop.qcow2, and it was working properly before I tried to make a bridge between host system and qemu.

Thank you in advace for the help,
Mahboobeh


User avatar

kiyop

Posts: 3984
Joined: 2011-05-05 15:16
Location: Where persons without desire to improve themselves fear to tread, in Japan

Re: (warning). fsck died with exit status 4 failed! (code 4)

#19

Post

by kiyop » 2016-01-28 11:23

mahboobehd wrote:I have the same problem,

Even if you have similar problem, the cause of the problem may be different.
it is better for you to start a new thread. You can link this thread in your new thread.

mahboobehd wrote:but when I run fsck /dev/sda1, I get this message:
«Error reading block 5539406 (Attempt to read block from filesystem resulted in short read) while reading indirect blocks of inode 1376394. Ignore error<y>?»

I am running debian_squeeze_i386_desktop.qcow2, and it was working properly before I tried to make a bridge between host system and qemu.

Your debian_squeeze is booting as the host system, isn’t it?

I wonder if /dev/sda1 has bad sector(s).
I suggest you backing-up important data to a safe place such as a partition in an USB media (removable media).
Can you unmount /dev/sda1?
After backing up all the important data, unmount the partition which contains the copied data, and remove the USB media. Then, you can check /dev/sda1 like

Code: Select all

umount /dev/sda1
fsck -f -y -c -c /dev/sda1

with root privilege.



Two days ago I corrupted my file system during a failed resume from standby on Fedora 19. This feature has never quite worked correctly and randomly makes the kernel panic. Usually, I hard reboot my laptop and everything is fine but that time, something went wrong and when it came back up:

systemd-fsck[605]: /dev/sda2: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
systemd-fsck[605]: (i.e., without -a or -p options)
[ 13.652068] systemd-fsck[605]: fsck failed with error code 4.
Welcome to emergency mode. Use "systemctl default" or ^D to activate default
mode.
Give root password for maintenance
(or type Control-D to continue):

In this case /dev/sda2 is my root partition and since it was mounted even in maintenance mode, attempting to run fsck on it would output:

fsck.ext4 /dev/sda2
e2fsck 1.42.7 (21-Jan-2013)
/dev/sda2 is mounted.
e2fsck: Cannot continue, aborting.

Which makes sense as common knowledge tells us that running fsck on a mounted file system will most likely do more damage to it.

The best option

Your best option is simply to boot into another Linux, be it on a different partition, a USB drive or a CD and run fsck manually on the faulty partition, which can easily be unmounted if necessary because no OS is using it. Easy. Normally yes, but my stupid Macbook Pro 2008 cannot boot though USB into anything else other than Mac OS X, my cd drive has been dead for years and recently, I got rid of my OS X partition. To make things more complicated, I’m in Thailand at the moment and obviously not able to take apart my computer to grab the hard drive and stick into a working system.

The other option (if you cannot boot into another Linux)

In order to assess the damage, I ran fsck in dry-run mode and piped the output to more to make reading more practical:

fsck.ext4 -n /dev/sda2 | more

From there, I could ensure that no critical files had been damaged and while keeping in mind that it’s always a gamble to use a corrupted file system, I proceeded to boot into the system to make some backups. That out of the way, I did some research on the web on how to fix a root file system that I had to boot into and sadly, not many things turned up for its not an ideal solution. Forcing the system to do it a boot time by creating a file named forcefsck and writing y in it (echo y > /forcefsck) at root no longer works and adding fsck.mode=force on the kernel command line did not fix the problem as fsck will not fix errors on its own without authorization, ie: someone to enter yes on the keyboard. Tried a few other tricks but none worked. I had no choice but keep my fingers crossed and use the system as is.

A few days later, I decided to get back to the issue and while researching alternative solutions, I read that it was possible to fix errors on a read-only file system, which it turns out can also be used to boot into. And it worked, so for posterity here is the technique:

  1. Put your root partition into read-only mode by modifying the faulty partition’s line on /etc/fstab (but remember your old settings):
    UUID=fd1d0fad-3a4c-457f-9b5e-eed021cce3d1 /                       ext4    remount,ro        1 1

    Note: If you’re already in maintenance mode at this point, you may be able to remount your file system in read only mode by running “mount -o remount,ro /” and skipping the reboot (thanks Jay).

  2. Reboot
  3. Switch to runlevel 1 just to minimize the amount of interfering processes (skip this step if you are running the session over SSH [thanks Josh]):
    init 1
  4. Fix your file system (replace /dev/sda2 with your partition’s device), which should now work because the root partition is in read only:
    fsck /dev/sda2
  5. Reboot
  6. Make your root file system readable/writable:
    mount -o remount,rw /dev/sda2
  7. Restore your /etc/fstab to its original state.
  8. Reboot

Voilà, your system is safe to use again. Hopefully this will have gotten you out of a sticky situation like it did for me. If errors keep coming up, it’s probably a sign that your hard-drive is failing and before you loose it completely, you should mirror your data to a new one.

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Fs1020mpf ошибка e00 08
  • Fs error rave os
  • Fs error opendir 13 на 3d принтере
  • Fs checkasyncrequest returned error for model
  • Fs check async request returned error for model

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии