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?
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:For more information see:
https://help.ubuntu.com/community/Fstab
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
Please add single quotes if the folder names contains spaces:
Check the end of the article if you don't want to put passwords in fstab.