Tuesday, January 8, 2013

Mount windows share on Linux/UNIX

Procedure to mount remote windows shared partition (the share) to Linux/Unix and adding it to fstab for permanent mount.

#Mount the sahre from Windows

mount -t cifs //compsrv302/oracle/developer/sam/out -o username=mytest,password=Welcome1 /d11/oracle/HYPUAT/hyperion/oradata/hyp_in
mount -t cifs //compsrv302/oracle/developer/sam/log -o username=mytest,password=Welcome1 /d11/oracle/HYPUAT/hyperion/oradata/hyp_log

# Add the following entry to the fstab

[BhusalK@compserv319 hyp_in]$ more /etc/fstab

//compsrv302/oracle/developer/sam/out    /d11/oracle/HYPUAT/hyperion/oradata/hyp_in    cifs    username=mytest,password=Welcome1    0    0
//compsrv302/oracle/developer/sam/log    /d11/oracle/HYPUAT/hyperion/oradata/hyp_log    cifs    username=mytest,password=Welcome1    0    0



[root@compserv303 samba]# cat smb.conf
[global]
        workgroup = mwaadev
;       netbios name = compserv303
        security = share
        load printers = No
        default service = global
        path = /home
        available = No
;       encrypt passwords = yes
;       server string = samba 3.0.33-3.7.el5
;       guest ok = yes
        guest account = mwaa_hyp
[oradata]
        writeable = yes
        admin users = root
        path = /d11/oracle/SYS/hyperion/oradata
;       force user = bidev
;       guest ok = yes
        available = yes
        browseable = yes

No comments:

Post a Comment