I have a USB HDD with an ext3 file system, (it's a Plex server media drive), connected to my Raspberry Pi, and after power failure it is not mounting automatically and has a superblock reading problem. After performing fsck
on the drive it comes back to fully working condition.
The problem is - my Raspberry is headless server and there is a power failure almost everyday where I live now, so I need to ssh
every time and do fsck
to get the disk running again. Is there any way to:
Perform
fsck
automatically (including answering the "yes" question)?Detect a power failure so it will do it on boot?