Tuesday, June 24, 2008

Keeping the mounted partition at startup in Ubuntu

If you want the mounted share to be remembert bu Ubuntu you must put a line in fstab.
Step 1

create a file named lets say credentials in that file enter this 2 lines:

username = administrator(or your admin username)
password =yourpassword

and save file

Step 2

Start the terminal

sudo gedit /etc/fstab

Step 3

Write the following in the fstab file you just opened:

#Samba Share
//windows-server-name/share1 /share1 smbfs credentials=/home/cata/credentials 0 0

save the file and reboot .It is permanently mounted.The user name and password are loaded from the file you created earlier.

No comments:

Post a Comment