Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm planning on having a 4G LTE USB Modem plugged into a server computer at home. I will then go somewhere else. I'm afraid it will disconnect, and if it does not work I would have to go home to fix it.

Is there a possibility to automatically remount / reconnect USB 4G Modem with a command every 12 hours?

It's a ZTE MF821D Modem, which means, it will connect to internet just by plug out and in.

share|improve this question
To run a task at scheduled times, use cron. This isn't the best solution: it would be better to reconnect if the connection is dropped. – Gilles Sep 21 '13 at 12:47
up vote 0 down vote accepted

You can do that very easily , while you are creating the connection for Mobile broadband ,look at the 1st TAB[ General ] there you can have the option as Automatically connect to this network when it is available .

so you even because of network problem you got disconnected your connection , it will reconnect again after sometime when network is available. so you can automate it very easily.enter image description here

share|improve this answer
Okay, but I dont need reconnect, thanks anyway, but Im aware it bugs often, eth1 dissapear, network closes, etc etc, I need to restart USB...... – Marcus Sep 21 '13 at 14:55
@Marcus ok along with the answer I gave you ,restart your network manager and modem manager for 12 hours once. you can create a bash script for that and then by using cron you can automate the action.\ – Raja Sep 21 '13 at 16:13
nop, its buggy USB modem, when I start computer it doesnt even start: I have to replug it. Sometimes it just disconnect. I want to play it safe, so I use: eject /dev/sr0, and wait 10 seconds, it will reconnect. Thanks for answer. – Marcus Sep 21 '13 at 17:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.