0
Hard disk stops working

Recently, my hard disk drive (bought with the laptop) simply vanishes from the list of devices in Dolphin File Manager. It is happening more and more often now and obviously, I am not able to access or save my files on the HDD. Usually it comes on again when I reboot the machine. Is there any fix for this type of behaviour?


Affordable-Laptop 04-04-20, 3:28 p.m. sethbharat
0

It could be various reasons, first see if your disk is available under the command 'df -h'. If yes, it could be bad sectors and you may have to run fsck from the terminal (let me know if you could see the disk in the above command).
If not, take help from a technician who will shut down the laptop and examine the hard disk (mostly loose connection as you mentioned it sometimes work!).

If that doesn't help either, then you may have to replace the HDD or consult RDP.

04-04-20, 3:49 p.m. Srikant

It did not happen for last two days, but today again the hdd vanished. I did the command df -h and it doest not show the hdd either. (see below)

user@debian:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            1.9G     0  1.9G   0% /dev
tmpfs           387M   16M  371M   5% /run
/dev/mmcblk0p2   24G   19G  3.8G  84% /
tmpfs           1.9G   25M  1.9G   2% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           1.9G     0  1.9G   0% /sys/fs/cgroup
/dev/mmcblk0p1   96M   67M   30M  70% /boot/efi
tmpfs           387M   12K  387M   1% /run/user/1000

Should I try running the fsck after rebooting when it comes back? Any particular options or switches to be used with the fsck command?


08-04-20, 10:20 a.m. sethbharat

You can only run fsck on filesystems other than root (/) after unmounting, as on running machine you can't unmount the root partition. 

If possible, try booting from a Live Linux USB pendrive and see if you can access the HDD in the live session, you also must take backup of your critical data first. If you can see the HDD then I suggest you report back and then run fsck on it. 

I believe this could be simply a loose connection of HDD with the motherboard. 


08-04-20, 10:46 a.m. Srikant

The HDD does not have the OS. The OS is on the Solid State drive. So I suppose it should be possible to run fsck after unmounting the HDD. If so, give me a little more detail of what I should do with the fsck.


08-04-20, 4:46 p.m. sethbharat

You should then simply unmount the HDD partition and run

sudo fsck /dev/hdd1  (change hdd1 with your partition). 

The above command will only list the errors, if any. To fix the errors, you need to run with -y flag. 

More details on this post: https://www.maketecheasier.com/check-repair-filesystem-fsck-linux/


08-04-20, 6:51 p.m. Srikant

I executed the command and it found quite a few errors which I fixed. I have mounted the HDD back. I will let the Forum know if the problem recurs. Thanks.


09-04-20, 4:37 p.m. sethbharat

Login to add comment


Log-in to answer to this question.