negan07 / ancistrus

Netgear's D7000 Nighthawk Router Experience Distributed Project
https://negan07.github.io/ancistrus/
GNU General Public License v2.0
66 stars 17 forks source link

Check `ext` partition disk at the start #58

Closed giga89 closed 4 years ago

giga89 commented 5 years ago

How can I scan the usb-connected disk when the modem is rebooted?

negan07 commented 4 years ago

https://github.com/negan07/ancistrus/wiki/Personal-instructions#s-runlevel

supposing /dev/sda1 the usb disk device

negan07 commented 4 years ago

forgot to remember that e2fsck doesn't fork to the background (even if this should not affect the machine boot stage effectively) and that a restart of the device could be recommended at the end so a usb device reconfig cmd should be added (see above)

https://github.com/negan07/ancistrus/wiki/e2fsprogs-package#ext234-filesystem-utilities

giga89 commented 4 years ago

Thank you! You are super!

negan07 commented 4 years ago

reopened this issue because It was wrongly related to an ntfs disk device while e2fsck is ext2/3/4 fs related only

to monitor an ntfs disk health enable smartd (smartmontools) otherwise to check an ntfs partition there is ntfsfix ( https://www.tuxera.com/community/open-source-ntfs-3g/ ) included into ntfs-3g_ntfsprogs package