Originally Posted by thirstonlinux
I am trying to Auto mount the remote ftp home directory in a system. I am trying to do it in the following manner. correct me if I am wrong.
ftp://<serverip>/pub/ /mnt/temp ext4 defaults 0 0
Let me know if this is correct..
ftp isn't a filesystem, it's a network protocol. Also, fstab is read before networking starts, so it's not possible to connect to an ftp server the way you laid out, I'm afraid.
If you want to mount it in fstab you need fuse and curlftpfs installed and the line would look a little more like this:
curlftpfs#USER:PASSWORD@<serverip>/pub/ /mnt/temp fuse auto,user,uid=1000,allow_other,_netdev 0 0
Unless your system has the netfs service installed the mount will still fail; if so, issue a 'mount -a' as root.
Hope this helps -