Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

FSCK code 4

New to Debian (Or Linux in general)? Ask your questions here!
Message
Author
alexankius
Posts: 15
Joined: 2019-01-17 10:14

FSCK code 4

#1 Post by alexankius »

Hi all,

Have been running Debian for a year now off an SSD (that is where Debian resides).

I got an FSCK error code 4 on the root device which is /dev/sdh1

I run both all of the folloiwng

fsck /dev/sdh1
fsck -fy /dev/sdh1

but the message is that there are still errors.

When I reboot i get stuck again at the same FSCK error code....

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: FSCK code 4

#2 Post by Head_on_a_Stick »

What filesystem is on /dev/sdh1?

Code: Select all

# wipefs /dev/sdh1
deadbang

alexankius
Posts: 15
Joined: 2019-01-17 10:14

Re: FSCK code 4

#3 Post by alexankius »

Hi can i check that?

alexankius
Posts: 15
Joined: 2019-01-17 10:14

Re: FSCK code 4

#4 Post by alexankius »

wipefs does not work

alexankius
Posts: 15
Joined: 2019-01-17 10:14

Re: FSCK code 4

#5 Post by alexankius »

When I run wipefs I get

Sh: wipefs : not found

I'm at the stage were during boot I get a prompt that the root filesystem requires a manual fsck

BusyBox v1. 22

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: FSCK code 4

#6 Post by Head_on_a_Stick »

alexankius wrote:When I run wipefs I get

Sh: wipefs : not found
It's in the util-linux package and resides at /sbin/wipefs, which is not in your normal user's PATH.

EDIT: hold on, are you saying you can't boot normally and only get to a busybox prompt?
deadbang

alexankius
Posts: 15
Joined: 2019-01-17 10:14

Re: FSCK code 4

#7 Post by alexankius »

exactly, I can't boot normally.

The boot sequence is interrupted and then I get the FSCK error code 4.

When i run fsck at the end of it all i get a message that there are still problems....

So i am stuck at the BusyBox....

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: FSCK code 4

#8 Post by p.H »

Please post fsck's error messages.

alexankius
Posts: 15
Joined: 2019-01-17 10:14

Re: FSCK code 4

#9 Post by alexankius »

I've been trying to upload a few screenshots but get an apachee error:

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@forums.debian.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.

any pointers?

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: FSCK code 4

#10 Post by Head_on_a_Stick »

alexankius wrote:any pointers?
Upload the screenshots to an image sharing site and post a link here.

Try https://postimage.org if you're not dismayed by spam adverts.
deadbang


alexankius
Posts: 15
Joined: 2019-01-17 10:14

Re: FSCK code 4

#12 Post by alexankius »

IMG 230 is what happens when i boot.
IMG 248 is after i run fsck -y /dev/sdh1
IMG 302 is after i run fsck dev/sdh1
and then i Run Journal which gets me to IMG 308

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: FSCK code 4

#13 Post by p.H »

I can't access this site at the moment.


p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: FSCK code 4

#15 Post by p.H »

Nor this one. I'll have to wait until I am back home this evening.

alexankius
Posts: 15
Joined: 2019-01-17 10:14

Re: FSCK code 4

#16 Post by alexankius »

It's relatively easy for me to reinstall Debian.

The issue is that I have a ZFS Pool (iSCSI SCST) that I can not lose and am not sure whether I can just import it without first exporting...

I would appreciate your feedback..

Segfault
Posts: 993
Joined: 2005-09-24 12:24
Has thanked: 5 times
Been thanked: 17 times

Re: FSCK code 4

#17 Post by Segfault »

Aren't you doing it the hard way?
I'd boot from an external media, I have a SystemRescueCD USB stick for this purpose, and diagnose and repair as needed. SysemRescueCD allows you to run GUI and post on forums, copy and paste from terminal window, no need for clumsy images. If you need to know what filesystem is in your device use 'file -s /dev/sdh1".

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: FSCK code 4

#18 Post by p.H »

Looks like a defective disk or SATA link.

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: FSCK code 4

#19 Post by bw123 »

I usually use kernel parameter fsck.mode=force appended to grub 'linux' line to check root device. Sometimes checks are skipped if the journal says the fs is clean.

Are you sure the fs you are checking is the bad one? Try fsck on them all. Maybe make sure you have a decent backup though before doing too much. Use a live system is a good idea.

Is it possible the fs is full? or if you don't have recovery usb/cd can you run any other commands from busybox that might help gather more information? Do a websearch and read a lot before doing possibly destructive things. On a rescue media like systemrescueCD, tune2fs -l would be the first thing I'd look at.

Also check Manual page fsck.ext4(8) for the -p option, and -v flag to gather more info.
resigned by AI ChatGPT

User avatar
llivv
Posts: 5340
Joined: 2007-02-14 18:10
Location: cold storage

Re: FSCK code 4

#20 Post by llivv »

the flush cache error on ssd is a bugger.... live boot or install to another disk
if possible so you have a full system to check the disk with.
It would be great if you could recover the ssd and document it here.
Although what I'm seeing seems to point to disk failure.
And I can't find much regarding the flush cache error.

Also get the make and model of the ssd and see if it includes hardware trim.
Or post the ssd make and model here.
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.

Post Reply