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?
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community
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:
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.