Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Possibly Corrupted SSD
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
frddbbbl
n00b
n00b


Joined: 16 Jun 2019
Posts: 66

PostPosted: Wed Apr 28, 2021 9:28 am    Post subject: Reply with quote

Hi, i am a little unclear as to how i would turn my fs into read only while i was still on it, what is the process of mounting it, or do you just mean booting from the livecd?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 48147
Location: 56N 3W

PostPosted: Wed Apr 28, 2021 10:36 am    Post subject: Reply with quote

frddbbbl,

You can't do that. That's why you need a liveCD or some other boot media.

Start the alternative system, that will not use your actual install. Then you can mount your install inside it.
Just as you did when you installed Gentoo.
Don't make any partitions or filesystems. Just do the mount step. You will not even chroot into your gentoo.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
frddbbbl
n00b
n00b


Joined: 16 Jun 2019
Posts: 66

PostPosted: Wed Apr 28, 2021 11:50 am    Post subject: Reply with quote

Thanks, will reply again after the usb i have ordered arrives and i am able to back up and fsk.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 48147
Location: 56N 3W

PostPosted: Wed Apr 28, 2021 1:18 pm    Post subject: Reply with quote

frddbbbl,

Thats OK, we will still be here. Gentoo is a hobby after all. :)
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
frddbbbl
n00b
n00b


Joined: 16 Jun 2019
Posts: 66

PostPosted: Thu Apr 29, 2021 9:52 pm    Post subject: Reply with quote

NeddySeagoon wrote:
frddbbbl,

That may not be the limit of the filesystem damage.

Boot with the liveCD, or whatever your favourite boot media is.
Make a copy with dd, while the filesystem is not mounted.
Ensure dd completes. It will work with a damaged filesystem but not a faulty drive.

After dd completes, run fsck as far as the first error and report the error.
Do not let it make any changes to the filesystem at this stage.


NeddySeagoon,

I have created a backupfrom my liveUSB and ran fsk on the drive itself, and then seperatly its 4 partitions.

fsck /dev/sda returned:
Code:
Superblock invalid, trying backup blocks...


fsck /dev/sda1 returned:
Code:
ext2fs_check_desc: Corrupt group descriptor: bad block for block bitmap
Suerblock has an invalid journal (inode 8)

dev/sda2 and dev/sda3 returned no errors and /dev/sda4 returned
Code:

/dev/sda4 contains a filesystem with errors, check forced.
...
...
/dev/sda4: 569646/7258112 files (0.2% non-contiguous), 6687123/29009279 blocks


Hope this is usefull.
Cheers,
Freddie
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 48147
Location: 56N 3W

PostPosted: Fri Apr 30, 2021 8:29 am    Post subject: Reply with quote

frddbbbl,

fsck checks filesystems. The whole dirive does not contain a single filesystem, instead its partitioned and each partition may contain a filesystem.

Code:
fsck /dev/sda ...
Superblock invalid, trying backup blocks...
is OK. There is no filesystem there.

Code:
/dev/sda1
ext2fs_check_desc: Corrupt group descriptor: bad block for block bitmap
Suerblock has an invalid journal (inode 8)
looks bad. What type of filesystem is it and what in it used for?
If that's bios_boot, fsck is confused. There is no filesystem there, so its good.
If that's /boot be prepared to remake the filesystem, since it may not be fixable.
What needs to be done, depends on what type of filesystem it is and what it is used for.

Code:
/dev/sda4
/dev/sda4 contains a filesystem with errors, check forced.
...
...
/dev/sda4: 569646/7258112 files (0.2% non-contiguous), 6687123/29009279 blocks
That ran to completion but did it fix anything?
If you run
Code:
fsck -f /dev/sda4
from the boot media is it error free now?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
frddbbbl
n00b
n00b


Joined: 16 Jun 2019
Posts: 66

PostPosted: Fri Apr 30, 2021 10:52 am    Post subject: Reply with quote

NeddySeagoon wrote:
frddbbbl,

fsck checks filesystems. The whole dirive does not contain a single filesystem, instead its partitioned and each partition may contain a filesystem.

Code:
fsck /dev/sda ...
Superblock invalid, trying backup blocks...
is OK. There is no filesystem there.

Code:
/dev/sda1
ext2fs_check_desc: Corrupt group descriptor: bad block for block bitmap
Suerblock has an invalid journal (inode 8)
looks bad. What type of filesystem is it and what in it used for?
If that's bios_boot, fsck is confused. There is no filesystem there, so its good.
If that's /boot be prepared to remake the filesystem, since it may not be fixable.
What needs to be done, depends on what type of filesystem it is and what it is used for.

Code:
/dev/sda4
/dev/sda4 contains a filesystem with errors, check forced.
...
...
/dev/sda4: 569646/7258112 files (0.2% non-contiguous), 6687123/29009279 blocks
That ran to completion but did it fix anything?
If you run
Code:
fsck -f /dev/sda4
from the boot media is it error free now?


Hi, there appears to now be no errors on /dev/sda4? i ran fsk -f /dev/sda4 and it was clean. sda1 should be my bios_boot partition as /sda2 is my /boot
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 48147
Location: 56N 3W

PostPosted: Fri Apr 30, 2021 11:41 am    Post subject: Reply with quote

frddbbbl,

It looks like you are good.
The bios_boot partition does not contain a filesystem. grub uses it raw.

sda4 is your root partition.

