What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Avoid mounting errors on reboot

wuyanxu

Regular Contributor
I find my memory stick often get mounting errors on a reboot. I solved it by running below code in service-stop. I'd like to make sure it only runs on shutdown.
Code:
umount -r /mnt/my/

The wiki says: "Before all system services are stopped, usually on a reboot."

So it ONLY runs on shutdown/reboot? There's no possibility of it running in other instances?



OR

Is it better to run e2fsck in pre-mount script instead?

What is Asuswrt's default e2fsck command on the button scan for errors when a mount has failed?
 
Bump.

It's been a few restarts and I've never had any issue yet, using my line in service-stop.

I'd like to make sure it only runs on shutdown.
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top