I have a partition mounted with
mount -t ext3 /dev/sda3 /foo.
Each time I reboot, I need to remount. How can I keep this mounted after every reboot?
You need to make an entry in
/etc/fstab for the mount, something like:
/dev/sda3 /foo ext3 defaults 1 1
For more information see:
Sometimes, one may face critical issues due to
/etc/fstab entries. So, the alternative is crontab.
Just add below entry in root's crontab.
$ sudo crontab -e
@reboot mount -t ext3 /dev/sda3 /foo
For OpenSuse, coming from Novell Automatically mount a windows share at boot time with Linux
//winserver/share /mnt/winshare cifs gid=users,file_mode=0664,dir_mode=0775,auto,username=john,password=johnpass 0 0
Please add single quotes if the folder names contains spaces:
'//winserver/share with spaces' '/mnt/winshare with spaces' cifs gid=users,file_mode=0664,dir_mode=0775,auto,username=john,password=johnpass 0 0
Check the end of the article if you don't want to put passwords in fstab.