Page 1 of 1

NAS4Free won't start when a non-system disk has errors

Posted: 17 Feb 2015 01:29
by maarten
First thanks for the great product, the hard work and commitment!

There's one particular thing what i woud like to suggest. When a data disk (GPT, UFS) has errors, NAS4Free won't start (i.e. the web interface and services like SSH), which is cumbersome. Since my server has no screen or keyboard attached and is locked up in the meter box, so to resolve the issue (running fsck), I need to take my server out of the meter box, reconnect and attach a keyboard and screen to run fsck (and subsequently put everything back again)

Why does a failing disk (no system or boot disk) prevent NAS4Free from starting properly? I would really appreciate if this can ce changed (so i can run fsck using SSH from my desktop)...

Please let me know,

Maarten

Re: NAS4Free won't start when a non-system disk has errors

Posted: 06 Mar 2015 12:58
by jamaroney
in the WebGUI, under "Disks" -> "Mount Point", is "Enable foreground/background file system consistency check during boot process" selected for each disk? That should run fsck automatically on startup.

With the latest N4F version, I had similar problems to yours with my EXT3 USB drive because N4F couldn't find fsck_ext2fs on startup. So I had to set up a PreInit command ("/usr/local/sbin/e2fsck /dev/da0s1") in "System" -> "Advanced" -> "Command Scripts". You may have to try something similar for your disks.