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

Any easy way to have ubuntu remount all currently mounted devices on reboot?

I know that I can add the entries to fstab, but I would prefer a method that would just "remember" what I currently have mounted and mount them back on reboot (and not mount any devices that have been unmounted not in fstab)

Is there any particularly simple way to do this? Otherwise I'm considering writing a script for login/logoff

Say I normally have "permanent" mounts (in fstab) like

/dev/sda1 -> /
/dev/sdb1 -> /tmp
/dev/sdc1 -> /folder

and I decide to mount the following

/dev/sda2 -> /mnt/sda2
smbmount //server/share -> /mnt/server

Can I get the last two to automount next time I login / after I reboot?

share|improve this question
Please define your question. For more details on best practices consider reading the FAQ on asking questions. What release are you using? Regards – Ringtail Jun 12 '12 at 1:56
12.04 -- details added to question – arcyqwerty Jun 12 '12 at 2:37

Your Answer


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

Browse other questions tagged or ask your own question.