Is my harddrive dying? initramfs(SOLVED)

linux_user96

New Member
Joined
Dec 19, 2021
Messages
28
Reaction score
5
Credits
246
hello

I have been running Linux Mint 20 on my Laptop for about a year. The laptop is about 7 years old, it was a windows laptop before.

A few months ago, it always showed the "initramfs". With little research I was able to fix this booting problem "fsck". It worked well.

But in the last few days this problem is occuring too often. And when I am able to boot the laptop, almost nothing works properly on it, like I cant open browsers or even delete the browsers with the terminal. And its really slow now.

Is this a sign that the harddrive is giving up?
 

Attachments

  • IMG_20221014_190117.jpg
    IMG_20221014_190117.jpg
    2 MB · Views: 442
  • IMG_20221014_190337.jpg
    IMG_20221014_190337.jpg
    1.8 MB · Views: 500
Last edited:


The test will take a bit but shouldn't be too long on modern hardware. It'll tell you if you have any hardware issues. You can also check out this article that has more options, such as looking for bad blocks.


Which I seemingly elaborated on in its own other article, probably having forgotten the first article due to copious amounts of delicious wine.


That'll rule out bad disk issues. So, if you still have the issues after this you can be reasonably certain that it's not a disk that's failing.
 
If in the case that your root directory is full it can cause the system to freeze or not boot.
./boot needs 1.8gb
./var needs 3.4gb

is this normal?

so what should I delete?
 

Attachments

  • 16657741390733260816890249030907.jpg
    16657741390733260816890249030907.jpg
    1.3 MB · Views: 584
You should have enough space as your disk has free space. Have you ran the disk check KGIII recommended?
I cancelled it, because almost one hour passed and nothing happened anymore... i tried some other things but without success, like deleting cache, deleting old kernels
 
I cancelled it, because almost one hour passed and nothing happened anymore... i tried some other things but without success, like deleting cache, deleting old kernels
I ran smartctl

reallocated_sector_ct shows a raw value of 0.

current_pending_sector shows a raw value of 48.

i did research on that: 0 is good and over 0 is bad... over 0 indicates harddrive failure is near. now i am trying a way to fix that
 
You can also install 'gnome-disk-utility' which will then appear as "Disks" in your application menu.

Once you've done that, you can open it and highlight the drive in question. In the top right, there will be a three dot menu and click on SMART data and self-tests. Then, you can scan from inside that - with a handy GUI.

If there are disk errors, there's no real way to repair them. Disks die and have an MTBF that folks probably should examine before buying. If the disk has errors, it IS GOING TO FAIL. It's just a matter of when.

The advice is generally to stop using the disk, get a new one, and hope you can recover your data from the old one. If you're not getting errors, the problem lies elsewhere - but your drive is going to fail if you are getting errors. It's going to likely fail sooner than later.

You can do a short test and then do a longer test if you're getting errors in the short test. If you see 'pre-fail' don't worry too much about that. It's a problem, but not an immediate problem. The tests take a bit to complete, depending on the age of your computer and the speed of your disk. I'd only bother with the longer test if there's a bunch of failures or a whole lot of pre-fail warnings.
 
If you think the HDD itself has problems...the best way to check is to swap the HDD...if the problem stops then you know...saves a lot of time.
m1212.gif


HDDs can fail without warning...even after running heaps of test and getting...HDD is "OK" it's happened to me...you should always have a spare HDD and an Image of the Drive just in case.
m1213.gif


This might be a good time to swap to an SSD (say 500GB) as they are so much better and so much faster...I did 3 years ago and would never go back...good luck.
m1282.gif
 

Staff online

Members online


Latest posts

Top