Boot normally and see what happens.

Can you delete your browser cache now?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
frddbbbl
n00b
n00b


Joined: 16 Jun 2019
Posts: 66

PostPosted: Fri Apr 30, 2021 8:01 pm    Post subject: Reply with quote

NeddySeagoon wrote:
frddbbbl,

It looks like you are good.
The bios_boot partition does not contain a filesystem. grub uses it raw.

sda4 is your root partition.

Boot normally and see what happens.

Can you delete your browser cache now?


I can yes! not entirely sure what has changed but the errors seem to have gone now!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 48147
Location: 56N 3W

PostPosted: Fri Apr 30, 2021 8:13 pm    Post subject: Reply with quote

frddbbbl,

fsck 'fixed' your filesystem.

If fsck really got in a mess there will be lots of fragments in /lost+found
As long as its empty and everything else looks OK, you are good.

There has been no sign of any interface errors, other than in your original smatctl output so I think all is well.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
frddbbbl
n00b
n00b


Joined: 16 Jun 2019
Posts: 66

PostPosted: Sat May 01, 2021 10:52 pm    Post subject: Reply with quote

NeddySeagoon wrote:
frddbbbl,

fsck 'fixed' your filesystem.

If fsck really got in a mess there will be lots of fragments in /lost+found
As long as its empty and everything else looks OK, you are good.

There has been no sign of any interface errors, other than in your original smatctl output so I think all is well.


Hi, so the error still occurs, sometimes, on boot. it's hard for me to work out what the error is as fsck just says it has found a filesystem with errors (sda4) and then fixes it, so i cant investigate from the liveusb. Any ideas on anyother ways i could test? i cant seem to find a method that will consistently repeat the error
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 48147
Location: 56N 3W

PostPosted: Sun May 02, 2021 9:19 am    Post subject: Reply with quote

frddbbbl,

"sometimes" is bad news. As software is deterministic, there is no "sometimes".

Something corrupts the filesystem. There may be something in dmesg when it happens but even if there is, you may not ever see it.

Try not using hibernate and/or suppend to RAM. That's based on a hunch that its a shutdown thing causing the problem.
If that improves the situation, try a newer kernel.

You could also just update the kernel and see what happens. Only change one thing at a time or you won't know what actually fixed it, if its fixed.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
frddbbbl
n00b
n00b


Joined: 16 Jun 2019
Posts: 66

PostPosted: Sun May 02, 2021 8:00 pm    Post subject: Reply with quote

NeddySeagoon wrote:
frddbbbl,

"sometimes" is bad news. As software is deterministic, there is no "sometimes".

Something corrupts the filesystem. There may be something in dmesg when it happens but even if there is, you may not ever see it.

Try not using hibernate and/or suppend to RAM. That's based on a hunch that its a shutdown thing causing the problem.
If that improves the situation, try a newer kernel.

You could also just update the kernel and see what happens. Only change one thing at a time or you won't know what actually fixed it, if its fixed.


I am already on kernel 5.10.27, i updated a few weeks ago and the issue was present before then, this morning i have removed the hibernate and suspend to ram options and the issue still occurs, it appears to occur either after the laptop has been running for an extended period, or when it has been turned off for an extended period. it's hard to say which.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 48147
Location: 56N 3W

PostPosted: Sun May 02, 2021 8:06 pm    Post subject: Reply with quote

frddbbbl,

I installed kernel 5.12.0 today. I don't know if it works yet :)
After the fs corruption has happened, the filesystem will stay corrupt until its fixed.

How old is the battery and do you need the battery?

I have seen old faulty batteries interfere with normal operation.
Removing the battery and using the laptop without one fixes the problem.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
frddbbbl
n00b
n00b


Joined: 16 Jun 2019
Posts: 66

PostPosted: Mon May 03, 2021 12:01 pm    Post subject: Reply with quote

I think the battery is quite old, intresting you should mention becuase i ordered a new one yesterday! acpi -ib tells me that the battery is at 68% of its original full capacity 3581/5252 mAh
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 48147
Location: 56N 3W

PostPosted: Mon May 03, 2021 12:44 pm    Post subject: Reply with quote

frddbbbl,

The battery will have a manufacturing date on one of the labels. Its normally wwyy format, where yy is the last two digits of the year and ww is the week in the year.

Don't buy cheap horrible noname lithium batteries. They often use poor quality cells and are poorly manufactured too.
If it looks too good to be true, it probably is.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
frddbbbl
n00b
n00b


Joined: 16 Jun 2019
Posts: 66

PostPosted: Mon May 03, 2021 8:29 pm    Post subject: Reply with quote

Hi, thanks for the help, i've purchased a powerose replacement battery for my thinkpad model, they seem to be reputable on there ebay store. I acctually cant find any date anywhere on the battery currently in my laptop. And this is probably a bit of a basic question but i assumed my kernel vresion was the most up to date? is it because i am using the stable as opposed to the bleeding edge gentoo-sources?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 48147
Location: 56N 3W

PostPosted: Mon May 03, 2021 9:19 pm    Post subject: Reply with quote

frddbbbl,

Yes.
Gentoo stable kernels track kernel.org Long Term Support (LTS) kernels will some lag for testing by Gentoo.

I update my kernel once every x for x in 5.x.y. My PC is 12 years old now, so I don't need new kernel features :)
Skipping 3 or 4 x values is a big jump for make oldconfig, so I try not to do that.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum